• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

ios - 使用 faSTLane 在 crashlytics 包中找不到提交二进制文件

[复制链接]
菜鸟教程小白 发表于 2022-12-13 13:16:49 | 显示全部楼层 |阅读模式 打印 上一主题 下一主题

我正在使用 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
-------------------------------------------------------------------------------------------
回复

使用道具 举报

懒得打字嘛,点击右侧快捷回复 【右侧内容,后台自定义】
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关注0

粉丝2

帖子830918

发布主题
阅读排行 更多
广告位

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap