Hab*_*man 7 ios reactjs react-native fastlane expo
我正在尝试从 expo 托管项目构建 iOS 应用程序。构建在快速通道步骤失败。
\n在 Expo SDK 44、45 中一切正常。但是当我升级到 SDK 46 时,我遇到了这个问题。
\n这是我的 package.json
\n {\n "name": "App123",\n "version": "1.0.0",\n "main": "node_modules/expo/AppEntry.js",\n "scripts": {\n "start": "expo start",\n "android": "expo start --android",\n "ios": "expo start --ios",\n "web": "expo start --web"\n },\n "dependencies": {\n "@expo/vector-icons": "^13.0.0",\n "@openspacelabs/react-native-zoomable-view": "^2.0.4",\n "@react-native-community/datetimepicker": "6.2.0",\n "@react-native-community/netinfo": "9.3.0",\n "@react-native-community/slider": "4.2.3",\n "@react-native-google-signin/google-signin": "^8.0.0",\n "@react-navigation/bottom-tabs": "^6.4.0",\n "@react-navigation/drawer": "^6.5.0",\n "@react-navigation/native": "^6.0.13",\n "@react-navigation/native-stack": "^6.9.0",\n "@react-navigation/stack": "^6.3.2",\n "@stripe/stripe-react-native": "0.13.1",\n "apisauce": "^2.1.6",\n "expo": "~46.0.13",\n "expo-apple-authentication": "^4.3.0",\n "expo-auth-session": "^3.7.1",\n "expo-constants": "^13.2.4",\n "expo-dev-client": "~1.3.1",\n "expo-document-picker": "^10.3.0",\n "expo-firebase-recaptcha": "^2.3.0",\n "expo-font": "^10.2.1",\n "expo-image-picker": "^13.3.1",\n "expo-linear-gradient": "^11.4.0",\n "expo-linking": "^3.2.2",\n "expo-localization": "^13.1.0",\n "expo-location": "^14.3.0",\n "expo-notifications": "^0.16.1",\n "expo-secure-store": "^11.3.0",\n "expo-splash-screen": "^0.16.2",\n "expo-status-bar": "^1.4.0",\n "expo-tracking-transparency": "^2.3.1",\n "expo-updates": "^0.14.6",\n "firebase": "9.9.2",\n "formik": "^2.2.9",\n "html-entities": "^2.3.3",\n "lodash": "^4.17.21",\n "lottie-react-native": "5.1.3",\n "mime": "^3.0.0",\n "moment": "^2.29.4",\n "qs": "^6.11.0",\n "react": "18.0.0",\n "react-native": "0.69.6",\n "react-native-credit-card-input": "^0.4.1",\n "react-native-credit-card-input-view": "^0.0.7",\n "react-native-draggable-flatlist": "^3.1.2",\n "react-native-fbsdk-next": "^11.0.0",\n "react-native-geocoding": "^0.5.0",\n "react-native-gesture-handler": "~2.5.0",\n "react-native-google-mobile-ads": "^8.2.0",\n "react-native-maps": "0.31.1",\n "react-native-phone-number-input": "^2.1.0",\n "react-native-progress": "^5.0.0",\n "react-native-razorpay": "^2.2.9",\n "react-native-read-more-text": "^1.1.2",\n "react-native-reanimated": "~2.9.1",\n "react-native-safe-area-context": "4.3.1",\n "react-native-screens": "~3.15.0",\n "react-native-svg": "12.3.0",\n "react-native-webview": "11.23.0",\n "react-native-youtube-iframe": "^2.2.2",\n "yup": "^0.32.11"\n },\n "devDependencies": {\n "@babel/core": "^7.12.9"\n },\n "private": true\n}\nRun Code Online (Sandbox Code Playgroud)\n这是 fastlane 错误日志
\nExecuting App123 \xc2\xbb Start Packager on http://localhost:8081\n\xe2\x80\xba Compiling App123 \xc2\xbb ExpoModulesProvider.swift\n\xe2\x80\xba Compiling App123 \xc2\xbb noop-file.swift\n\xe2\x80\xba Compiling App123 \xc2\xbb main.m\n\xe2\x80\xba Compiling App123 \xc2\xbb App123.c\n\xe2\x80\xba Linking App123 \xc2\xbb App123\n\n\xe2\x9d\x8c ld: '/Users/expo/Library/Developer/Xcode/DerivedData/App123-djegplhkioltttdpxhkjholomhle/Build/Intermediates.noindex/ArchiveIntermediates/App123/BuildProductsPath/Release-iphoneos/XCFrameworkIntermediates/FBAEMKit/FBAEMKit.framework/FBAEMKit' does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. file '/Users/expo/Library/Developer/Xcode/DerivedData/App123-djegplhkioltttdpxhkjholomhle/Build/Intermediates.noindex/ArchiveIntermediates/App123/BuildProductsPath/Release-iphoneos/XCFrameworkIntermediates/FBAEMKit/FBAEMKit.framework/FBAEMKit' 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\x96\xb8 ** ARCHIVE FAILED **\n\xe2\x96\xb8 The following build commands failed:\n\xe2\x96\xb8 Ld /Users/expo/Library/Developer/Xcode/DerivedData/App123-djegplhkioltttdpxhkjholomhle/Build/Intermediates.noindex/ArchiveIntermediates/App123/InstallationBuildProductsLocation/Applications/App123.app/App123 normal (in target 'App123' from project 'App123')\n\xe2\x96\xb8 (1 failure)\n2022-11-10 03:21:16.259 xcodebuild[4548:14785] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionSentinelHostApplications for extension Xcode.DebuggerFoundation.AppExtensionHosts.watchOS of plug-in com.apple.dt.IDEWatchSupportCore\n2022-11-10 03:21:16.259 xcodebuild[4548:14785] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionPointIdentifierToBundleIdentifier for extension Xcode.DebuggerFoundation.AppExtensionToBundleIdentifierMap.watchOS of plug-in com.apple.dt.IDEWatchSupportCore\n2022-11-10 03:21:16.334 xcodebuild[4548:14785] XType: failed to connect - Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.fonts was invalidated: failed at lookup with error 3 - No such process." UserInfo={NSDebugDescription=The connection to service named com.apple.fonts was invalidated: failed at lookup with error 3 - No such process.}\n2022-11-10 03:21:16.334 xcodebuild[4548:14785] Font server protocol version mismatch (expected:5 got:0), falling back to local fonts\n2022-11-10 03:21:16.334 xcodebuild[4548:14785] XType: unable to make a connection to the font daemon!\n2022-11-10 03:21:16.334 xcodebuild[4548:14785] XType: XTFontStaticRegistry is enabled as fontd is not available.\n** ARCHIVE FAILED **\nThe following build commands failed:\n Ld /Users/expo/Library/Developer/Xcode/DerivedData/App123-djegplhkioltttdpxhkjholomhle/Build/Intermediates.noindex/ArchiveIntermediates/App123/InstallationBuildProductsLocation/Applications/App123.app/App123 normal (in target 'App123' from project 'App123')\n(1 failure)\nExit status: 65\n+-------------+-------------------------+\n| Build environment |\n+-------------+-------------------------+\n| xcode_path | /Applications/Xcode.app |\n| gym_version | 2.206.1 |\n| sdk | iPhoneOS15.5.sdk |\n+-------------+-------------------------+\nLooks like fastlane ran into a build/archive error with your project\nIt's hard to tell what's causing the error, so we wrote some guides on how\nto troubleshoot build and signing issues: https://docs.fastlane.tools/codesigning/getting-started/\nBefore submitting an issue on GitHub, please follow the guide above and make\nsure your project is set up correctly.\nfastlane uses `xcodebuild` commands to generate your binary, you can see the\nthe full commands printed out in yellow in the above log.\nMake sure to inspect the output above, as usually you'll find more error information there\n[stderr] [!] Error building the application - see the log above\nError: Fastlane build failed with unknown error. See logs for the "Run fastlane" and "Xcode Logs" phases for more information.\nFastlane errors in most cases are not printed at the end of the output, so you may not find any useful information in the last lines of output when looking for an error message.\nRun Code Online (Sandbox Code Playgroud)\n我使用了“eas build -p ios”命令也使用了“eas build -p ios --clear-cache”
\n没用。
\n有人可以帮忙吗?拜托拜托拜托了!!!!
\n以下内容为我解决了这个问题:
// app.json
{
...
ios: {
"bitcode": false
}
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
7359 次 |
| 最近记录: |