Expo eas-cli iOS 构建失败

Pip*_*pin 7 xcode ios react-native expo

我已经使用 React Native 创建了一个应用程序,并尝试通过 Expo 的 eas-cli 创建一个 iOS 应用程序商店。

\n

eas build --platform ios运行Fastlane build failed with unknown error

\n

检查 Expo 构建日志中的“Run Fastlane”部分后,显示多个错误:

\n

错误1:

\n
Resolving Swift Package Manager dependencies...\n$ xcodebuild -resolvePackageDependencies -workspace ./AppName.xcworkspace -scheme AppName -configuration Release\n\xe2\x96\xb8 Command line invocation:\n\xe2\x96\xb8     /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -resolvePackageDependencies -workspace ./AppName.xcworkspace -scheme AppName -configuration Release\n\xe2\x96\xb8 resolved source packages:\n$ xcodebuild -showBuildSettings -workspace ./AppName.xcworkspace -scheme AppName -configuration Release\nCommand timed out after 3 seconds on try 1 of 4, trying again with a 6 second timeout...\n[stderr] `<PBXResourcesBuildPhase UUID=`13B07F8E1A680F5B00A75B9A`>` attempted to initialize an object with an unknown UUID. `0BD9B0475CB3419D8B91ED1E` for attribute: `files`. This can be the result of a merge and the unknown UUID is being discarded.\nDetected provisioning profile mapping: {:"AppBundleID"=>"f6b9bcbf-e950-43e3-847c-058bdc2733f9"}\n[stderr] `<PBXResourcesBuildPhase UUID=`13B07F8E1A680F5B00A75B9A`>` attempted to initialize an object with an unknown UUID. `0BD9B0475CB3419D8B91ED1E` for attribute: `files`. This can be the result of a merge and the unknown UUID is being discarded.\n
Run Code Online (Sandbox Code Playgroud)\n

我尝试13B07F8E1A680F5B00A75B9A在代码中查找 UUID,但没有成功。\n我也安装了 cocoapods,但sudo gem install cocoapods它并没有显着改变错误日志。

\n

错误2:

\n
\xe2\x9d\x8c  ld: could not reparse object file in bitcode bundle: 'Invalid bitcode version (Producer: '1205.0.22.11.0_0' Reader: '1200.0.32.29_0')', using libLTO version 'LLVM version 12.0.0, (clang-1200.0.32.29)' for architecture arm64\n\n\n\xe2\x9d\x8c  clang: error: linker command failed with exit code 1 (use -v to see invocation)\n\n\xe2\x9a\xa0\xef\xb8\x8f  Pods/boost-for-react-native: iOS@8.0 deployment version mismatch, expected >= 9.0 <= 14.4.99\n\xe2\x96\xb8 ** ARCHIVE FAILED **\n\xe2\x96\xb8 The following build commands failed:\n\xe2\x96\xb8   Ld /Users/expo/Library/Developer/Xcode/DerivedData/AppName-grbndlkaumowtzhaeqkpzrsevhvm/Build/Intermediates.noindex/ArchiveIntermediates/AppName/InstallationBuildProductsLocation/Applications/appname.app/appname normal\n\xe2\x96\xb8 (1 failure)\n** ARCHIVE FAILED **\nThe following build commands failed:\n    Ld /Users/expo/Library/Developer/Xcode/DerivedData/AppName-grbndlkaumowtzhaeqkpzrsevhvm/Build/Intermediates.noindex/ArchiveIntermediates/AppName/InstallationBuildProductsLocation/Applications/appname.app/appname normal\n(1 failure)\nExit status: 65\n
Run Code Online (Sandbox Code Playgroud)\n

Xcode 已更新至版本 12.5.1。

\n

非常感谢所有帮助,谢谢!

\n

Pip*_*pin 7

添加"image": "latest"到 eas.json 构建配置文件使我能够继续构建过程。

  • 我遇到以下错误:错误:eas.json 无效 [ValidationError:不允许“build.development.image”。不允许使用“build.preview.image”。不允许“build.生产.image”] (4认同)