菜鸟教程小白 发表于 2022-12-13 13:16:49

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


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

<pre><code>fastlane_version &#34;1.66.0&#34;

default_platform :ios

platform :ios do
before_all do
# ENV[&#34;SLACK_URL&#34;] = &#34;https://hooks.slack.com/services/...&#34;
#cocoapods
end

desc &#34;Builds and uploads to Crashlytics&#34;
lane :debug_upload do

ensure_git_status_clean
ensure_git_branch(branch:&#39;master&#39;)
git_pull
push_to_git_remote

changelog=prompt(text:&#34;Enter the change log:&#34;, multi_line_end_keyword:&#34;END&#34;)

increment_build_number
#cocoapods
#scan
cert
sigh
gym(
    workspace: &#34;MyProject.xcworkspace&#34;,
    scheme: &#34;MyProject&#34;,
    use_legacy_build_api: true
)
#workspace: &#34;MyProject.xcworkspace&#34;,
#configuration: &#34;Ad Hoc&#34;,
#use_legacy_build_api: true
#export_method: &#34;ad-hoc&#34;

crashlytics(
    crashlytics_path: “./Pods/Crashlytics/Crashlytics.framework/submit&#34;,
    notes: changelog,
    api_token: &#34;xxx&#34;,
    build_secret: &#34;xxx&#34;
)

end
</code></pre>

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

<pre><code>: -------------------------
: --- Step: crashlytics ---
: -------------------------
: Variable Dump:
: {:DEFAULT_PLATFORM=&gt;:ios, :PLATFORM_NAME=&gt;:ios, :LANE_NAME=&gt;&#34;ios debug_upload&#34;, :GIT_REPO_WAS_CLEAN_ON_START=&gt;true, :BUILD_NUMBER=&gt;&#34;18&#34;, :CERT_FILE_PATH=&gt;&#34;/Volumes/Dev/iOS/Projects/MyProject Chat/SourceCode/MyProject/6SH8C83679.cer&#34;, :CERT_CERTIFICATE_ID=&gt;&#34;xxx&#34;, :SIGH_PROFILE_PATH=&gt;&#34;/Volumes/Dev/iOS/Projects/MyProject Chat/SourceCode/MyProject/AppStore_com. MyProject.mobileprovision&#34;, :SIGH_PROFILE_PATHS=&gt;[&#34;/Volumes/Dev/iOS/Projects/MyProject Chat/SourceCode/MyProject/AppStore_com.MyProject.mobileprovision&#34;], :SIGH_UDID=&gt;&#34;5ad33308-6ceb-4734-9a78-046516e27530&#34;, :SIGH_PROFILE_TYPE=&gt;&#34;app-store&#34;, :IPA_OUTPUT_PATH=&gt;&#34;/Volumes/Dev/iOS/Projects/MyProject Chat/SourceCode/MyProject/MyProject.ipa&#34;, :DSYM_OUTPUT_PATH=&gt;&#34;/Volumes/Dev/iOS/Projects/MyProject Chat/SourceCode/MyProject/MyProject.app.dSYM.zip&#34;, :XCODEBUILD_ARCHIVE=&gt;&#34;/Users/abhi/Library/Developer/Xcode/Archives/2016-03-23/MyProject 2016-03-23 23.26.14.xcarchive&#34;}
: Could not find submit binary in crashlytics bundle at path &#39;./Pods/Crashlytics/Crashlytics.framework/submit&#39;

+------+-------------------------------------+-------------+
|                     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]
查看完整版本: ios - 使用 faSTLane 在 crashlytics 包中找不到提交二进制文件