iOS – Why is Xcode archive success but creates an empty .xcarchive file?

Background

I have an application and I am trying to archive and submit it to the application store for approval. Part of the process requires application loader preparation And load the archive. I have used the product -> archive and prompted that the archive was successful, but it did not appear on the manager -> archive tab.

Project build details

1 application target ,”AppName”

1 static library, cocos2d library (cocos2d v0.99.5-rc1)

Xcode version 4.0.2

The first step

p>

Set “Skip installation” to “No”:

>Project
> AppName target
> cocos2d library

Set on all three Skip installation allows me to build the archive and display it on the organizer (not empty xcarchive). However, when I try to verify, it prompts:

“AppName” does not contain single-bundled applications or contains multiple Products. Please choose another archive, or adjust your plan to create a single-package application.

I checked that the archive package contains the cocos2d library in the directory “Products”. According to some posts and cocos2d forums, We should not submit it as part of the binary file for approval.

Take a step of zero KB KB .xcarchive

Since the static cocos2d library should not be included, I have included the cocos2d library The goal is changed to skip the installation: “Yes”. Now, if I archive the project, it will prompt that the build is successful, but it will create an empty .xcarchive file, which cannot be seen on the organizer->archives tab.

I have a solution to my problem, if others face the same problem here are the steps I took to Solve the problem.

cocos2d library

– For all configurations in the cocos2d library, set skip install to YES.

– Mark the code signature Set to “Do not code sign all configurations”. The static library is not code signed.

– Update the installation directory to /usr/local/lib.

Application library

p>

– Update the installation and build product location to /tmp/$(PROJECT_NAM E).dst

– Update the installation directory to $(LOCAL_APPS_DIR)(/ Applications).

– Update the code signature identification part.

Background

I have an application and I am trying to archive it and submit it to the app store for approval. Part of the process requires the application loader to prepare and load the archive. I use I passed the product -> Archive and prompted that the archive was successful, but it did not appear on the manager -> Archive tab.

Project construction details

1 application target, “AppName”

p>

1 static library, cocos2d library (cocos2d v0.99.5-rc1)

Xcode version 4.0.2

The first step

“Skip installation” is set to “No”:

>Project
> AppName target
> cocos2d library

Set skip installation on all three to allow me to build Archive and display on the organizer (not empty xcarchive). However, when I try to verify, it will prompt:

“AppName” does not contain a single-bundled application or contains multiple products. Please choose other Archive, or adjust your plan to create a single-package application.

I checked that the archive package contains the cocos2d library in the directory “Products”. According to some posts and cocos2d forums, we shouldn’t use it as Part of the binary file is submitted for approval.

Take steps of zero KB KB .xcarchive

Since the static cocos2d library should not be included, I have changed the cocos2d library target to skip installation : “Yes”. Now, if I archive the project, it will prompt that the build is successful, but it will create an empty .xcarchive file, which cannot be seen on the organizer->archives tab.

< p>

I have a solution to my problem, if others face the same problem here are the steps I took to solve the problem.

cocos2d library

– For all configurations in the cocos2d library, set skip install to YES.

– Set the code signing flag to “Do not code sign all configurations”. The static library is not code signed.

– Update the installation directory to /usr/local/lib.

Application library

– Update the installation and build product location to /tmp/$( PROJECT_ NAME).dst

– Update the installation directory to $(LOCAL_APPS_DIR)(/ Applications).

– Update the code signature identification part.

Leave a Comment

Your email address will not be published.