'Could not run build/ios/iphoneos/Runner.app on Try launching Xcode and selecting "Product > Run" to fix the problem
When running an iOS App on a real iPhone (not Simulator) you may run into this problem.
The reason is because the app isn't signed by a trusted source.
Solution 1:[1]
To fix this you have to Open Settings on your iPhone and navigate to: General -> Device Management, then select your Developer App certificate and "trust" it.
Solution 2:[2]
If you are trying to run a flutter ios app without Xcode, for example from Android Studio or console with flutter run you need to trust the developer certificate.
Try this on your device:
Tap Settings > General > Profiles or Profiles & Device Management. Under the "Enterprise App" heading, you see a profile for the developer. Tap the name of the developer profile under the Enterprise App heading to establish trust for this developer. Then you see a prompt to confirm your choice
This is a signing issue. For a fix remove your development certificate and provision files to make XCode generate them again. Below are the steps
- Close Xcode
- Open Keychain
- Remove "Iphone Developer" and "Apple Worldwide Developer Relations Certification Authority"
- Reopen Xcode
- Product / Run the project again with debug executable checked (Succeed)
- Close Xcode
- Open vscode
- Debug / Start debugging
- It built and run on physical device successfully
Solution 3:[3]
Same issue happened with me. Device : iphone XR iOS: 15.4
- Open Settings > Developer
- Click on Clear trusted computer
- Then click on trust this computer
Solution 4:[4]
Xcode was configured with an ad hoc profile instead of a dev profile, changing that fixed it.
Solution 5:[5]
it's use for me:
- open the xcode
- select your device
- run build ?sure you have signed your team first?
- trust for this developer
Solution 6:[6]
On iPhone 7 going to Settings and clearing trusted computers with further build clean
did the trick for me
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Rio Weber |
Solution 2 | Paresh Mangukiya |
Solution 3 | Aegon Targeyrian |
Solution 4 | Alberto M |
Solution 5 | ??? |
Solution 6 | user8561473 |