Sean
Sean

Reputation: 121

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

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')

Upvotes: 6

Views: 9825

Answers (1)

KIM
KIM

Reputation: 243

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.

Upvotes: 5

Related Questions