Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 4 Archive Version Unspecified

I'm trying to build a release version of my iPhone app in Xcode 4 and when it finishes and launches Organizer, there is no version number, it only says "unspecified". This is preventing me from using Xcode 4's Validate and Submit features.

Any ideas on how to fix this? My version number is set in my project settings, so not sure what's causing the problem.

like image 833
Matt DeWitt Avatar asked Mar 16 '11 21:03

Matt DeWitt


2 Answers

Go to your info.plist file and create a new property "bundle versions string, short" and provide the same version number and it will show up in organizer.

like image 58
Rahul Choudhary Avatar answered Oct 08 '22 01:10

Rahul Choudhary


Please see this question for additional detail.

The accepted answer doesn't fully solve the problem for all projects. There are several issues that all relate to each other and I will cover them all.

Xcode 4 Project Fails to compile a static library

Related question: Xcode 4 can't locate public header files from static library dependancy
Related question: “lexical or preprocessor issue file not found ” in Xcode 4

Errors might include; missing header files, "lexical or preprocessor issue"

Solutions:

  1. Check the "user header paths" are correct
  2. Set "Always search user paths" to YES
  3. Create a group call "Indexing headers" in your project and drag the headers to this group, DO NOT add to any targets when prompted.

Xcode 4 project with static library dependancy fails to create a valid archive

Related question: https://stackoverflow.com/questions/5271496/xcode4-ios-4-3-no-packager-exists-for-the-type-of-archive

Errors might include;

Xcode 4 project with static library dependancy fails to create a valid archive

Missing identifier and version. "No Packager exists for the type of archive"

Solutions:

  1. For all dependancies set "Skip Install" build setting to "Yes"
  2. Moving any "Public" headers in Build Phases to "Project"
like image 23
Richard Stelling Avatar answered Oct 08 '22 00:10

Richard Stelling