Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode archiving iOS app as a Mac App

Tags:

xcode

ios

xcode4

I've got an iOS app I've built several times over the last year, and have deployed countless ad hoc builds of with no issues. However, today Xcode has decided that when archiving my app, it should treat it as a Mac App Store app, and not build an .ipa file that I can share.

Git doesn't show any changes to my .xcodeproj files and I can't see any build settings that have been changed. I've got other targets in the project that still build fine, but the primary target I use for distribution is the one causing these errors. Is there any reason why Xcode should think that it's building a Mac app instead of the iOS version it used to?

like image 476
Josh Buhler Avatar asked Mar 13 '12 23:03

Josh Buhler


People also ask

How do I archive iOS apps in Xcode?

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 archive my OSX app in Xcode?

Use Product → Archive to create a binary of your app. Then go to the Organizer window and optionally validate it. Lastly, export the app to your desktop so you can distribute it as you wish.

Why I can't archive in Xcode?

Archive menu option grayed out If you can't create an archive in Xcode, usually it's because you have the destination set to the simulator. Switch to an iOS device (it should work even if you don't have one connected). Another cause for the grayed-out archive option is that it's disabled for your scheme.


1 Answers

Check if you have accidentally made your Info.plist part of your target. It shouldn't be. Uncheck it in the Target Membership pane or remove it from the Copy Bundle Resources build phase.

(Found answer via this question: My iPhone app is being archived as "Mac App Archive" and not "iOS app archive".)

like image 56
Johan Kool Avatar answered Nov 01 '22 09:11

Johan Kool