Bruno Yuzo
Bruno Yuzo

Reputation: 517

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

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

Upvotes: 10

Views: 13347

Answers (2)

Cintia Ana
Cintia Ana

Reputation: 21

  1. run flutter build ios --release --no-codesign. you will have Runner.app in dir build/ios/archive/Runner.xcarchive/Product/Applications/
  2. create Payload directory.
  3. move Runner.app to Payload.
  4. run zip -qq -r -9 filename.ipa Payload

Upvotes: 2

Omatt
Omatt

Reputation: 10463

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.

Upvotes: 10

Related Questions