ios - 使用 faSTLane 在 crashlytics 包中找不到提交二进制文件
<p><p>我正在使用 <code>faSTLane</code> 构建我的 ipa 并将其提交给 <code>Crashlytics</code>。这就是我项目中的 <code>fastfile</code> 的样子 - </p>
<pre><code>fastlane_version "1.66.0"
default_platform :ios
platform :ios do
before_all do
# ENV["SLACK_URL"] = "https://hooks.slack.com/services/..."
#cocoapods
end
desc "Builds and uploads to Crashlytics"
lane :debug_upload do
ensure_git_status_clean
ensure_git_branch(branch:'master')
git_pull
push_to_git_remote
changelog=prompt(text:"Enter the change log:", multi_line_end_keyword:"END")
increment_build_number
#cocoapods
#scan
cert
sigh
gym(
workspace: "MyProject.xcworkspace",
scheme: "MyProject",
use_legacy_build_api: true
)
#workspace: "MyProject.xcworkspace",
#configuration: "Ad Hoc",
#use_legacy_build_api: true
#export_method: "ad-hoc"
crashlytics(
crashlytics_path: “./Pods/Crashlytics/Crashlytics.framework/submit",
notes: changelog,
api_token: "xxx",
build_secret: "xxx"
)
end
</code></pre>
<p>如您所见,我正在使用 CocoaPods 将 Crashlytics 集成到我的项目中。
当我运行 faSTLane 命令时,我会成功到健身房,但 Crashlytics 永远不会成功运行。这是我得到的错误</p>
<pre><code>: -------------------------
: --- Step: crashlytics ---
: -------------------------
: Variable Dump:
: {:DEFAULT_PLATFORM=>:ios, :PLATFORM_NAME=>:ios, :LANE_NAME=>"ios debug_upload", :GIT_REPO_WAS_CLEAN_ON_START=>true, :BUILD_NUMBER=>"18", :CERT_FILE_PATH=>"/Volumes/Dev/iOS/Projects/MyProject Chat/SourceCode/MyProject/6SH8C83679.cer", :CERT_CERTIFICATE_ID=>"xxx", :SIGH_PROFILE_PATH=>"/Volumes/Dev/iOS/Projects/MyProject Chat/SourceCode/MyProject/AppStore_com. MyProject.mobileprovision", :SIGH_PROFILE_PATHS=>["/Volumes/Dev/iOS/Projects/MyProject Chat/SourceCode/MyProject/AppStore_com.MyProject.mobileprovision"], :SIGH_UDID=>"5ad33308-6ceb-4734-9a78-046516e27530", :SIGH_PROFILE_TYPE=>"app-store", :IPA_OUTPUT_PATH=>"/Volumes/Dev/iOS/Projects/MyProject Chat/SourceCode/MyProject/MyProject.ipa", :DSYM_OUTPUT_PATH=>"/Volumes/Dev/iOS/Projects/MyProject Chat/SourceCode/MyProject/MyProject.app.dSYM.zip", :XCODEBUILD_ARCHIVE=>"/Users/abhi/Library/Developer/Xcode/Archives/2016-03-23/MyProject 2016-03-23 23.26.14.xcarchive"}
: Could not find submit binary in crashlytics bundle at path './Pods/Crashlytics/Crashlytics.framework/submit'
+------+-------------------------------------+-------------+
| fastlane summary |
+------+-------------------------------------+-------------+
| Step | Action | Time (in s) |
+------+-------------------------------------+-------------+
| 1 | Verifying required fastlane version | 0 |
| 2 | default_platform | 0 |
| 3 | ensure_git_status_clean | 0 |
| 4 | ensure_git_branch | 0 |
| 5 | git_pull | 14 |
| 6 | push_to_git_remote | 6 |
| 7 | prompt | 164 |
| 8 | increment_build_number | 8 |
| 9 | cert | 28 |
| 10 | sigh | 25 |
| 11 | gym | 301 |
| 12 | crashlytics | 7 |
+------+-------------------------------------+-------------+
: fastlane finished with errors
-------------------------------------------------------------------------------------------
页:
[1]