iOS打包时achieve文件无法生成
我们的项目是用cocoapods来管理的,但是打包上线的时候明明提示achieve succeeded!却没有生成chieve文件,连organiser都没调起来,检查了网络和证书配置都没有问题,后来才发现是skip install设置问题:
EDIT (Incorporated all comments to a single answer)
Try one of the following (or all)
Instead of using Build For -> Archive, in the product menu just use archive. It will show up then.
In the scheme editor, edit the scheme and go to the Archive tab, make sure the check box for show in Organizer is checked.
In the archive tab in the scheme editor check the build configuration used for archiving. Make sure it has the right entitlements file & certificates.
In the build settings switch Skip Install -> Release to NO, for the build settings used for archiving.
Make sure the archives folder and XCode project files are inside the same shared folder if network drive is used. I took me a few days to finally figure this out as I placed my XCode source files from a Windows shared folder, but the Archives folder is on the local Mac, which caused archives not picked up by Organizer
- 注意:当主工程引用其他工程,以便使用他们生成的库的时候,在发布时,主要注意*skip install这个选项。如果你启用了这个选项,并且设置了安装路径,那么就不会在install location位置安装生成的文件了,而会在另一个位置安装;如果没有启用,那么就会在install location位置安装。如果不安装,那么在archive时,就不会产生相应的输出文件。这样就只会生成我们需要的文件了,更方便生成ipa文件。所以,在自身的工程中skip install要设置成NO;引用的其他工程skip install要设置成YES *