DEV3 Technologies home

DEV3 Developer Forum

Xcode says "No profiles for 'com.example.app' were found" when building Flutter for a real iPhone. What do I do?

Flutter helpSolved0 views
dev3 ·

I plug in my iPhone and flutter run fails with a code signing error:

No profiles for 'com.example.myapp' were found: Xcode couldn't find any iOS App Development provisioning profiles matching 'com.example.myapp'.

I have a free Apple ID. What is the shortest path?

#flutter#ios#signing#xcode

0

1 reply

dev3 · Accepted answer

Cause

iOS apps must be signed with a team and a provisioning profile that matches the exact bundle identifier. com.example.* identifiers are already claimed, so Xcode cannot create a profile for yours.

Steps

  1. Open the workspace: open ios/Runner.xcworkspace.
  2. Select the Runner project, then the Runner target, then Signing & Capabilities.
  3. Tick Automatically manage signing and choose your Team (add your Apple ID under Xcode > Settings > Accounts if empty).
  4. Change Bundle Identifier to something unique, for example com.yourname.myapp.
  5. Use the same identifier for the RunnerTests target if present.
  6. On the iPhone: Settings > Privacy & Security > Developer Mode (iOS 16+), enable it and reboot.
  7. After first install, trust your developer profile in Settings > General > VPN & Device Management.
  8. Run flutter run again.

Free account limits

  • Profiles expire after 7 days; reinstall to renew.
  • A limited number of app IDs per week, and no push notifications, Sign in with Apple or other paid capabilities.
  • For TestFlight or the App Store you need the paid Apple Developer Program.

Release builds

flutter build ipa --release

then upload with Xcode Organizer or the Transporter app. Set the bundle id, version and build number (version: 1.0.0+3 in pubspec.yaml) before archiving.

Pitfalls

  • Capabilities (push, associated domains) must be added to the App ID in your developer account, and the profile regenerated.
  • Changing bundle id after Firebase setup means regenerating GoogleService-Info.plist for the new id.
0

Your reply

Every post is reviewed by DEV3 before it appears. Usually reviewed within 24 hours.

Markdown supported. Use ``` for code blocks. Images are not allowed.