iOS打包时achieve文件无法生成

iOS项目使用cocoapods管理依赖,打包时出现archive成功但未生成achieve文件的问题。检查网络和证书配置无误后,发现是'skip install'设置不当。解决方案包括:通过Product菜单直接选择Archive,确保Organizer显示选项已勾选,检查Archiving的构建配置,将Skip Install设为NO,确保档案和项目文件在同一共享文件夹,以及在引用工程中正确设置skip install选项。

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 *
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值