gpt4 book ai didi

xcode - 错误构建 : Command PhaseScriptExecution failed with a nonzero exit code (Xcode 14)

转载 作者:行者123 更新时间:2023-12-05 08:03:08 25 4
gpt4 key购买 nike

我将 Xcode 更新到 14.0,并尝试使用 flutter run 运行 flutter app。

在一系列警告之后,flutter 失败并显示“无法为设备构建预编译的应用程序”。当我使用 Xcode 构建时也是如此。

    In module 'UIKit' imported from /Users/tenna/Desktop/sflo/ios/Pods/Target Support Files/AppAuth/AppAuth-prefix.pch:2:
...

note: Removed stale file
'/Users/tenna/Library/Developer/Xcode/DerivedData/Runner-fgophzrxcuuquoffvkeemrqvjrfz/Build/Products/Debug-iphoneos/in_ap
p_purchase_storekit/in_app_purchase_storekit.framework'

note: Removed stale file
'/Users/tenna/Library/Developer/Xcode/DerivedData/Runner-fgophzrxcuuquoffvkeemrqvjrfz/Build/Products/Debug-iphoneos/googl
e_maps_flutter/google_maps_flutter.framework'

note: Removed stale file
'/Users/tenna/Library/Developer/Xcode/DerivedData/Runner-fgophzrxcuuquoffvkeemrqvjrfz/Build/Products/Debug-iphoneos/Strip
e/Stripe3DS2.bundle'

note: Removed stale file
'/Users/tenna/Library/Developer/Xcode/DerivedData/Runner-fgophzrxcuuquoffvkeemrqvjrfz/Build/Products/Debug-iphoneos/geoco
ding/geocoding.framework'

note: Removed stale file
'/Users/tenna/Library/Developer/Xcode/DerivedData/Runner-fgophzrxcuuquoffvkeemrqvjrfz/Build/Products/Debug-iphoneos/gRPC-
C++/gRPCCertificates-Cpp.bundle'

note: Removed stale file
'/Users/tenna/Library/Developer/Xcode/DerivedData/Runner-fgophzrxcuuquoffvkeemrqvjrfz/Build/Products/Debug-iphoneos/geolo
cator_apple/geolocator_apple.framework'

note: Removed stale file
'/Users/tenna/Library/Developer/Xcode/DerivedData/Runner-fgophzrxcuuquoffvkeemrqvjrfz/Build/Products/Debug-iphoneos/flutt
er_native_splash/flutter_native_splash.framework'

note: Removed stale file
'/Users/tenna/Library/Developer/Xcode/DerivedData/Runner-fgophzrxcuuquoffvkeemrqvjrfz/Build/Products/Debug-iphoneos/flutt
er_local_notifications/flutter_local_notifications.framework'

note: Removed stale file
'/Users/tenna/Library/Developer/Xcode/DerivedData/Runner-fgophzrxcuuquoffvkeemrqvjrfz/Build/Products/Debug-iphoneos/flutt
er_app_badger/flutter_app_badger.framework'

note: Removed stale file
'/Users/tenna/Library/Developer/Xcode/DerivedData/Runner-fgophzrxcuuquoffvkeemrqvjrfz/Build/Products/Debug-iphoneos/fireb
ase_storage/firebase_storage.framework'

note: Removed stale file
'/Users/tenna/Library/Developer/Xcode/DerivedData/Runner-fgophzrxcuuquoffvkeemrqvjrfz/Build/Products/Debug-iphoneos/fireb
ase_messaging/firebase_messaging.framework'

note: Removed stale file
'/Users/tenna/Library/Developer/Xcode/DerivedData/Runner-fgophzrxcuuquoffvkeemrqvjrfz/Build/Products/Debug-iphoneos/flutt
er_image_compress/flutter_image_compress.framework'

