【问题标题】:xcodebuild archive with Skip Install带有跳过安装的 xcodebuild 存档
【发布时间】:2012-09-20 12:28:16
【问题描述】:

我的 XCode 项目包含子项目(静态库)。在这个静态库项目的设置中,Skip install 选项设置为YES

我想对我的项目进行存档。此时我可以使用命令xcodebuild -scheme MyScheme -sdk iphoneos6.0 archive 执行此操作。但是在MyScheme 计划中,我有Release 配置用于Archive 操作。我也希望能够在Debug 配置中创建存档。

然后我尝试使用xcodebuild -target MyTarget -configuration Debug -sdk iphoneos6.0 archive命令,但它不计算:

=== BUILD NATIVE TARGET foo OF PROJECT fooProj WITH CONFIGURATION Debug === Check dependencies unsupported build action 'archive'

我认为我收到此错误是因为 Skip install 选项。此外,最好使用targetconfiguration 进行归档和构建,而不是使用scheme 选项,因为方案数据在.gitignore 文件中,并且不同的开发人员可能对同一个项目有不同的方案。

是否有任何方法可以针对targetconfiguration 选项对我的项目进行存档?

【问题讨论】:

    标签: xcode4 xcodebuild


    【解决方案1】:

    xcodebuild -project TestBuildProject.xcodeproj -configuration Release -scheme TestBuildProject archive

    因此,要存档您的配置必须是 Release 而不是 Debug,并且您必须指定一个方案。

    https://developer.apple.com/library/mac/#documentation/Darwin/Reference/ManPages/man1/xcodebuild.1.html

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2017-11-09
      • 2021-02-06
      • 2012-11-05
      • 2012-04-08
      • 1970-01-01
      • 2014-10-11
      • 1970-01-01
      相关资源
      最近更新 更多