Xcode命令行生成失败,“无法读取权限”

时间:2012-05-08 11:50:11

标签: xcode jenkins clang

我的Jenkins(继续集成服务器)失败并显示错误:

error: Failed to read entitlements from '/var/folders/gp/fxfq69kd26j160s85g6vjy6h0000gr/T/yMWJTWS2AJ/Payload/app.com.app'

完整输出:

  

以下构建命令失败:          CompileC /Users/jenkins/Library/Developer/Xcode/DerivedData/App-doozayqorsxatsbzlunnptqszxax/Build/Intermediates/rara.build/Production-iphoneos/rara.build/Objects-normal/armv7/RRArtworkView.o   app / RRArtworkView.m正常armv7 objective-c   com.apple.compilers.llvm.clang.1_0.compiler(1 failure)Poduct build   目录:   /用户/詹金斯/库/开发商/ Xcode中/ DerivedData / APP-doozayqorsxatsbzlunnptqszxax /编译/产品/生产的iPhoneOS   xcrun via / usr / bin / xcrun(xcrun)DEVELOPER_DIR ='/ Developer'via   '/ usr / share / xcode-select / xcode_dir_path'数据库密钥是:   PackageApplication_ / Developer _iphoneos缓存版本为'1'   查找解决了   '/ var / folders / gp / fxfq69kd26j160s85g6vjy6h0000gr / T / xcrun_db':   '/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/PackageApplication'   错误:无法从中读取权利   '/var/folders/gp/fxfq69kd26j160s85g6vjy6h0000gr/T/yMWJTWS2AJ/Payload/app.com.app'   构建“app”失败构建步骤“执行shell”将构建标记为失败

它可以在IDE中构建,并将安装在设备上。

系统信息:

  • Xcode v4.3.2

1 个答案:

答案 0 :(得分:1)

相当含糊的信息:

  

无法阅读权利[...]

Xcode没有正确归档应用程序,这通常是由:

引起的
  1. “跳过安装”设置为NO
  2. 在构建阶段将头文件(.h)复制到公用文件夹
  3. 见问题:

    Compile, Build or Archive problems with Xcode 4 (and dependancies)

    有关这些问题的详细说明。