note: Removed stale file
'/Users/tenna/Library/Developer/Xcode/DerivedData/Runner-fgophzrxcuuquoffvkeemrqvjrfz/Build/Products/Debug-iphoneos/fireb
ase_crashlytics/firebase_crashlytics.framework'

note: Removed stale file
'/Users/tenna/Library/Developer/Xcode/DerivedData/Runner-fgophzrxcuuquoffvkeemrqvjrfz/Build/Products/Debug-iphoneos/fireb
ase_core/firebase_core.framework'

note: Removed stale file
'/Users/tenna/Library/Developer/Xcode/DerivedData/Runner-fgophzrxcuuquoffvkeemrqvjrfz/Build/Products/Debug-iphoneos/fireb
ase_dynamic_links/firebase_dynamic_links.framework'

note: Removed stale file
'/Users/tenna/Library/Developer/Xcode/DerivedData/Runner-fgophzrxcuuquoffvkeemrqvjrfz/Build/Products/Debug-iphoneos/fireb
ase_auth/firebase_auth.framework'

note: Removed stale file
'/Users/tenna/Library/Developer/Xcode/DerivedData/Runner-fgophzrxcuuquoffvkeemrqvjrfz/Build/Products/Debug-iphoneos/cloud
_functions/cloud_functions.framework'

note: Removed stale file
'/Users/tenna/Library/Developer/Xcode/DerivedData/Runner-fgophzrxcuuquoffvkeemrqvjrfz/Build/Products/Debug-iphoneos/fireb
ase_analytics/firebase_analytics.framework'

note: Removed stale file
'/Users/tenna/Library/Developer/Xcode/DerivedData/Runner-fgophzrxcuuquoffvkeemrqvjrfz/Build/Products/Debug-iphoneos/Strip
eApplePay/StripeApplePay.framework'

note: Removed stale file
'/Users/tenna/Library/Developer/Xcode/DerivedData/Runner-fgophzrxcuuquoffvkeemrqvjrfz/Build/Products/Debug-iphoneos/Strip
e/Stripe.bundle'

note: Removed stale file
'/Users/tenna/Library/Developer/Xcode/DerivedData/Runner-fgophzrxcuuquoffvkeemrqvjrfz/Build/Products/Debug-iphoneos/SFLO.
app'

note: Removed stale file
'/Users/tenna/Library/Developer/Xcode/DerivedData/Runner-fgophzrxcuuquoffvkeemrqvjrfz/Build/Products/Debug-iphoneos/SDWeb
ImageWebPCoder/SDWebImageWebPCoder.framework'

note: Removed stale file
'/Users/tenna/Library/Developer/Xcode/DerivedData/Runner-fgophzrxcuuquoffvkeemrqvjrfz/Build/Products/Debug-iphoneos/Strip
eCore/StripeCore.framework'

note: Removed stale file
'/Users/tenna/Library/Developer/Xcode/DerivedData/Runner-fgophzrxcuuquoffvkeemrqvjrfz/Build/Products/Debug-iphoneos/Strip
eUICore/StripeUICore.framework'

note: Removed stale file
'/Users/tenna/Library/Developer/Xcode/DerivedData/Runner-fgophzrxcuuquoffvkeemrqvjrfz/Build/Products/Debug-iphoneos/Strip
eFinancialConnections/StripeFinancialConnections.framework'

note: Removed stale file
'/Users/tenna/Library/Developer/Xcode/DerivedData/Runner-fgophzrxcuuquoffvkeemrqvjrfz/Build/Products/Debug-iphoneos/SDWeb
Image/SDWebImage.framework'

note: Removed stale file
'/Users/tenna/Library/Developer/Xcode/DerivedData/Runner-fgophzrxcuuquoffvkeemrqvjrfz/Build/Products/Debug-iphoneos/absei
l/absl.framework'

note: Removed stale file
'/Users/tenna/Library/Developer/Xcode/DerivedData/Runner-fgophzrxcuuquoffvkeemrqvjrfz/Build/Products/Debug-iphoneos/Mantl
e/Mantle.framework'

