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

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.

Related

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.

flutter ios build fail - do i need to enroll apple developer?

I am starter of flutter.
I finished building my first app and I want to export ipa app to give my friends.
I don't want to release to apple app store, I just want to use myself(and my friends).
So, once I input flutter build ios (also i tried flutter build ios --debug ) ,
Running "flutter pub get" in mighty_v2... 4.0s
Building com.example.mightyV2 for device (ios-release)...
Automatically signing iOS for device deployment using specified development team in Xcode project: 66H5V644W9
Running pod install... 2,370ms
Running Xcode build...
Xcode build done. 5.3s
Failed to build iOS app
Error output from Xcode build:
↳
** BUILD FAILED **
Xcode's output:
↳
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Constructing build description
error: No profiles for 'com.example.mightyV2' were found: Xcode couldn't find any iOS App Development provisioning profiles matching 'com.example.mightyV2'. Automatic
signing is disabled and unable to generate a profile. To enable automatic signing, pass -allowProvisioningUpdates to xcodebuild. (in target 'Runner' from project
'Runner')
above error was founded.
I already know what is wrong. My problem is, do not enrolled apple developer, and do not enrolled my app profiles init.
So question is, do I have to enroll and give 100$? I just use this app myself although the app is debug mode. I just want light ipa file. What can I do?
It can be two things. First you need to create a iOS App Development provisioning profile,to create that click on Xcode at top of the screen beside apple logo then > preferences > accounts here you will find you apple id and below that you will see download manual profiles and manage certificate options. Create a profile here and clean the build folder then build again.
Second, if you have the provisioning profile and still won't be able to create the .ipa file from Product > Archive then you definitely need a developer account.
You do not need to have a developer account if you are not publishing. However, you will have to open your app in Xcode and go to the Signing & Capabilities tab under Runner to set a Team in order to build. This can be any Apple ID.
Using this method, you will not be able to just send the .ipa to your friends and them easily install it. You will need to push to their phones via Xcode.
I encourage you to checkout Firebase App Distribution as a much easier, free alternative to distribute your app to your friends if you do not want to publish yet.

Flutter Build 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.

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.

Xcode couldn't find any iOS App Development provisioning profiles matching "App Name"

I am trying to build flutter with one of XCode's simulators but it is giving me this error in the general tab of Runner Xcode
couldn't find any iOS App Development provisioning profiles matching
"App Name"
also the build fails with this error:
ld: library not found for -lFMDB
is it possible to run ios without enrolling to apple developer plans(also is it possible to build IPAs this way?)
Running a Flutter app on an iOS simulator doesn't require an Apple Developer account, unless you need to have some Capabilities enabled in the iOS app for example. If you're using Android Studio, you can run the Flutter app on an iOS simulator easily after it has been set up.

Resources