Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Flutter ios build for testing

Tags:

xcode

ios

flutter

I would Like to know how I can build a release app without registering it to the app store. I would Like to have the APK file and share it with friends for testing purposes without registering the app. Cant find information connected with this. Thanks!

UPDATE: Found solution for getting .ipa file which was installed with Cydia Impactor on a real device:

# flutter build
flutter build ios --release --no-codesign

# make folder, add .app then zip it and rename it to .ipa
mkdir -p Payload
mv ./build/ios/iphoneos/Runner.app Payload
zip -r -y Payload.zip Payload/Runner.app
mv Payload.zip Payload.ipa

# the following are options, remove Payload folder
rm -Rf Payload
like image 825
Mugetsu Avatar asked Aug 03 '19 12:08

Mugetsu


People also ask

How do you test iOS build in Flutter?

You need to go to your Settings > General > Device Management. Inside Device Management, select the developer name and tap Trust “YOUR DEVELOPER NAME”. You should now be able to run your Flutter app on your local device.

Can Flutter build iOS app?

Flutter supports iOS 9.0 and later. If your app or plugins include Objective-C or Swift code that makes use of APIs newer than iOS 9, update this setting to the highest required version.

Do you need Mac to build Flutter iOS?

With Flutter and Codemagic, you can build and distribute iOS apps without buying a Mac computer yourself.

Does Flutter work well on iOS?

The first stable version, Flutter 1.0, with the support of both iOS and Android was released on the 4th of December, 2018. Flutter app development toolkit includes a lot of features that make it a great cross-platform framework.


1 Answers

You can follow this article to make .ipa file. (.apk is for android only, for iOS it's .ipa)

https://medium.com/mλgnξtλr/how-to-export-a-ipa-file-from-xcode-without-a-dev-account-bac8b2645ad3

Keep in mind that, apple is signing build to be installed on real devices, so you have to turn that off, and after making an ipa file, you can upload it to www.diawi.com and get link from there to share it with your friend. This diawi links are not working some times, in that case you can use cydiaimpector tool for installing the build.

For this installation, your friend has to put their apple id and password upon requested, here NOTE that if your two factor authentication is ON, then you have to create app specific password to be entered in.

How to create app-specific password?

https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=3&cad=rja&uact=8&ved=2ahUKEwiSvpjUo-fjAhXt8XMBHRtBDlUQFjACegQIDBAI&url=https%3A%2F%2Fwww.imore.com%2Fhow-generate-app-specific-passwords-iphone-ipad-mac&usg=AOvVaw3chF3FoIcfHZLR6jExh_EZ

like image 97
Sharad Paghadal Avatar answered Oct 22 '22 14:10

Sharad Paghadal