note: Removed stale file
'/Users/tenna/Library/Developer/Xcode/DerivedData/Runner-fgophzrxcuuquoffvkeemrqvjrfz/Build/Products/Debug-iphoneos/Promi
sesObjC/FBLPromises.framework'

note: Removed stale file
'/Users/tenna/Library/Developer/Xcode/DerivedData/Runner-fgophzrxcuuquoffvkeemrqvjrfz/Build/Products/Debug-iphoneos/MTBBa
rcodeScanner/MTBBarcodeScanner.framework'

note: Removed stale file
'/Users/tenna/Library/Developer/Xcode/DerivedData/Runner-fgophzrxcuuquoffvkeemrqvjrfz/Build/Products/Debug-iphoneos/Strip
e/Stripe.framework'

note: Removed stale file
'/Users/tenna/Library/Developer/Xcode/DerivedData/Runner-fgophzrxcuuquoffvkeemrqvjrfz/Build/Products/Debug-iphoneos/Googl
eUtilities/GoogleUtilities.framework'

note: Removed stale file
'/Users/tenna/Library/Developer/Xcode/DerivedData/Runner-fgophzrxcuuquoffvkeemrqvjrfz/Build/Products/Debug-iphoneos/GTMAp
pAuth/GTMAppAuth.framework'

note: Removed stale file
'/Users/tenna/Library/Developer/Xcode/DerivedData/Runner-fgophzrxcuuquoffvkeemrqvjrfz/Build/Products/Debug-iphoneos/Googl
eDataTransport/GoogleDataTransport.framework'

note: Removed stale file
'/Users/tenna/Library/Developer/Xcode/DerivedData/Runner-fgophzrxcuuquoffvkeemrqvjrfz/Build/Products/Debug-iphoneos/Fireb
aseMessaging/FirebaseMessaging.framework'

note: Removed stale file
'/Users/tenna/Library/Developer/Xcode/DerivedData/Runner-fgophzrxcuuquoffvkeemrqvjrfz/Build/Products/Debug-iphoneos/GTMSe
ssionFetcher/GTMSessionFetcher.framework'

note: Removed stale file
'/Users/tenna/Library/Developer/Xcode/DerivedData/Runner-fgophzrxcuuquoffvkeemrqvjrfz/Build/Products/Debug-iphoneos/Fireb
aseStorage/FirebaseStorage.framework'

note: Removed stale file
'/Users/tenna/Library/Developer/Xcode/DerivedData/Runner-fgophzrxcuuquoffvkeemrqvjrfz/Build/Products/Debug-iphoneos/Fireb
aseInstallations/FirebaseInstallations.framework'

note: Removed stale file
'/Users/tenna/Library/Developer/Xcode/DerivedData/Runner-fgophzrxcuuquoffvkeemrqvjrfz/Build/Products/Debug-iphoneos/Fireb
aseFunctions/FirebaseFunctions.framework'

note: Removed stale file
'/Users/tenna/Library/Developer/Xcode/DerivedData/Runner-fgophzrxcuuquoffvkeemrqvjrfz/Build/Products/Debug-iphoneos/Fireb
aseCoreDiagnostics/FirebaseCoreDiagnostics.framework'

note: Removed stale file
'/Users/tenna/Library/Developer/Xcode/DerivedData/Runner-fgophzrxcuuquoffvkeemrqvjrfz/Build/Products/Debug-iphoneos/Fireb
aseDynamicLinks/FirebaseDynamicLinks.framework'

note: Removed stale file
'/Users/tenna/Library/Developer/Xcode/DerivedData/Runner-fgophzrxcuuquoffvkeemrqvjrfz/Build/Products/Debug-iphoneos/Fireb
aseCrashlytics/FirebaseCrashlytics.framework'

