OGeek|极客世界-中国程序员成长平台

标题: ios - 使用 faSTLane 在 crashlytics 包中找不到提交二进制文件 [打印本页]

作者: 菜鸟教程小白    时间: 2022-12-13 13:16
标题: ios - 使用 faSTLane 在 crashlytics 包中找不到提交二进制文件

我正在使用 faSTLane 构建我的 ipa 并将其提交给 Crashlytics。这就是我项目中的 fastfile 的样子 -

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

如您所见,我正在使用 CocoaPods 将 Crashlytics 集成到我的项目中。 当我运行 faSTLane 命令时,我会成功到健身房,但 Crashlytics 永远不会成功运行。这是我得到的错误

[23:31:01]: -------------------------
[23:31:01]: --- Step: crashlytics ---
[23:31:01]: -------------------------
[23:31:09]: Variable Dump:
[23:31:09]: {EFAULT_PLATFORM=>:ios, LATFORM_NAME=>:ios, ANE_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", SYM_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"}
[23:31:09]: 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           |
+------+-------------------------------------+-------------+

[23:31:10]: fastlane finished with errors
-------------------------------------------------------------------------------------------






欢迎光临 OGeek|极客世界-中国程序员成长平台 (https://ogeek.cn/) Powered by Discuz! X3.4