iUr*_*rii 6 ios cocoapods fastlane xcode14
我当前版本的 Fastlane 2.173.0 可以与 XCode 13 配合使用,并构建我的 iOS RN/Native 项目并将其发布到 TestFlight。但是在迁移到 XCode 14 后,我在开始构建时遇到了下一个错误 ( 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\n[16:56:52]: \xe2\x96\xb8 Resolve Package Graph\n[16:56:54]: \xe2\x96\xb8 Resolved source packages\n[16:56:54]: \xe2\x96\xb8 DLog - https://github.com/ikhvorost/DLog @ 1.4.0\n[16:56:54]: \xe2\x96\xb8 PromiseQ - https://github.com/ikhvorost/PromiseQ.git @ 1.7.0\n[16:56:54]: \xe2\x96\xb8 Realm - https://github.com/realm/realm-cocoa.git @ 10.15.1\n[16:56:54]: \xe2\x96\xb8 RealmDatabase - https://github.com/realm/realm-core @ 11.4.1\n[16:57:10]: \xe2\x96\xb8 \xe2\x9a\xa0\xef\xb8\x8f 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\')\n[16:57:10]: \xe2\x96\xb8 \xe2\x9a\xa0\xef\xb8\x8f 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\')\n[16:57:10]: \xe2\x96\xb8 \xe2\x9a\xa0\xef\xb8\x8f 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\')\n[16:57:10]: \xe2\x96\xb8 \xe2\x9a\xa0\xef\xb8\x8f 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\')\n[16:57:10]: \xe2\x96\xb8 \xe2\x9a\xa0\xef\xb8\x8f 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\')\n[16:57:10]: \xe2\x96\xb8 ** ARCHIVE FAILED **\nRun Code Online (Sandbox Code Playgroud)\ngym从上面的日志启动后立即失败。我已将 Fastlane、Ruby、Cocoapods 升级到最新版本,但没有帮助,而且我仍在观察失败情况。
我需要使用 XCode 14 中的新 iOS SDK 来实现新功能,那么如何解决“归档失败”问题?
\nXcode 14 一方面严格检查您的项目和分发设置、“开发团队”和 pod 的位码等,另一方面可能存在一些错误。
您应该进行以下更改以避免出现此问题:
Mac Catalyst(如果您不使用它):常规 > 支持的目的地
Mac Catalyst所有 pod Podfile:post_install do |installer|
react_native_post_install(installer)
__apply_Xcode_12_5_M1_post_install_workaround(installer)
flipper_post_install(installer)
# Xcode 14 fix
installer.generated_projects.each do |project|
project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['CODE_SIGNING_ALLOWED'] = 'NO'
config.build_settings['ENABLE_BITCODE'] = 'NO'
config.build_settings['SUPPORTED_PLATFORMS'] = 'iphoneos iphonesimulator'
config.build_settings['SUPPORTS_MACCATALYST'] = 'NO'
config.build_settings['SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD'] = 'NO'
end
end
end
end
Run Code Online (Sandbox Code Playgroud)
deliver和pilot。| 归档时间: |
|
| 查看次数: |
9032 次 |
| 最近记录: |