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.