note: Removed stale file
'/Users/tenna/Library/Developer/Xcode/DerivedData/Runner-fgophzrxcuuquoffvkeemrqvjrfz/Build/Products/Debug-iphoneos/gRPC-
Core/grpc.framework'

note: Removed stale file
'/Users/tenna/Library/Developer/Xcode/DerivedData/Runner-fgophzrxcuuquoffvkeemrqvjrfz/Build/Products/Debug-iphoneos/Fireb
aseCore/FirebaseCore.framework'

note: Removed stale file
'/Users/tenna/Library/Developer/Xcode/DerivedData/Runner-fgophzrxcuuquoffvkeemrqvjrfz/Build/Products/Debug-iphoneos/FMDB/
FMDB.framework'

note: Removed stale file
'/Users/tenna/Library/Developer/Xcode/DerivedData/Runner-fgophzrxcuuquoffvkeemrqvjrfz/Build/Products/Debug-iphoneos/Fireb
aseFirestore/FirebaseFirestore.framework'

note: Removed stale file
'/Users/tenna/Library/Developer/Xcode/DerivedData/Runner-fgophzrxcuuquoffvkeemrqvjrfz/Build/Products/Debug-iphoneos/Fireb
aseAuth/FirebaseAuth.framework'

note: Removed stale file
'/Users/tenna/Library/Developer/Xcode/DerivedData/Runner-fgophzrxcuuquoffvkeemrqvjrfz/Build/Products/Debug-iphoneos/AppAu
th/AppAuth.framework'

note: Removed stale file
'/Users/tenna/Library/Developer/Xcode/DerivedData/Runner-fgophzrxcuuquoffvkeemrqvjrfz/Build/Products/Debug-iphoneos/gRPC-
C++/grpcpp.framework'

note: Removed stale file
'/Users/tenna/Library/Developer/Xcode/DerivedData/Runner-fgophzrxcuuquoffvkeemrqvjrfz/Build/Products/Debug-iphoneos/Borin
gSSL-GRPC/openssl_grpc.framework'

warning: Run script build phase 'Create Symlinks to Header Folders' 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 'BoringSSL-GRPC' from project
'Pods')
warning: Run script build phase 'Create Symlinks to Header Folders' 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 'abseil' from project 'Pods')
warning: Run script build phase 'Create Symlinks to Header Folders' 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 'gRPC-Core' from project
'Pods')
warning: Run script build phase 'Create Symlinks to Header Folders' 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 'gRPC-C++' from project
'Pods')
warning: Run script build phase 'Run Script' 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 'SFLO' from project 'Runner')
warning: Run script build phase 'Thin Binary' 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 'SFLO' from project 'Runner')

Result bundle written to path:
/var/folders/cv/yb103sl92sn87wng_mvscb_80000gn/T/flutter_tools.MJYYvf/flutter_ios_build_temp_dirwtIiAC/temporary_xcresul
t_bundle


Could not build the precompiled application for the device.

Error launching application on tenna (2).

我尝试排除 arm64,将 IPHONEOS_DEPLOYMENT_TARGET 设置为 15.0。flutter clean,清理构建缓存等。但是它们都不起作用..

flutter 医生.

[✓] Flutter (Channel stable, 3.3.2, on macOS 12.5 21G72 darwin-arm, locale ja-JP)
[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 14.0)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2021.2)
[✓] VS Code (version 1.71.0)
[✓] Connected device (5 available)
[✓] HTTP Host Availability

• No issues found!

最佳答案

我通过在 Project -> Build settings -> User-Defined 下删除 VALID_ARCHS 解决了这个问题,或者在 Vscode 中打开 project.pbxproj,找到 VALID_ARCHS 删除并保存。返回 Xcode,按 Command + shift + k 清理构建。

我从下面的链接得到这个:

https://github.com/CocoaPods/CocoaPods/issues/8035#issuecomment-764692977

关于xcode - 错误构建 : Command PhaseScriptExecution failed with a nonzero exit code (Xcode 14),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/73738960/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com