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
1 Answer
Reset to default 2I ran a few commands but the solution seems to be simply:
Restarting iPhone