Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't archive app

Tags:

xcode

ios

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?

like image 864
Eugene Trapeznikov Avatar asked Jan 31 '12 11:01

Eugene Trapeznikov


People also ask

Why can I not archive Xcode?

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.

How do I archive iOS apps?

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.

How do I turn off iPhone app archive?

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.

How do you archive the Flutter app?

Build and upload your app Select Product -> Scheme -> Runner. Select Product -> Destination -> Generic iOS Device. Select Product -> Archive to produce a build archive.


1 Answers

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"

like image 165
andrei Avatar answered Oct 24 '22 03:10

andrei