[英]Failed to build iOS app Error output from Xcode build , for flutter
刪除 firebase 文件並將其與我的項目斷開連接后,我無法再連接到 Xcode 模擬器來運行我的項目
Launching lib/main.dart on iPhone 13 in debug mode...
lib/main.dart:1
Xcode build done. 2.0s
Failed to build iOS app
Error output from Xcode build:
↳
2022-10-07 22:10:41.596 xcodebuild[4518:45824] 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
2022-10-07 22:10:41.596 xcodebuild[4518:45824] 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
** BUILD FAILED **
Xcode's output:
↳
Writing result bundle at path:
/var/folders/ty/kz1w949118g4t4srbr_fdr_00000gn/T/flutter_tools.vp3VZA/flutter_ios_build_temp_dirSoQ62R/temporary_xcresult_bundle
note: Using new build system
note: Planning
note: Build preparation complete
warning: Building targets in manual order is deprecated - check "Parallelize build for command-line builds" in the project editor, or set DISABLE_MANUAL_TARGET_ORDER_BUILD_WARNING in any of the targets in the current build to suppress this warning
error: Unexpected duplicate tasks
2
note: Target 'Runner' (project 'Runner') has copy command from '/Users/koc/Desktop/development/flutterplayground/secondapp/ios/Runner/GoogleService-Info.plist' to '/Users/koc/Desktop/development/flutterplayground/secondapp/ios/build/Debug-iphonesimulator/Runner.app/GoogleService-Info.plist'
warning: ONLY_ACTIVE_ARCH=YES requested with multiple ARCHS and no active architecture could be computed; building for all applicable architectures (in target 'Runner' from project 'Runner')
Result bundle written to path:
/var/folders/ty/kz1w949118g4t4srbr_fdr_00000gn/T/flutter_tools.vp3VZA/flutter_ios_build_temp_dirSoQ62R/temporary_xcresult_bundle
Could not build the application for the simulator.
Error launching application on iPhone 13.
Exited
閱讀您的日志這一行引起了我的注意:
ONLY_ACTIVE_ARCH=YES requested with multiple ARCHS and no active architecture could be computed
單擊您的目標 > 構建設置 > VALID_ARCHS > 並添加以下內容:
arm64 arm64e armv7 armv7s x86_64
如果您沒有找到VALID_ARCHS
,請執行以下操作:
1- 單擊構建設置下的加號。
2- 選擇“添加用戶定義的設置”,它會為您添加 NEW_SETTING。
3- 將“NEW_SETTING”重命名為“VALID_ARCHS”並添加以下構建:
arm64 arm64e armv7 armv7s x86_64
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.