最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

xcode - Can't build flutter app even with a Development Team - Stack Overflow

programmeradmin2浏览0评论

I'm debugging a flutter app wirelessly on my iPhone and got this error:

Running Xcode build...                                                  
Xcode build done.                                           61.9s
Failed to build iOS app
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

For more information, please visit:
  /docs/get-started/install/macos#deploy-to-ios-devices

Or run on an iOS simulator without code signing
════════════════════════════════════════════════════════════════════════════════

Error launching application on [name]'s iPhone.

I have checked I do have a Development Team and actually it worked yesterday just fine.

After restarting xcode and still getting the same error, Xcode > Window > Devices and Simulators shows this error for my iphone:

Previous preparation error: The developer disk image could not be unmounted on this device.; An unknown error message 'InternalError', was received from the device.

I'm debugging a flutter app wirelessly on my iPhone and got this error:

Running Xcode build...                                                  
Xcode build done.                                           61.9s
Failed to build iOS app
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

For more information, please visit:
  https://flutter.dev/docs/get-started/install/macos#deploy-to-ios-devices

Or run on an iOS simulator without code signing
════════════════════════════════════════════════════════════════════════════════

Error launching application on [name]'s iPhone.

I have checked I do have a Development Team and actually it worked yesterday just fine.

After restarting xcode and still getting the same error, Xcode > Window > Devices and Simulators shows this error for my iphone:

Previous preparation error: The developer disk image could not be unmounted on this device.; An unknown error message 'InternalError', was received from the device.
Share Improve this question asked Mar 15 at 8:58 thyuthyu 1,8182 gold badges16 silver badges33 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 2

I ran a few commands but the solution seems to be simply:

Restarting iPhone

发布评论

评论列表(0)

  1. 暂无评论