I want to create .ipa
file. In Distributing Apps it is said that I should archive my app firstly. Then choose Product > Archive
.
But this option is gray. Why?
You can not archive, because from target you have not selected device or Generic iOS device or Any iOS Device , still there is a simulator.
Archive your App In Xcode with your project open, select the simulator (button near the top of the window next to your project name, typically named as a specific type of iPhone) – change it to Generic iOS Device. Open the Product menu and choose Archive. You will see the archive information. Click Validate App.
To disable the App Offload feature, go to Settings > iTunes & App Store. Here, you'll find a setting at the bottom of the page labelled "Offload Unused Apps" - switch this to the off position.
Build and upload your app Select Product -> Scheme -> Runner. Select Product -> Destination -> Generic iOS Device. Select Product -> Archive to produce a build archive.
In the select-box near your play and stop buttons (upper right) you should choose the device instead of the simulator.
Either:
Attach a physical device (iPhone, iPad) to the machine you are developing on and select that device.
Select "Generic iOS Device"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With