Expo eas-cli iOS 构建失败
Expo eas-cli iOS build failing
我已经使用 React Native 创建了一个应用程序,并且正在尝试通过 Expo 的 eas-cli 创建一个 iOS 应用程序商店构建。
当运行eas build --platform ios
时Fastlane build failed with unknown error
检查 Expo 构建日志中的“运行 fastlane”部分后,显示多个错误:
错误 1:
Resolving Swift Package Manager dependencies...
$ xcodebuild -resolvePackageDependencies -workspace ./AppName.xcworkspace -scheme AppName -configuration Release
▸ Command line invocation:
▸ /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -resolvePackageDependencies -workspace ./AppName.xcworkspace -scheme AppName -configuration Release
▸ resolved source packages:
$ xcodebuild -showBuildSettings -workspace ./AppName.xcworkspace -scheme AppName -configuration Release
Command timed out after 3 seconds on try 1 of 4, trying again with a 6 second timeout...
[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.
Detected provisioning profile mapping: {:"AppBundleID"=>"f6b9bcbf-e950-43e3-847c-058bdc2733f9"}
[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.
我试图在我的代码中找到 UUID 13B07F8E1A680F5B00A75B9A
但无济于事。
我也安装了带有 sudo gem install cocoapods
的 cocoapods,这并没有显着改变错误日志。
错误2:
❌ 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
❌ clang: error: linker command failed with exit code 1 (use -v to see invocation)
⚠️ Pods/boost-for-react-native: iOS@8.0 deployment version mismatch, expected >= 9.0 <= 14.4.99
▸ ** ARCHIVE FAILED **
▸ The following build commands failed:
▸ Ld /Users/expo/Library/Developer/Xcode/DerivedData/AppName-grbndlkaumowtzhaeqkpzrsevhvm/Build/Intermediates.noindex/ArchiveIntermediates/AppName/InstallationBuildProductsLocation/Applications/appname.app/appname normal
▸ (1 failure)
** ARCHIVE FAILED **
The following build commands failed:
Ld /Users/expo/Library/Developer/Xcode/DerivedData/AppName-grbndlkaumowtzhaeqkpzrsevhvm/Build/Intermediates.noindex/ArchiveIntermediates/AppName/InstallationBuildProductsLocation/Applications/appname.app/appname normal
(1 failure)
Exit status: 65
Xcode 最新版本为 12.5.1。
非常感谢所有帮助,谢谢!
有很多事情需要研究。
如果您是 SDK 中的 运行 Expo,则无需 cocoa pods 只需最新版本的 CLI 工具即可。
运行 expo --version
以确定您当前使用的版本。如果需要更新。
添加个人资料可能也很有用。随着检查您的配置。
Configuring EAS Build with eas.json
eas build --platform ios --profile distribution
此外,请确保所有 Apple 证书都处于活动状态并连接到该项目的 Expo 帐户。
将 "image": "latest"
添加到 eas.json 构建配置文件允许我继续构建过程。
如果收到验证错误,请确保将其放入“ios”对象
{
"cli": {
"version": ">= 0.48.2"
},
"build": {
"development": {
"ios": {"image": "latest"},
"developmentClient": true,
"distribution": "internal"
},
"preview": {
"distribution": "internal"
},
"production": {
}
},
"submit": {
"production": {
}
}
}
我已经使用 React Native 创建了一个应用程序,并且正在尝试通过 Expo 的 eas-cli 创建一个 iOS 应用程序商店构建。
当运行eas build --platform ios
时Fastlane build failed with unknown error
检查 Expo 构建日志中的“运行 fastlane”部分后,显示多个错误:
错误 1:
Resolving Swift Package Manager dependencies...
$ xcodebuild -resolvePackageDependencies -workspace ./AppName.xcworkspace -scheme AppName -configuration Release
▸ Command line invocation:
▸ /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -resolvePackageDependencies -workspace ./AppName.xcworkspace -scheme AppName -configuration Release
▸ resolved source packages:
$ xcodebuild -showBuildSettings -workspace ./AppName.xcworkspace -scheme AppName -configuration Release
Command timed out after 3 seconds on try 1 of 4, trying again with a 6 second timeout...
[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.
Detected provisioning profile mapping: {:"AppBundleID"=>"f6b9bcbf-e950-43e3-847c-058bdc2733f9"}
[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.
我试图在我的代码中找到 UUID 13B07F8E1A680F5B00A75B9A
但无济于事。
我也安装了带有 sudo gem install cocoapods
的 cocoapods,这并没有显着改变错误日志。
错误2:
❌ 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
❌ clang: error: linker command failed with exit code 1 (use -v to see invocation)
⚠️ Pods/boost-for-react-native: iOS@8.0 deployment version mismatch, expected >= 9.0 <= 14.4.99
▸ ** ARCHIVE FAILED **
▸ The following build commands failed:
▸ Ld /Users/expo/Library/Developer/Xcode/DerivedData/AppName-grbndlkaumowtzhaeqkpzrsevhvm/Build/Intermediates.noindex/ArchiveIntermediates/AppName/InstallationBuildProductsLocation/Applications/appname.app/appname normal
▸ (1 failure)
** ARCHIVE FAILED **
The following build commands failed:
Ld /Users/expo/Library/Developer/Xcode/DerivedData/AppName-grbndlkaumowtzhaeqkpzrsevhvm/Build/Intermediates.noindex/ArchiveIntermediates/AppName/InstallationBuildProductsLocation/Applications/appname.app/appname normal
(1 failure)
Exit status: 65
Xcode 最新版本为 12.5.1。
非常感谢所有帮助,谢谢!
有很多事情需要研究。
如果您是 SDK 中的 运行 Expo,则无需 cocoa pods 只需最新版本的 CLI 工具即可。
运行 expo --version
以确定您当前使用的版本。如果需要更新。
添加个人资料可能也很有用。随着检查您的配置。 Configuring EAS Build with eas.json
eas build --platform ios --profile distribution
此外,请确保所有 Apple 证书都处于活动状态并连接到该项目的 Expo 帐户。
将 "image": "latest"
添加到 eas.json 构建配置文件允许我继续构建过程。
如果收到验证错误,请确保将其放入“ios”对象
{
"cli": {
"version": ">= 0.48.2"
},
"build": {
"development": {
"ios": {"image": "latest"},
"developmentClient": true,
"distribution": "internal"
},
"preview": {
"distribution": "internal"
},
"production": {
}
},
"submit": {
"production": {
}
}
}