Failed to build iOS app using Flutterflow Local Run - "Could not build the precompiled application for the device. Uncategorized (Xcode): Unable to find a destination matching the provided destination specifier"

Troubleshooting

I'm trying to use "Local run" to test my application on my iOS device. While Local Run works for iPhone simulators and other devices (macOS, Chrome), the build fails for my iPhone device.

The Device Logs output the following:

Failed to build iOS app

Could not build the precompiled application for the device.

Uncategorized (Xcode): 
Unable to find a destination matching the provided destination specifier: 
{ id:00008101-001D18860299003E }

Available destinations for the "Runner" scheme:
{ platform:iOS, id:dvtdevice-DVTiPhonePlaceholder-iphoneos:placeholder, name:Any iOS Device }
{ platform:iOS Simulator, id:dvtdevice-DVTiOSDeviceSimulatorPlaceholder-iphonesimulator:placeholder, name:Any iOS Simulator Device }
{ platform:iOS Simulator, id:7E491E51-A538-4D1C-A183-8884CFF651AE, OS:17.4, name:iPad (10th generation) }
...

The destination specifier mentioned (00008101-001D18860299003E) is that of my local iPhone.

How do I make sure that the destination specifier is read correctly when the build takes place through flutterflow's Local Run option?

What have you tried so far?

Actions Taken:

  1. Subscribed to Flutter Pro

  2. Account created with Apple Developer Program

  3. Followed the documentation found here - setup done for XCode on Mac and ensured device is ready for development (Certificate in place, Package Name matches across XCode and Flutterflow, and Developer Mode is toggled on).

    XCode recognized my device for Testing.

  4. Reinstalled XCode, updated Flutterflow to latest version and ensured flutter versions match on flutterflow and my MacBook. (XCode 15.4; Flutterflow 4.1.52; Flutter 3.19.1; CocoaPods 1.15.2)

  5. No issues when flutter doctor is run

  6. When I export code using flutterflow CLI and run it directly from XCode, the build is successful and my app runs on my local iPhone device.

Did you check FlutterFlow's Documentation for this topic?
Yes
1
1 reply