Codemagic - Building a deployable iOS app requires a selected Development Team with a Provisioning Profile - flutter

I want to test my flutter app on an ios device. I am building via Codemagic since I don't have a mac.
I don't have a mac but I managed to generate a development certificate via a virtual machine, and upload it for manual signing on CodeMagic
However, everytime I build using CodeMagic, I got the following error.
Building a deployable iOS app requires a selected Development Team with a
Provisioning Profile. Please ensure that a Development Team
I don't have an apple developer subscription also. I just want to test the app on my ios device.

Related

Creating development builds on iPhone for use by external tester(s)

How do you build an development iPhone app that can run on arbitrary iPhones you do not have in-hand? I have no iPhone, personally and wish to create a build that I can distribute to a small group of beta testers?
I have a signing cert, but get the dreaded 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."
tone
Firstly, you need a paid developer account. (99$)
Use a TestFlight app.

How to build an iOS AdHoc app with flutter

I have an flutter app for ios and can build it for the app store using:
flutter build ios --release
But how can I build an Ad-Hoc app for ios?
Pre-requisite
Apple Developer Program membership ($99/year)
Distribution certificate added to your machine
In the Xcode project (Signing & Capabilities tab), select your team/ developer account which has the Apple Developer program membership.
1. Create an Archive (.xcarchive)
Technically you do not build an Ad Hoc app, you build a debug/release/profile app, which you then distribute via a distribution method, one option is Ad Hoc.
Using command line: You can run flutter build ipa to build the xcarchive. Then it should show a URL for your Runner.xcarchive at the output (double click that link), or
Using Xcode: Open the Xcode project, and in the menu bar, click Product > Archive. The organizer window will open once the archive is complete.
2. Create an .ipa
Now the Organizer window should be open. Press the Distribute App button: you should see multiple options. You can share the .ipa file with users, and they can install it onto their iPhone:
It's worth noting you can also create an .ipa using xcodebuild, but when you're first learning, it's nicer to use Xcode.
3. Install the .ipa on a device.
I wrote an answer about that: https://stackoverflow.com/a/68968301/7365866
Reminder
Just remember to do this:
Action Required: You must set a build name and number in the pubspec.yaml file
version field before submitting to the App Store.
You can use Code Magic's CLI tool to achieve that.
On their CLI (locally installed or on your CI server), there is an option to add
--type IOS_APP_ADHOC
See at the end of their signing documentation section for Specifying code signing configuration
You can use --export-method in the flutter build command, example:
flutter build ipa --release --export-method=ad-hoc
For Someone out there, who have trouble building ios application since they don't have an apple developer account, here's a method that i do and i use.
1st if you are an ios user you can connect your ios device into your mac and do a flutter run --release. you can also do it with just the simulator too and it does works the same.
Now, the ios app is created, using your 7 days free trial developers provisioning profile, what we need is to use some programs likie imazing,apple configurator or itunes, to get the ipa from inside the app.
Now you have build the ios app with a release version, and you can redistribute it with just a 7 days free trial version of yours.

OneSignal - Ionic SDK - Missing Capability Issue

I've setup OneSignal Ionic SDK to work with my Ionic 3 project.
Its finally registering devices in the console. However, when I archive and export the project from xCode to desktop, then run the project on a real device in browserstack (since emulator/simulator is not supported) - I get the following error (in console under users):
(Missing Push Capability)
The push capability is definitely there, as its enabled and I had been using Firebase Cloud Messaging - though had to migrate.
I'm just wondering if I'm missing anything here or is this a bug with OneSignal?
Many Thanks,
Kieran
that's the cause of the App Store rejection. If your ad-hoc provisioning profile has the aps-environment key, it means your app is configured correctly in the Apple Provisioning Portal. All you need to do is delete the App Store distribution profile on your local machine, then re-download and install the distribution profile from the Provisioning Portal. This new one should contain the aps-environment key.

iPad app fails to install in new device added to Ad Hoc provisioning profile

I am using an enterprise account for deploying an internal iPad app. The app is signed with an adhoc provisioning profile, so far I never used the entitlements file. The app is deployed in a web server and installed via OTA.
The customer has some 80 devices added in the provisioning portal. The app is installing fine in every device except for one recently added and the only difference I can see is that all the devices have iOS Team Provisioning Profile installed (not sure why because AFAIK they are not development devices).
When the customer tried to install the app in the latest added device (which was included in the adhoc profile and the app built again), it downloads but fails to install. However, he downloaded the ipa file and could install it using the cable.
I also tried with one of my development iPads which is also present on the customer's adhoc profile. I deleted all the profiles, then install the app via OTA. The app installs and runs fine, however when I go to check the installed profiles on the devices (under settings/general) there is not a single profile installed.
My questions are as follows:
Is the entitlements file a requirement?
If it's required, why the app is working fine with the rest of devices (could be due to the team
profile?)?
Why isn't the profile installed when I install the app on my development device? The profile was installed on the rest of devices when installing the app.
I just cannot understand why this is workig with with the other devices but failing with this one.
It turned out to be a stupid problem.
After adding the new device to the profile, downloading, importing it to xCode and rebuilding the app, the profile embeded inside the ipa file still was the old one. I just cleaned the project and everything was fine (probably xCode didn't update because it was the same edited profile)

publish an app to cydia from appcelarator?

i'm trying to find a way to publish an app to cydia other than app store from titanium appcelarator so i can test the app before registration for the developer program.
are there any clear steps to build and publish the app to cydia and to the app store?
If you go into the build/iphone folder within your project you'll find the XCode project for the app generated by Appcelerator. You can open this into XCode and build the app in the same way you would any app for distribution to cydia.
If you are just after beta testing however, check out http://www.testflightapp.com/ it allows you to distribute and manage beta testing over the air and is all legit.