我在iPhone开发初学者,我试图创建一个ipa
与我的个人资料和有效的证书,但Xcode是因为在我的代码中创建一个通用的Xcode归档文件,而不是iOS应用归档有两个.xcodeproj
在那里.
从其中一个stack overflow answer
我按照以下步骤:
主项目目标的跳过安装为NO
框架(子项目)目标的跳过安装为YES
子项目需要在Project中公开复制标题
部署下的安装目录有效(例如/ Applications)
但我仍然没有得到解决方案.
在我的情况下,问题是嵌入式静态库之一的"跳过安装"设置为"否".也是有用的链接:https://developer.apple.com/library/mac/technotes/tn2215/_index.html
如果Project> Targets> Build Phases> target dependencies中有任何.xcodeproj文件,请从那里删除它,然后构建你的ipa.这个对我有用.干杯
我的情况不是"跳过安装",也不是cocoapods问题.似乎我最终没有使用的第三方框架之一就是原因.解决方案只是删除它.
In order to track this issue I right clicked the generic archive file in Xcode's organizer and selected 'show in finder' -> right click the archive file -> select Show Package Contents -> Products -> Applications and inside this folder you can see what other files are in it besides the {project-name}.app file. In my case there was a file with the prefix of the framework I wasn't using, which led to its removal from the project's workspace.
我遇到了Cocoapods 0.38.1的问题,在升级了一些项目之后它生成了我的xCode Generic Archive ...在完成所有步骤之后,再次创建ipa的唯一方法是将cocoapods下载到0.37.1并按照上述步骤操作这个链接:http://9elements.com/io/index.php/cocoapods-best-practices/.
我希望有所帮助!
我遇到的问题是CocoaPods version 0.38.2
,升级CocoaPods
到更高版本之后(0.39.0.beta.4)
一切正常.
$gem install cocoapods --pre
然后:
$pod update
我的情况是我在项目中有2个目标,一旦我将其中一个目标设置为Skip Install ="YES",问题就解决了
一种情况是您必须在构建阶段/标头中将标头(如果有)从“公共”移动到“项目”。
https://developer.apple.com/library/content/technotes/tn2215/_index.html#//apple_ref/doc/uid/DTS40011221-CH1-PROJ