问题
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