Open welovehangers opened 1 year ago
same here ! I was running on 14.3, fully deleted it moved to 14.2 , cause I saw this on apple forum update cocoapod to 1.12.1 still have the same error "Command PhaseScriptExecution failed with a nonzero exit code"
found this video https://www.youtube.com/watch?v=TZVQGY0T3k4 and remove the script in run script: ${PODS_ROOT}/FirebaseCrashlytics/upload-symbols -gsp ${PROJECT_DIR}/HangersPro/GoogleService-Info.plist -p ios ${DWARF_DSYM_FOLDER_PATH}/${DWARF_DSYM_FILE_NAME}
it works for archive .. not sure of the impact and probably will prevent me from using fastlane How is this preventing the archive and is this ok to do ?
Same here
New Issue Checklist
Issue Description
I can build falstlane after moving to my new M2 mac from Intel When building the app VIA fastlane the Dsym is empty ..
Command executed
bundle exec fastlane build
Complete output when running fastlane, including the stack trace and command used
▸ Processing Info.plist
▸ Generating 'MyApp.app.dSYM' ▸ Running script 'Run Script' Run script build phase 'Create Symlinks to Header Folders' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'Realm' from project 'Pods') Run script build phase 'Create Symlinks to Header Folders' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'PromisesObjC' from project 'Pods') ARCHIVE FAILED
The following build commands failed: PhaseScriptExecution Run\ Script /Users/user/Library/Developer/Xcode/DerivedData/MyApp-dgiquvsgpvkjfjcvhtcnrnpbekbj/Build/Intermediates.noindex/ArchiveIntermediates/MyApp/IntermediateBuildFilesPath/MyApp.build/Release-iphoneos/MyApp.build/Script-F9921F87220DFB5500CED15A.sh (in target 'MyApp' from project 'MyApp') (1 failure) [20:03:41]: Exit status: 65
+---------------+-------------------------+ | Build environment | +---------------+-------------------------+ | xcode_path | /Applications/Xcode.app | | gym_version | 2.213.0 | | export_method | app-store | | sdk | iPhoneOS16.4.sdk | +---------------+-------------------------+
[20:03:41]: ▸ error: Could not complete submission of dSYM at /Users/user/Library/Developer/Xcode/DerivedData/MyApp-dgiquvsgpvkjfjcvhtcnrnpbekbj/Build/Intermediates.noindex/ArchiveIntermediates/MyApp/BuildProductsPath/Release-iphoneos/MyApp.app.dSYM: Error Domain=com.crashlytics.mac.error-domain.process-dsym Code=2 "File no longer exists at (null)" UserInfo={NSLocalizedFailureReason=File no longer exists at (null)} [20:03:41]: ▸ Command PhaseScriptExecution failed with a nonzero exit code [20:03:41]: ▸ warning: Run script build phase 'Create Symlinks to Header Folders' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'Realm' from project 'Pods') [20:03:41]: [20:03:41]: ⬆️ Check out the few lines of raw/Library/Logs/gym/MyApp.log
[20:03:41]:
[20:03:41]: Looks like fastlane ran into a build/archive error with your project
[20:03:41]: It's hard to tell what's causing the error, so we wrote some guides on how
[20:03:41]: to troubleshoot build and signing issues: https://docs.fastlane.tools/codesigning/getting-started/
[20:03:41]: Before submitting an issue on GitHub, please follow the guide above and make
[20:03:41]: sure your project is set up correctly.
[20:03:41]: fastlane uses
xcodebuild
output above for potential hints on how to solve this error [20:03:41]: 📋 For the complete and more detailed error log, check the full log at: [20:03:41]: 📋 /Users/xcodebuild
commands to generate your binary, you can see the [20:03:41]: the full commands printed out in yellow in the above log. [20:03:41]: Make sure to inspect the output above, as usually you'll find more error information there [20:03:41]: +------------------+-----------+ | Lane Context | +------------------+-----------+ | DEFAULT_PLATFORM | ios | | PLATFORM_NAME | ios | | LANE_NAME | ios build | | BUILD_NUMBER | 331 | +------------------+-----------+ [20:03:41]: Error building the application - see the log above+------+------------------------+-------------+ | fastlane summary | +------+------------------------+-------------+ | Step | Action | Time (in s) | +------+------------------------+-------------+ | 1 | Verifying fastlane | 0 | | | version | | | 2 | default_platform | 0 | | 3 | increment_build_numbe | 2 | | | r | | | 💥 | gym | 153 | +------+------------------------+-------------+
[20:03:41]: fastlane finished with errors
Environment
✅ fastlane environment ✅
### Stack | Key | Value | | --------------------------- | ------------------------------------------- | | OS | 13.3 | | Ruby | 3.2.2 | | Bundler? | true | | Git | git version 2.39.2 (Apple Git-143) | | Installation Source | ~/.gem/bin/fastlane | | Host | macOS 13.3 (22E252) | | Ruby Lib Dir | /opt/homebrew/Cellar/ruby/3.2.2/lib | | OpenSSL Version | OpenSSL 1.1.1t 7 Feb 2023 | | Is contained | false | | Is homebrew | false | | Is installed via Fabric.app | false | | Xcode Path | /Applications/Xcode.app/Contents/Developer/ | | Xcode Version | 14.3.1 | | Swift Version | 5.8.1 | ### System Locale | Variable | Value | | | -------- | ----------- | - | | LANG | en_US.UTF-8 | ✅ | | LC_ALL | | | | LANGUAGE | | | ### fastlane files:`./fastlane/Fastfile`
```ruby # This is the minimum version number required. # Update this, if you use features of a newer version fastlane_version "2.116.0" default_platform :ios platform :ios do before_all do ENV["DELIVER_ITMSTRANSPORTER_ADDITIONAL_UPLOAD_PARAMETERS"] = "-asc_provider myteam" ENV["FASTLANE_USER"] = "mylogin" ENV["FASTLANE_APPLE_APPLICATION_SPECIFIC_PASSWORD"] = "mypwd" end # 1 desc "Creating a code signing certificate and provisioning profile" # 2 lane :provision do # 3 produce( app_name: 'MyApp', language: 'French', app_version: '3.0', sku: '1234abcd' ) # 4 cert # 5 sigh(force: true) end desc "Create ipa" lane :build do increment_build_number gym( export_method: "app-store" # or "ad-hoc" ) end desc "Upload to App Store" lane :upload do deliver end lane :clean_build_folder do sh 'rm -rf ./build' end lane :beta do get_certificates # invokes cert get_provisioning_profile # invokes sigh build_app end lane :release do sync_code_signing disable_automatic_code_signing(path: "MyApp.xcodeproj") build_app enable_automatic_code_signing(path: "MyApp.xcodeproj") upload_to_testflight( username: "myUsername", app_identifier: "com.MyAppSeries.MyApp", itc_provider: "mydate") end error do |lane, exception| # This block is called if there was an error running a lane. end end ````./fastlane/Appfile`
```ruby app_identifier("com.MyAppSeries.MyApp") # The bundle identifier of your app apple_id("my login") # Your Apple email address itc_team_id("myid") # App Store Connect Team ID team_id("personnalid") # Developer Portal Team ID asc_provider("personnaldata") # For more information about the Appfile, see: # https://docs.fastlane.tools/advanced/#appfile ```Loaded gems
| Gem | Version | | ------------------------------- | ------------ | | error_highlight | 0.5.1 | | did_you_mean | 1.6.3 | | syntax_suggest | 1.0.2 | | bundler | 2.1.4 | | pathname | 0.2.1 | | set | 1.0.3 | | tsort | 0.1.1 | | rake | 13.0.6 | | rexml | 3.2.5 | | CFPropertyList | 3.0.6 | | concurrent-ruby | 1.2.2 | | i18n | 1.14.1 | | minitest | 5.18.0 | | tzinfo | 2.0.6 | | activesupport | 7.0.5 | | public_suffix | 4.0.7 | | addressable | 2.8.4 | | httpclient | 2.8.3 | | json | 2.6.3 | | algoliasearch | 1.27.5 | | artifactory | 3.0.15 | | atomos | 0.1.3 | | aws-eventstream | 1.2.0 | | aws-partitions | 1.777.0 | | aws-sigv4 | 1.5.2 | | jmespath | 1.6.2 | | aws-sdk-core | 3.174.0 | | aws-sdk-kms | 1.66.0 | | aws-sdk-s3 | 1.123.1 | | babosa | 1.0.4 | | claide | 1.1.0 | | fuzzy_match | 2.0.4 | | nap | 1.1.0 | | netrc | 0.11.0 | | ffi | 1.15.5 | | ethon | 0.16.0 | | typhoeus | 1.4.0 | | cocoapods-core | 1.12.1 | | cocoapods-deintegrate | 1.0.5 | | cocoapods-downloader | 1.6.3 | | cocoapods-plugins | 1.0.0 | | cocoapods-search | 1.0.1 | | cocoapods-trunk | 1.6.0 | | cocoapods-try | 1.2.0 | | colored2 | 3.1.2 | | escape | 0.0.4 | | fourflusher | 2.3.1 | | gh_inspector | 1.1.3 | | molinillo | 0.8.0 | | ruby-macho | 2.5.1 | | nanaimo | 0.3.0 | | xcodeproj | 1.22.0 | | cocoapods | 1.12.1 | | colored | 1.2 | | highline | 2.0.3 | | commander | 4.6.0 | | declarative | 0.0.20 | | digest-crc | 0.6.4 | | unf_ext | 0.0.8.2 | | unf | 0.1.4 | | domain_name | 0.5.20190701 | | dotenv | 2.8.1 | | emoji_regex | 3.2.3 | | excon | 0.100.0 | | faraday-em_http | 1.0.0 | | faraday-em_synchrony | 1.0.0 | | faraday-excon | 1.1.0 | | faraday-httpclient | 1.0.1 | | multipart-post | 2.3.0 | | faraday-multipart | 1.0.4 | | faraday-net_http | 1.0.1 | | faraday-net_http_persistent | 1.2.0 | | faraday-patron | 1.0.0 | | faraday-rack | 1.0.0 | | faraday-retry | 1.0.3 | | ruby2_keywords | 0.0.5 | | faraday | 1.10.3 | | http-cookie | 1.0.5 | | faraday-cookie_jar | 0.0.7 | | faraday_middleware | 1.2.0 | | fastimage | 2.2.7 | | jwt | 2.7.1 | | memoist | 0.16.2 | | multi_json | 1.15.0 | | os | 1.1.4 | | signet | 0.17.0 | | googleauth | 1.5.2 | | mini_mime | 1.1.2 | | trailblazer-option | 0.1.2 | | uber | 0.1.0 | | representable | 3.2.0 | | retriable | 3.1.2 | | webrick | 1.8.1 | | google-apis-core | 0.11.0 | | google-apis-androidpublisher_v3 | 0.43.0 | | google-apis-playcustomapp_v1 | 0.13.0 | | google-apis-iamcredentials_v1 | 0.17.0 | | google-apis-storage_v1 | 0.19.0 | | google-cloud-env | 1.6.0 | | google-cloud-errors | 1.3.1 | | google-cloud-core | 1.6.0 | | google-cloud-storage | 1.44.0 | | mini_magick | 4.12.0 | | naturally | 2.2.1 | | optparse | 0.1.1 | | plist | 3.7.0 | | rubyzip | 2.3.2 | | security | 0.1.3 | | simctl | 1.6.10 | | terminal-notifier | 2.0.0 | | unicode-display_width | 1.8.0 | | terminal-table | 1.8.0 | | tty-screen | 0.8.1 | | tty-cursor | 0.7.1 | | tty-spinner | 0.9.3 | | word_wrap | 1.0.0 | | rouge | 2.0.7 | | xcpretty | 0.3.0 | | xcpretty-travis-formatter | 1.0.1 |Can someone help ?