enr*_*nas 11 xcode cocoapods flutter flutter-ios
我的应用程序存档完美保存了两周(是我所做的最新更新)。
\n在对颤振代码进行一些细微更改(我没有添加任何包或其他东西)之后,我尝试再次存档,但遇到了一些奇怪的错误,我不知道它们来自哪里(这些错误来自库,所以没有真正的错误)对其进行更改)。我可以在模拟器上运行它,并且可以毫无问题地进行构建。我只是无法存档。
\n这是错误:
\nRunning Xcode build... \nXcode archive done. 80.5s\nFailed to build iOS app\nError output from Xcode build:\n\xe2\x86\xb3\n 2022-03-20 00:27:32.265 xcodebuild[22543:393081] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionSentinelHostApplications for extension\n Xcode.DebuggerFoundation.AppExtensionHosts.watchOS of plug-in com.apple.dt.IDEWatchSupportCore\n 2022-03-20 00:27:32.266 xcodebuild[22543:393081] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionPointIdentifierToBundleIdentifier for extension\n Xcode.DebuggerFoundation.AppExtensionToBundleIdentifierMap.watchOS of plug-in com.apple.dt.IDEWatchSupportCore\n ** ARCHIVE FAILED **\n\n\nXcode's output:\n\xe2\x86\xb3\n Writing result bundle at path:\n /var/folders/lp/myd6ssb57_jg81p9920h5_sr0000gn/T/flutter_tools.AJZJFr/flutter_ios_build_temp_dir4zPWKc/temporary_xcresult_bundle\n\n LLVM ERROR: out of memory\n Allocation failed\n Please submit a bug report (https://swift.org/contributing/#reporting-bugs) and include the project and the crash backtrace.\n Stack dump:\n 0. Program arguments: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-frontend -frontend -c -primary-file\n /Users/eae/Library/Developer/Xcode/DerivedData/Runner-cssekixerfgncvbcfrtqdpehzsfb/Build/Intermediates.noindex/ArchiveIntermediates/Runner/IntermediateBuildFilesPath/Pods.build/Release-iphoneos/prin\n ting.build/Objects-normal/arm64/PrintJob.bc -embed-bitcode -target arm64-apple-ios11.0 -Xllvm -aarch64-use-tbi -O -disable-llvm-optzns -module-name printing -o\n /Users/eae/Library/Developer/Xcode/DerivedData/Runner-cssekixerfgncvbcfrtqdpehzsfb/Build/Intermediates.noindex/ArchiveIntermediates/Runner/IntermediateBuildFilesPath/Pods.build/Release-iphoneos/prin\n ting.build/Objects-normal/arm64/PrintJob.o\n 1. Apple Swift version 5.6 (swiftlang-5.6.0.323.62 clang-1316.0.20.8)\n 2. Compiling with the current language version\n 3. Running pass 'Function Pass Manager' on module\n '/Users/eae/Library/Developer/Xcode/DerivedData/Runner-cssekixerfgncvbcfrtqdpehzsfb/Build/Intermediates.noindex/ArchiveIntermediates/Runner/IntermediateBuildFilesPath/Pods.build/Release-iphoneos/pri\n nting.build/Objects-normal/arm64/PrintJob.bc'.\n 4. Running pass 'ObjC ARC contraction' on function '@UI_USER_INTERFACE_IDIOM'\n Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH or set the environment var `LLVM_SYMBOLIZER_PATH` to point to it):\n 0 swift-frontend 0x0000000107437de7 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 39\n 1 swift-frontend 0x0000000107436e38 llvm::sys::RunSignalHandlers() + 248\n 2 swift-frontend 0x0000000107438440 SignalHandler(int) + 288\n 3 libsystem_platform.dylib 0x00007ff80f10cdfd _sigtramp + 29\n 4 libsystem_malloc.dylib 0x00007ff80ef2aabb _malloc_zone_malloc + 125\n 5 libsystem_c.dylib 0x00007ff80f042d24 abort + 123\n 6 swift-frontend 0x0000000107384cda llvm::report_bad_alloc_error(char const*, bool) + 106\n 7 swift-frontend 0x0000000107384cf2 out_of_memory_new_handler() + 18\n 8 libc++abi.dylib 0x00007ff80f0b496b operator new(unsigned long) + 43\n 9 swift-frontend 0x0000000107145efd llvm::Function::BuildLazyArguments() const + 77\n 10 swift-frontend 0x0000000104f2ee87 llvm::objcarc::BundledRetainClaimRVs::insertRVCallWithColors(llvm::Instruction*, llvm::CallBase*, llvm::DenseMap<llvm::BasicBlock*,\n llvm::TinyPtrVector<llvm::BasicBlock*>, llvm::DenseMapInfo<llvm::BasicBlock*>, llvm::detail::DenseMapPair<llvm::BasicBlock*, llvm::TinyPtrVector<llvm::BasicBlock*> > > const&) + 151\n 11 swift-frontend 0x0000000104f41f88 (anonymous namespace)::ObjCARCContract::run(llvm::Function&, llvm::AAResults*, llvm::DominatorTree*) + 1384\n 12 swift-frontend 0x000000010717d380 llvm::FPPassManager::runOnFunction(llvm::Function&) + 1488\n 13 swift-frontend 0x0000000107184073 llvm::FPPassManager::runOnModule(llvm::Module&) + 67\n 14 swift-frontend 0x000000010717db39 llvm::legacy::PassManagerImpl::run(llvm::Module&) + 1161\n 15 swift-frontend 0x000000010269b6df swift::performLLVMOptimizations(swift::IRGenOptions const&, llvm::Module*, llvm::TargetMachine*) + 3791\n 16 swift-frontend 0x000000010269c8cc swift::performLLVM(swift::IRGenOptions const&, swift::DiagnosticEngine&, llvm::sys::SmartMutex<false>*, llvm::GlobalVariable*, llvm::Module*,\n llvm::TargetMachine*, llvm::StringRef, swift::UnifiedStatsReporter*) + 2812\n 17 swift-frontend 0x00000001026a5aa5 swift::performLLVM(swift::IRGenOptions const&, swift::ASTContext&, llvm::Module*, llvm::StringRef) + 213\n 18 swift-frontend 0x0000000102160795 swift::performFrontend(llvm::ArrayRef<char const*>, char const*, void*, swift::FrontendObserver*) + 16565\n 19 swift-frontend 0x000000010211f5d4 swift::mainEntry(int, char const**) + 1108\n 20 dyld 0x000000011690651e start + 462\n error: Abort trap: 6 (in target 'printing' from project 'Pods')\n error: backend command failed due to signal 6 (use -v to see invocation)\n\nRun Code Online (Sandbox Code Playgroud)\n我已经尝试过以下方法:
\n在项目的 ios/ 文件夹中,将 Podfile 更改为
\n平台:ios,'12.0'
\n在项目的 ios/ 文件夹内的终端中运行 pod deintegrate。
\n在 ios/ 文件夹中运行 pod install --repo-update
\n来自颤振医生:
\n[\xe2\x9c\x93] Flutter (Channel stable, 2.10.3, on macOS 12.3 21E230 darwin-x64, locale en-ES)\n \xe2\x80\xa2 Flutter version 2.10.3 at /Users/eae/Flutter/flutter\n \xe2\x80\xa2 Upstream repository https://github.com/flutter/flutter.git\n \xe2\x80\xa2 Framework revision 7e9793dee1 (2 weeks ago), 2022-03-02 11:23:12 -0600\n \xe2\x80\xa2 Engine revision bd539267b4\n \xe2\x80\xa2 Dart version 2.16.1\n \xe2\x80\xa2 DevTools version 2.9.2\n\n[!] Android toolchain - develop for Android devices (Android SDK version 31.0.0)\n \xe2\x80\xa2 Android SDK at /Users/eae/Library/Android/sdk\n \xe2\x9c\x97 cmdline-tools component is missing\n Run `path/to/sdkmanager --install "cmdline-tools;latest"`\n See https://developer.android.com/studio/command-line for more details.\n \xe2\x9c\x97 Android license status unknown.\n Run `flutter doctor --android-licenses` to accept the SDK licenses.\n See https://flutter.dev/docs/get-started/install/macos#android-setup for more details.\n\n[\xe2\x9c\x93] Xcode - develop for iOS and macOS (Xcode 13.3)\n \xe2\x80\xa2 Xcode at /Applications/Xcode.app/Contents/Developer\n \xe2\x80\xa2 CocoaPods version 1.11.3\n\n[\xe2\x9c\x93] Chrome - develop for the web\n \xe2\x80\xa2 Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome\n\n[\xe2\x9c\x93] Android Studio (version 2021.1)\n \xe2\x80\xa2 Android Studio at /Applications/Android Studio.app/Contents\n \xe2\x80\xa2 Flutter plugin can be installed from:\n https://plugins.jetbrains.com/plugin/9212-flutter\n \xe2\x80\xa2 Dart plugin can be installed from:\n https://plugins.jetbrains.com/plugin/6351-dart\n \xe2\x80\xa2 Java version OpenJDK Runtime Environment (build 11.0.11+0-b60-7590822)\n\n[\xe2\x9c\x93] VS Code (version 1.65.0)\n \xe2\x80\xa2 VS Code at /Applications/Visual Studio Code.app/Contents\n \xe2\x80\xa2 Flutter extension can be installed from:\n https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter\n\n[\xe2\x9c\x93] Connected device (2 available)\n \xe2\x80\xa2 iPhone 13 (mobile) \xe2\x80\xa2 50A38949-153E-4E22-AAF3-E96FC64DF2B5 \xe2\x80\xa2 ios \xe2\x80\xa2 com.apple.CoreSimulator.SimRuntime.iOS-15-4 (simulator)\n \xe2\x80\xa2 Chrome (web) \xe2\x80\xa2 chrome \xe2\x80\xa2 web-javascript \xe2\x80\xa2 Google Chrome 99.0.4844.74\n\n[\xe2\x9c\x93] HTTP Host Availability\n \xe2\x80\xa2 All required HTTP hosts are available\n```\nRun Code Online (Sandbox Code Playgroud)\n
小智 7
这是 Xcode 13.3 版本中出现的问题。在 Xcode 13.3 中,如果您有使用 UI_USER_INTERFACE_IDIOM() 的代码,则在运行 Archive 时将收到“内存不足”错误。将“UI_USER_INTERFACE_IDIOM()”更改为“UIDevice.current.userInterfaceIdiom”可以解决该错误。
目前,我们有以下解决方案。
参考
| 归档时间: |
|
| 查看次数: |
7347 次 |
| 最近记录: |