Is it possible to generate .ipa file for iOS without "Apple Developer account" and without an Apple Device?

Viewed 3040

I'm trying to run the command below but it says "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."

flutter build ios

Does anyone knows if is possible to build the iOS files without a Apple Device registered?

*I've setted up a VirtualBox with [macOS Catalina 10.15.3] + [xCode] + [Android Studio] + [Flutter] in Windows

1 Answers

It's possible to create an unsigned iOS .ipa without code signing.

  1. Run the Flutter app first to an iOS simulator to generate iOS build on /build/ios.
  2. Create a folder anywhere you like with the name Payload - note that this is case sensitive.
  3. Navigate to /build/ios/iphonesimulator and copy Runner.app to the Payload folder you've created.
  4. Compress the Payload folder with default .zip format
  5. Rename Payload.zip to Payload.ipa

Installing the .ipa file to an iOS device is a different topic, however.

Related