xcode正在创建通用xcode存档而不是iOS App Archive

 重新入梦 发布于 2023-02-13 03:21

我在iPhone开发初学者,我试图创建一个ipa与我的个人资料和有效的证书,但Xcode是因为在我的代码中创建一个通用的Xcode归档文件,而不是iOS应用归档有两个.xcodeproj在那里.

从其中一个stack overflow answer我按照以下步骤:

    主项目目标的跳过安装为NO

    框架(子项目)目标的跳过安装为YES

    子项目需要在Project中公开复制标题

    部署下的安装目录有效(例如/ Applications)

但我仍然没有得到解决方案.

7 个回答
  • 在我的情况下,问题是嵌入式静态库之一的"跳过安装"设置为"否".也是有用的链接:https://developer.apple.com/library/mac/technotes/tn2215/_index.html

    2023-02-13 03:37 回答
  • 如果Project> Targets> Build Phases> target dependencies中有任何.xcodeproj文件,请从那里删除它,然后构建你的ipa.这个对我有用.干杯

    2023-02-13 03:40 回答
  • 我的情况不是"跳过安装",也不是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.

    2023-02-13 03:44 回答
  • 我遇到了Cocoapods 0.38.1的问题,在升级了一些项目之后它生成了我的xCode Generic Archive ...在完成所有步骤之后,再次创建ipa的唯一方法是将cocoapods下载到0.37.1并按照上述步骤操作这个链接:http://9elements.com/io/index.php/cocoapods-best-practices/.

    我希望有所帮助!

    2023-02-13 03:51 回答
  • 我遇到的问题是CocoaPods version 0.38.2,升级CocoaPods到更高版本之后(0.39.0.beta.4)一切正常.

    $gem install cocoapods --pre
    

    然后:

    $pod update
    

    2023-02-13 03:56 回答
  • 我的情况是我在项目中有2个目标,一旦我将其中一个目标设置为Skip Install ="YES",问题就解决了

    2023-02-13 03:59 回答
  • 一种情况是您必须在构建阶段/标头中将标头(如果有)从“公共”移动到“项目”。

    https://developer.apple.com/library/content/technotes/tn2215/_index.html#//apple_ref/doc/uid/DTS40011221-CH1-PROJ

    2023-02-13 04:12 回答
撰写答案
今天,你开发时遇到什么问题呢?
立即提问
热门标签
PHP1.CN | 中国最专业的PHP中文社区 | PNG素材下载 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有