Solve the problem that xcode cannot generate Archive

Source: Internet
Author: User

Two days ago, I want to use archive to generate IPA for a previous project. The method for generating IPA is to drag the built app into iTunes and directly generate IPA. There is no problem in compiling, but there is a problem with archive. The generated archive is different from that generated by other projects. Archive cannot be saved as IPA without version and identifier.

The generated archive is as follows:

Since this project was originally created with storyboard, it was later changed to the traditional mainwindow mode because it was not compatible with earlier versions of IOS. I thought the problem was here. However, after testing, archive can still be generated for projects generated using storyboard.

After eliminating the cause of storyboard, do you think about setting? By comparison, setting is no different.

I was puzzled and asked for help from the omnipotent Google. After half a day, I could not find any related content. In this way, after two days, I had a chance to change to another keyword search. This time, I finally saw someone asking the same question. After waiting for a while, we can finally see the dawn of happiness.

The solution is summarized as follows:

Perform the following three steps in the project of all dependent libraries:

1. Set build settings-> deployment-> skip install to yes, but keep the project's Skip install to No.

For example:

2. Drag all the header files in build phases-> copy headers to the project, that is, there cannot be files under public and private.

3. Clear the content of the build Settings> deployment> Installation Directory option.

The above three points are the solutions for summarizing the information obtained by comprehensive search. I only modified the first step to solve the problem. the settings of the Second Step project are as follows and do not need to be changed; in step 3, I can generate the files normally if I cleared the files or didn't cleared the files, so I kept the original settings and didn't empty them.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.