Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
292 views
in Technique[技术] by (71.8m points)

ios - fastlane gym `Could not find rake-13.0.3 in any of the sources`

When I run the gym command I get this weird error.

[16:20:23]: ? Could not find rake-13.0.3 in any of the sources
[16:20:23]: ? Run `bundle install` to install missing gems.

Here is the full log:

[16:20:09]: Setting Provisioning Profile type to 'ad-hoc'
[16:20:09]: -----------------
[16:20:09]: --- Step: gym ---
[16:20:09]: -----------------
[16:20:10]: Resolving Swift Package Manager dependencies...
[16:20:10]: $ xcodebuild -resolvePackageDependencies -workspace Runner.xcworkspace -scheme prod
[16:20:11]: ? Command line invocation:
[16:20:11]: ?     /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -resolvePackageDependencies -workspace Runner.xcworkspace -scheme prod
[16:20:14]: ? resolved source packages:
[16:20:14]: $ xcodebuild -showBuildSettings -workspace Runner.xcworkspace -scheme prod
[16:20:17]: Command timed out after 3 seconds on try 1 of 4, trying again with a 6 second timeout...
[16:20:22]: Detected provisioning profile mapping: {:"com.example.app"=>"match AdHoc com.example.app", :"com.example.app.dev"=>"match AdHoc com.example.app.dev", :"com.example.app.red"=>"match AdHoc com.example.app.red"}

+-----------------------------------------------------------------+------------------------------------------------------------+
|                                                   Summary for gym 2.172.0                                                    |
+-----------------------------------------------------------------+------------------------------------------------------------+
| workspace                                                       | Runner.xcworkspace                                         |
| scheme                                                          | prod                                                       |
| output_directory                                                | ../build/ios/iphoneos                                      |
| output_name                                                     | Runner_adhoc_prod                                          |
| export_method                                                   | ad-hoc                                                     |
| export_options.provisioningProfiles.com.example.app             | match AdHoc com.example.app                                |
| export_options.provisioningProfiles.com.example.app.dev         | match AdHoc com.example.app.dev                            |
| export_options.provisioningProfiles.com.example.app.red         | match AdHoc com.example.app.red                            |
| destination                                                     | generic/platform=iOS                                       |
| build_path                                                      | /Users/long1eu/Library/Developer/Xcode/Archives/2021-01-28 |
| clean                                                           | false                                                      |
| silent                                                          | false                                                      |
| skip_package_ipa                                                | false                                                      |
| skip_package_pkg                                                | false                                                      |
| result_bundle                                                   | false                                                      |
| buildlog_path                                                   | ~/Library/Logs/gym                                         |
| skip_profile_detection                                          | false                                                      |
| skip_package_dependencies_resolution                            | false                                                      |
| disable_package_automatic_updates                               | false                                                      |
| use_system_scm                                                  | false                                                      |
| xcode_path                                                      | /Applications/Xcode.app                                    |
+-----------------------------------------------------------------+------------------------------------------------------------+

[16:20:22]: $ set -o pipefail && xcodebuild -workspace Runner.xcworkspace -scheme prod -destination 'generic/platform=iOS' -archivePath /Users/long1eu/Library/Developer/Xcode/Archives/2021-01-28/Runner_adhoc_prod 2021-01-28 16.20.22.xcarchive archive | tee /Users/long1eu/Library/Logs/gym/Runner_prod-prod.log | xcpretty
[16:20:23]: ? Could not find rake-13.0.3 in any of the sources
[16:20:23]: ? Run `bundle install` to install missing gems.
[16:38:06]: Exit status: 7

+---------------+-------------------------+
|            Build environment            |
+---------------+-------------------------+
| xcode_path    | /Applications/Xcode.app |
| gym_version   | 2.172.0                 |
| export_method | ad-hoc                  |
| sdk           | iPhoneOS14.4.sdk        |
+---------------+-------------------------+

[16:38:06]: ? Command line invocation:
[16:38:06]: ?     
[16:38:06]: 
[16:38:06]: ??  Check out the few lines of raw `xcodebuild` output above for potential hints on how to solve this error
[16:38:06]: ??  For the complete and more detailed error log, check the full log at:
[16:38:06]: ??  /Users/long1eu/Library/Logs/gym/Runner_prod-prod.log
[16:38:06]: 
[16:38:06]: Looks like fastlane ran into a build/archive error with your project
[16:38:06]: It's hard to tell what's causing the error, so we wrote some guides on how
[16:38:06]: to troubleshoot build and signing issues: https://docs.fastlane.tools/codesigning/getting-started/
[16:38:06]: Before submitting an issue on GitHub, please follow the guide above and make
[16:38:06]: sure your project is set up correctly.
[16:38:06]: fastlane uses `xcodebuild` commands to generate your binary, you can see the
[16:38:06]: the full commands printed out in yellow in the above log.
[16:38:06]: Make sure to inspect the output above, as usually you'll find more error information there

fastlane env

?? fastlane environment ??

Stack

Key Value
OS 10.15.6
Ruby 2.7.2
Bundler? true
Git git version 2.24.3 (Apple Git-128)
Installation Source ~/.gem/ruby/2.7.0/bin/fastlane
Host Mac OS X 10.15.6 (19G2005)
Ruby Lib Dir /usr/local/Cellar/[email protected]/2.7.2/lib
OpenSSL Version OpenSSL 1.1.1i 8 Dec 2020
Is contained false
Is homebrew false
Is installed via Fabric.app false
Xcode Path /Applications/Xcode.app/Contents/Developer/
Xcode Version 12.4
question from:https://stackoverflow.com/questions/65939143/fastlane-gym-could-not-find-rake-13-0-3-in-any-of-the-sources

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...