iOS升级16.5.1后无法构建Xcode应用程序

g0czyy6m  于 2023-08-07  发布在  iOS
关注(0)|答案(1)|浏览(335)

由于我升级了iOS应用程序,我无法在iOS设备或模拟器上运行Flutter
我在模拟器上有此错误

This is sometimes caused by a malformed plist file:
ProcessException: Process exited abnormally:
An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=22):
Failed to install the requested application
The application's Info.plist does not contain a valid CFBundleVersion.
Ensure your bundle contains a valid CFBundleVersion.
  Command: /usr/bin/arch -arm64e xcrun simctl install XXXXXX /Users/XXXXX/AndroidStudioProjects/XXXX/build/ios/iphonesimulator/Runner.app
Error launching application on iPhone 14 Pro Max.

字符串
物理设备上的此错误

Could not build the precompiled application for the device.
════════════════════════════════════════════════════════════════════════════════
Building a deployable iOS app requires a selected Development Team with a 
Provisioning Profile. Please ensure that a Development Team is selected by:
  1- Open the Flutter project's Xcode target with
       open ios/Runner.xcworkspace
  2- Select the 'Runner' project in the navigator then the 'Runner' target
     in the project settings
  3- Make sure a 'Development Team' is selected under Signing & Capabilities > Team. 
     You may need to:
         - Log in with your Apple ID in Xcode first
         - Ensure you have a valid unique Bundle ID
         - Register your device with your Apple Developer Account
         - Let Xcode automatically provision a profile for your app
  4- Build or run your project again


当我看到xcode上的错误时

Command PhaseScriptExecution failed with a nonzero exit code


这是我的Flutter医生

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.10.4, on macOS 12.6 21G115 darwin-arm64, locale fr-FR)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
[✓] Xcode - develop for iOS and macOS (Xcode 14.2)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2021.2)
[✓] Connected device (2 available)
[✓] Network resources


设置配置文件有效
即使我创建了一个新的Flutter项目,我在物理设备上也有这些错误。我成功地用新项目运行了模拟器。我不明白为什么以前工作的旧应用程序,升级后今天不工作。Xcode上的所有信息在新旧项目之间是相同的。但在旧的我不能运行模拟器和新的我不能和我都不能运行物理设备

ffdz8vbo

ffdz8vbo1#

iOS升级后,您还需要将XCode更新到新版本。在我的例子中,在将XCode升级到14.3.1版本后,在手机上的调试又开始工作了

相关问题