Flutter Build iOS - ios

I try to build a flutter app for ios.
After flutter build ios i get these two errors:
Failed to create provisioning profile. There are no devices registered in your account on the developer website. Plug in and select a device to have Xcode register it. (in target 'Runner' from project 'Runner')
No profiles for 'com.mybundle' were found: Xcode couldn't find any iOS App Development provisioning profiles matching 'com.mybundle'. (in target 'Runner' from project 'Runner')
Whats the problem here?

Open the project in Xcode. And fix the errors there. As I recall you have to choose the Runner in Xcode and then signing and capabilities in there choose the team and then run the app.

Related

Flutter iOS could not build the precompiled application for the device

I'm trying to run my Flutter code on a real-device, but I am encountering a code signing issue. See logs.
In Xcode, the project seems to have been using using the right team identifier. I use my machine to work on various Flutter & iOS projects.
Logs
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 Joshua’s iPhone 13.
If you've encountered this issue, it's likely that the project you just opened is using the old certs.
To make sure you're using the correct certs for your Flutter project, in the command line clear the config:
flutter config --clear-ios-signing-cert
This is going to force your Flutter app to use the new certificates.
Next, restart the terminal.
Last, make sure the Xcode project is using the provisioning profile/s.
From the Projects / left side panel of Xcode, click Runner
Under TARGETS, click Runner
Next, click Signing & Capabilities
Last, choose the correct provisioning profile/s

Flutter build results in error about app signing when building for IOS

I am trying to build my flutter app for iOS using the command flutter build ios.
When I do so, it fails with the following error...
error: No profiles for 'com.me.myapp' were found: Xcode couldn't find any iOS App Development provisioning profiles matching 'com.me.myapp'. Automatic
signing is disabled and unable to generate a profile. To enable automatic signing, pass -allowProvisioningUpdates to xcodebuild. (in target 'Runner' from project 'Runner')
When I open the runner project in xcode, the automatic signing check box is already checked.
I do not have a physical device, so I can not create a provisioning profile. I was previously able to build this app on iOS, and I am not sure exactly what changed.
Thanks for any help that can be provided.

"To enable automatic signing, pass -allowProvisioningUpdates to xcodebuild. (in target 'Runner' from project 'Runner')" What to do?

I received this error when trying to build iOS app on a real iPhone and not on the Simulator. This was part of the error message:
To enable automatic signing, pass -allowProvisioningUpdates to xcodebuild. (in target 'Runner' from project 'Runner')
All the places I looked for help didn't have any tips.
For me the problem was that I was using a VPN on my PC when trying to build and deploy to my test device.
Solution was to just disable my VPN.
Apple might be blocking requests over a VPN when signing an App.
Navigate in your flutter folder to directory /ios/ and open Runner.xcworkspace (the white one not the blue one) in xCode.
Then in project navigator (cmd+1) select Runner and go to build settings tab called 'signing and capabilities' and manage your signing there to get the account and automatic signing set up, build from xcode (cmd+r).
Once this signing is set up and working once you're good to go, you may now start building from VSCode or Android Studio or wherever. Quit xCode and open original flutter project files.
Enjoy!

Flutter iOS - Build a release version without a real device?

As an Android dev, I've been baffled by the idea of building against targets.
I don't have an iOS device and have been debugging against the iOS simulator.
However, I've gotten to a point where I want to disperse a release .ipa to our internal team. Can this be achieved?
When I run flutter build ios, I see the following:
Xcode's output:
↳
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Constructing build description
error: Failed to create provisioning profile. There are no devices
registered in your account on the developer website. Plug in and select a
device to have Xcode register it. (in target 'Runner' from project 'Runner')
error: No profiles for 'xxx.xxx.xxx' were found: Xcode couldn't
find any iOS App Development provisioning profiles matching
'xxx.xxx.xxx'. (in target 'Runner' from project 'Runner')
I did google more, and i found it
Provisioning Profile With No Physical Devices
SOLVED:
In case anyone else is having trouble. I had to create a provisioning
profile for Distribution - App Store. And then in Xcode turn off
Automatically manage signing, and select the provisioning profile
manually for Signing(Debug), and Signing (Release).
Now I do not need a physical device to archive, unlike what the linked
duplicate states.

Flutter build ios error: No profiles for 'BUNDLE_ID' were found

I am trying to upload my iOS app in the App Store. I also have registed an Apply Developer Program.
I am trying to follow the Build and release an iOS app article of the Flutter team. But unfortunately, while running the command 'flutter run build', I am encountering this error:
No profiles for 'BUNDLE_ID' were found: Xcode couldn't find any iOS
App Development provisioning profiles matching 'BUNDLE_ID'. Automatic
signing is disabled and unable to generate a profile. To enable
automatic signing, pass -allowProvisioningUpdates to xcodebuild. (in
target 'Runner' from project 'Runner').
I also enabled the 'Automatically manage signing' in Xcode -> Runner.
Thank you in advance.

Resources