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

孤者浪人 提交于 2020-06-17 14:54:25

问题


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

回答1:


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.



来源:https://stackoverflow.com/questions/61150078/flutter-ios-build-a-release-version-without-a-real-device

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!