Ume*_*ani 8 cocoapods react-native expo xcode14 eas
我相信这就是正在发生的事情:
\n我的 MacOS 系统更新了,随后 Xcode 更新到了版本 14。从那时起,我的 eas 本地构建就不再成功完成。将构建提交到 eas 构建系统仍然有效,但队列可能需要很长时间,因此当我需要构建 .ipa 以安装在真实设备上时,它会删除任何类型的快速反馈。
\n这是我收到的错误消息。
\n[RUN_FASTLANE] Please file a bug at https://feedbackassistant.apple.com with this warning message and any useful information you can provide.\n[RUN_FASTLANE] 2022-09-15 23:36:18.227 xcodebuild[29486:925103] DVTAssertions: Warning in /System/Volumes/Data/SWE/Apps/DT/BuildRoots/BuildRoot2/ActiveBuildRoot/Library/Caches/com.apple.xbs/Sources/DVTiOSFrameworks/DVTiOSFrameworks-21157/DTDeviceKitBase/DTDKRemoteDeviceData.m:382\n[RUN_FASTLANE] Details: (null) deviceType from 00008006-000924391E47002E was NULL when -platform called.\n[RUN_FASTLANE] Object: <DTDKMobileDeviceToken: 0x11640b0d0>\n[RUN_FASTLANE] Method: -platform\n[RUN_FASTLANE] Thread: <NSThread: 0x600000aa0980>{number = 2, name = (null)}\n[RUN_FASTLANE] Please file a bug at https://feedbackassistant.apple.com with this warning message and any useful information you can provide.\n[RUN_FASTLANE] Command timed out after 6 seconds on try 2 of 4, trying again with a 12 second timeout...\n[RUN_FASTLANE] 2022-09-15 23:36:22.240 xcodebuild[29486:925141] Requested but did not find extension point with identifier Xcode.InterfaceBuilderBuildSupport.PlatformDefinition\n[RUN_FASTLANE] 2022-09-15 23:36:22.240 xcodebuild[29483:925080] Requested but did not find extension point with identifier Xcode.InterfaceBuilderBuildSupport.PlatformDefinition\n[RUN_FASTLANE] --- xcodebuild: WARNING: Using the first of multiple matching destinations:\n[RUN_FASTLANE] { platform:macOS, arch:arm64, variant:Designed for [iPad,iPhone], id:00006000-000A103126E2801E }\n[RUN_FASTLANE] { platform:iOS, id:dvtdevice-DVTiPhonePlaceholder-iphoneos:placeholder, name:Any iOS Device }\n[RUN_FASTLANE] { platform:iOS Simulator, id:dvtdevice-DVTiOSDeviceSimulatorPlaceholder-iphonesimulator:placeholder, name:Any iOS Simulator Device }\n[RUN_FASTLANE] { platform:iOS Simulator, id:7AD07A6C-05A5-45D7-AE11-C35A755B9BC5, OS:16.0, name:iPhone 14 }\n[RUN_FASTLANE] { platform:iOS Simulator, id:413A72BF-7FAA-4A35-B1BA-83DDA8479F7B, OS:16.0, name:iPhone 14 Plus }\n[RUN_FASTLANE] { platform:iOS Simulator, id:5E5073DE-9CD5-42E1-8588-D2697E266A77, OS:16.0, name:iPhone 14 Pro }\n[RUN_FASTLANE] { platform:iOS Simulator, id:71F46718-DE91-474D-BDA2-9BEE5239A97C, OS:16.0, name:iPhone 14 Pro Max }\n[RUN_FASTLANE] { platform:iOS Simulator, id:F3D3CB98-3292-432C-B406-6FDE511CF164, OS:16.0, name:iPhone SE (3rd generation) }\n[RUN_FASTLANE] { platform:iOS Simulator, id:7087853B-DF5B-4A63-8C54-ECFBCC9663C8, OS:16.0, name:iPad (9th generation) }\n[RUN_FASTLANE] { platform:iOS Simulator, id:BB7BF18B-9A64-4BE1-92F8-7CD5054588BC, OS:16.0, name:iPad Air (5th generation) }\n[RUN_FASTLANE] { platform:iOS Simulator, id:60617E87-ED2D-4796-88D2-9B7E12067B07, OS:16.0, name:iPad Pro (11-inch) (3rd generation) }\n[RUN_FASTLANE] { platform:iOS Simulator, id:5300781D-B8BA-46E7-B680-182C3A72CC64, OS:16.0, name:iPad Pro (12.9-inch) (5th generation) }\n[RUN_FASTLANE] { platform:iOS Simulator, id:349A49C6-E9B7-4B05-925E-DB65DC81FED1, OS:16.0, name:iPad mini (6th generation) }\n[RUN_FASTLANE] 2022-09-15 23:36:27.954 xcodebuild[29521:925357] Requested but did not find extension point with identifier Xcode.InterfaceBuilderBuildSupport.PlatformDefinition\n[RUN_FASTLANE] Detected provisioning profile mapping: {:"com.lifenightsinc.mytally"=>"fafe1a95-dbec-4868-8f66-e9dcd10adc88"}\n[RUN_FASTLANE] \n[RUN_FASTLANE] +--------------------------------------+--------------------------------------+\n[RUN_FASTLANE] | Summary for gym 2.208.0 |\n[RUN_FASTLANE] +--------------------------------------+--------------------------------------+\n[RUN_FASTLANE] | workspace | ./MyTally.xcworkspace |\n[RUN_FASTLANE] | scheme | MyTally |\n[RUN_FASTLANE] | clean | false |\n[RUN_FASTLANE] | output_directory | ./build |\n[RUN_FASTLANE] | output_name | MyTally |\n[RUN_FASTLANE] | configuration | Release |\n[RUN_FASTLANE] | silent | false |\n[RUN_FASTLANE] | skip_package_ipa | false |\n[RUN_FASTLANE] | skip_package_pkg | false |\n[RUN_FASTLANE] | export_options.method | app-store |\n[RUN_FASTLANE] | export_options.provisioningProfiles | fafe1a95-dbec-4868-8f66-e9dcd10adc8 |\n[RUN_FASTLANE] | .com.lifenightsinc.mytally | 8 |\n[RUN_FASTLANE] | export_xcargs | OTHER_CODE_SIGN_FLAGS="--keychain |\n[RUN_FASTLANE] | | /var/folders/4z/kv22yhfn6597k5l99c2 |\n[RUN_FASTLANE] | | smvm40000gn/T/turtle-v2-a56d594c-4c |\n[RUN_FASTLANE] | | a2-4011-a088-76e19d9df995.keychain" |\n[RUN_FASTLANE] | build_path | /Users/umerkiani/Library/Developer/ |\n[RUN_FASTLANE] | | Xcode/Archives/2022-09-15 |\n[RUN_FASTLANE] | result_bundle | false |\n[RUN_FASTLANE] | buildlog_path | /var/folders/4z/kv22yhfn6597k5l99c2 |\n[RUN_FASTLANE] | | smvm40000gn/T/eas-build-local-nodej |\n[RUN_FASTLANE] | | s/66e97d3c-42ac-4350-9509-14c3b8d76 |\n[RUN_FASTLANE] | | 65e/logs |\n[RUN_FASTLANE] | destination | generic/platform=iOS |\n[RUN_FASTLANE] | suppress_xcode_output | true |\n[RUN_FASTLANE] | xcodebuild_formatter | xcpretty |\n[RUN_FASTLANE] | disable_xcpretty | true |\n[RUN_FASTLANE] | skip_profile_detection | false |\n[RUN_FASTLANE] | xcodebuild_command | xcodebuild |\n[RUN_FASTLANE] | skip_package_dependencies_resolutio | false |\n[RUN_FASTLANE] | n | |\n[RUN_FASTLANE] | disable_package_automatic_updates | false |\n[RUN_FASTLANE] | use_system_scm | false |\n[RUN_FASTLANE] | xcode_path | /Applications/Xcode.app |\n[RUN_FASTLANE] +--------------------------------------+--------------------------------------+\n[RUN_FASTLANE] $ set -o pipefail && xcodebuild -workspace ./MyTally.xcworkspace -scheme MyTally -configuration Release -destination 'generic/platform=iOS' -archivePath /Users/umerkiani/Library/Developer/Xcode/Archives/2022-09-15/MyTally\\ 2022-09-15\\ 23.36.28.xcarchive archive | tee /var/folders/4z/kv22yhfn6597k5l99c2smvm40000gn/T/eas-build-local-nodejs/66e97d3c-42ac-4350-9509-14c3b8d7665e/logs/MyTally-MyTally.log > /dev/null\n[RUN_FASTLANE] Run script build phase '[CP-User] Generate app.config for prebuilt Constants.manifest' 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 'EXConstants' from project 'Pods')\n[RUN_FASTLANE] 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 'MyTally' from project 'MyTally')\n[RUN_FASTLANE] 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 'MyTally' from project 'MyTally')\n[RUN_FASTLANE] \xe2\x96\xb8 ** ARCHIVE FAILED **\n[RUN_FASTLANE] ** ARCHIVE FAILED **\n[RUN_FASTLANE] Exit status: 65\n[RUN_FASTLANE] \n[RUN_FASTLANE] +-------------+-------------------------+\n[RUN_FASTLANE] | Build environment |\n[RUN_FASTLANE] +-------------+-------------------------+\n[RUN_FASTLANE] | xcode_path | /Applications/Xcode.app |\n[RUN_FASTLANE] | gym_version | 2.208.0 |\n[RUN_FASTLANE] | sdk | iPhoneOS16.0.sdk |\n[RUN_FASTLANE] +-------------+-------------------------+\n[RUN_FASTLANE] Looks like fastlane ran into a build/archive error with your project\n[RUN_FASTLANE] It's hard to tell what's causing the error, so we wrote some guides on how\n[RUN_FASTLANE] to troubleshoot build and signing issues: https://docs.fastlane.tools/codesigning/getting-started/\n[RUN_FASTLANE] Before submitting an issue on GitHub, please follow the guide above and make\n[RUN_FASTLANE] sure your project is set up correctly.\n[RUN_FASTLANE] fastlane uses `xcodebuild` commands to generate your binary, you can see the\n[RUN_FASTLANE] the full commands printed out in yellow in the above log.\n[RUN_FASTLANE] Make sure to inspect the output above, as usually you'll find more error information there\n[RUN_FASTLANE] [!] Error building the application - see the log above\n[RUN_FASTLANE] Error: Fastlane build failed with unknown error. Please refer to the "Run fastlane" and "Xcode Logs" phases.\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.\n[CLEAN_UP_CREDENTIALS] Destroying keychain - /var/folders/4z/kv22yhfn6597k5l99c2smvm40000gn/T/turtle-v2-a56d594c-4ca2-4011-a088-76e19d9df995.keychain\n[CLEAN_UP_CREDENTIALS] Removing provisioning profile\n\nBuild failed\nFastlane build failed with unknown error. Please refer to the "Run fastlane" and "Xcode Logs" phases.\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.\n Error: npx exited with non-zero code: 1\nRun Code Online (Sandbox Code Playgroud)\n
经过大约一整天的工作,我终于得到了与 Xcode 14 和 iOS 16 一起使用的本地构建。我遇到的主要问题是 expo 版本、react 版本和我正在共享的 package.json 的其他一些依赖版本文件供参考,我将分享您修复它并使其正常工作所需的确切步骤。
我的旧包文件是
{
"name": "mytallymobile",
"version": "1.0.0",
"main": "node_modules/expo/AppEntry.js",
"scripts": {
"start": "expo start",
"android": "expo start --android",
"ios": "expo start --ios",
"web": "expo start --web",
"eject": "expo eject"
},
"dependencies": {
"@expo-google-fonts/lato": "^0.2.2",
"@react-native-async-storage/async-storage": "~1.17.3",
"@react-native-community/clipboard": "^1.5.1",
"@react-native-community/datetimepicker": "6.1.2",
"@react-navigation/bottom-tabs": "^6.3.1",
"@react-navigation/native": "^6.0.10",
"@react-navigation/native-stack": "^6.6.2",
"@reduxjs/toolkit": "^1.8.2",
"@twotalltotems/react-native-otp-input": "^1.3.11",
"axios": "^0.27.2",
"expo": "~45.0.0",
"expo-asset": "~8.5.0",
"expo-auth-session": "^3.6.1",
"expo-font": "~10.1.0",
"expo-image-manipulator": "~10.3.1",
"expo-image-picker": "~13.1.1",
"expo-linear-gradient": "~11.3.0",
"expo-location": "~14.2.2",
"expo-random": "^12.2.0",
"expo-screen-orientation": "~4.2.0",
"expo-splash-screen": "~0.15.1",
"expo-status-bar": "~1.3.0",
"i": "^0.3.7",
"install": "^0.13.0",
"moment": "^2.29.3",
"npm": "^8.13.2",
"react": "17.0.2",
"react-dom": "17.0.2",
"react-native": "0.68.2",
"react-native-dropdown-picker": "^5.4.2",
"react-native-google-places-autocomplete": "^2.4.1",
"react-native-indicators": "^0.17.0",
"react-native-keyboard-aware-scroll-view": "^0.9.5",
"react-native-modal-datetime-picker": "^13.1.2",
"react-native-otp-form": "^1.0.2",
"react-native-paper": "^4.12.1",
"react-native-safe-area-context": "4.2.4",
"react-native-screens": "~3.11.1",
"react-native-segmented-control-tab": "^4.0.0",
"react-native-spannable-string": "^1.0.0",
"react-native-svg": "12.3.0",
"react-native-web": "0.17.7",
"react-redux": "^8.0.2",
"react-usestateref": "^1.0.8"
},
"devDependencies": {
"@babel/core": "^7.12.9"
},
"private": true
Run Code Online (Sandbox Code Playgroud)
更改后,我的新包文件如下所示
{
"name": "mytallymobile",
"version": "1.0.0",
"main": "node_modules/expo/AppEntry.js",
"scripts": {
"start": "expo start",
"android": "expo start --android",
"ios": "expo start --ios",
"web": "expo start --web",
"eject": "expo eject"
},
"dependencies": {
"@expo-google-fonts/lato": "^0.2.2",
"@react-native-async-storage/async-storage": "~1.17.3",
"@react-native-community/clipboard": "^1.5.1",
"@react-native-community/datetimepicker": "6.2.0",
"@react-navigation/bottom-tabs": "^6.3.1",
"@react-navigation/native": "^6.0.10",
"@react-navigation/native-stack": "^6.6.2",
"@reduxjs/toolkit": "^1.8.2",
"@twotalltotems/react-native-otp-input": "^1.3.11",
"axios": "^0.27.2",
"eas-cli": "^2.1.0",
"expo": "~46.0.10",
"expo-asset": "~8.6.1",
"expo-auth-session": "^3.7.1",
"expo-font": "~10.2.0",
"expo-image-manipulator": "~10.4.0",
"expo-image-picker": "~13.3.1",
"expo-linear-gradient": "~11.4.0",
"expo-location": "~14.3.0",
"expo-random": "^12.3.0",
"expo-screen-orientation": "~4.3.0",
"expo-splash-screen": "~0.16.2",
"expo-status-bar": "~1.4.0",
"i": "^0.3.7",
"install": "^0.13.0",
"moment": "^2.29.3",
"npm": "^8.13.2",
"react": "18.0.0",
"react-dom": "18.0.0",
"react-native": "0.69.5",
"react-native-dropdown-picker": "^5.4.2",
"react-native-google-places-autocomplete": "^2.4.1",
"react-native-indicators": "^0.17.0",
"react-native-keyboard-aware-scroll-view": "^0.9.5",
"react-native-modal-datetime-picker": "^13.1.2",
"react-native-otp-form": "^1.0.2",
"react-native-paper": "^4.12.1",
"react-native-safe-area-context": "4.3.1",
"react-native-screens": "~3.15.0",
"react-native-segmented-control-tab": "^4.0.0",
"react-native-spannable-string": "^1.0.0",
"react-native-svg": "12.3.0",
"react-native-web": "0.18.7",
"react-redux": "^8.0.2",
"react-usestateref": "^1.0.8"
},
"devDependencies": {
"@babel/core": "^7.12.9",
"prettier": "2.7.1"
},
"private": true
Run Code Online (Sandbox Code Playgroud)
}
解决问题的最终步骤如下
执行完上述所有步骤后,您可以运行 eas build --platform ios --local 这次应该会成功编译构建。如果仍然没有,您可以在评论中向我做出反应。
| 归档时间: |
|
| 查看次数: |
5460 次 |
| 最近记录: |