My current version of Fastlane 2.173.0 works OK with XCode 13 and builds and publishes my iOS RN/Native project to TestFlight. But after moving to XCode 14 I have got next error on start building (gym
).
[16:56:49]: $ set -o pipefail && xcodebuild -workspace MyProject.xcworkspace -scheme MyProject -configuration Release -destination 'generic/platform=iOS' -archivePath /Users/vagrant/Library/Developer/Xcode/Archives/2022-10-31/MyProject\ 2022-10-31\ 16.56.49.xcarchive archive | tee /var/folders/9l/1ysg9vq51p37q0lgksxhdb9r0000gn/T/fastlane_logs3640665801/gym/MyProject-MyProject.log | xcbeautify
[16:56:52]: ▸ Resolve Package Graph
[16:56:54]: ▸ Resolved source packages
[16:56:54]: ▸ DLog - https://github.com/ikhvorost/DLog @ 1.4.0
[16:56:54]: ▸ PromiseQ - https://github.com/ikhvorost/PromiseQ.git @ 1.7.0
[16:56:54]: ▸ Realm - https://github.com/realm/realm-cocoa.git @ 10.15.1
[16:56:54]: ▸ RealmDatabase - https://github.com/realm/realm-core @ 11.4.1
[16:57:10]: ▸ ⚠️ Run script build phase 'Bundle Settings File' 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 'MyProject' from project 'MyProject')
[16:57:10]: ▸ ⚠️ Run script build phase 'Bundle React Native code and images' 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 'MyProject' from project 'MyProject')
[16:57:10]: ▸ ⚠️ Run script build phase 'Embed Frameworks' 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 'MyProject' from project 'MyProject')
[16:57:10]: ▸ ⚠️ Run script build phase 'Start Packager' 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 'MyProject' from project 'MyProject')
[16:57:10]: ▸ ⚠️ Run script build phase '[CP-User] [RNFB] Core Configuration' 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 'MyProject' from project 'MyProject')
[16:57:10]: ▸ ** ARCHIVE FAILED **
gym
fails immediately after start from the above log. I've tied to upgrade Fastlane, Ruby, Cocoapods to the latest versions but it doesn't help and I'm still observing the failure.
I need to use new iOS SDK from XCode 14 for new features so how to fix "ARCHIVE FAILED" issue?