PackageApplication停止使用OS X 10.10(Yosemite)今天 [英] PackageApplication stopped working with OS X 10.10 (Yosemite) today

查看:391
本文介绍了PackageApplication停止使用OS X 10.10(Yosemite)今天的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

更新:
正确的答案可能是这一个:使用TestFlight应用程序构建IPA时出现Xcode 6.1错误

UPDATE: The correct answer is probably this one: Xcode 6.1 error while building IPA using TestFlight app

使用Jenkins构建iOS项目从存储库几年。突然今天发生了一个新的错误,停止生成。

Using Jenkins to build iOS projects from repositories since a few years. Suddenly today a new error occurs, stopping builds.

我认为我在这个教程的基础上做了大部分设置:

I think I based most of this setup on this tutorial way back:

http://www.raywenderlich.com/22816/beginning-

http://www.raywenderlich.com/22816/beginning-automated-testing-with-xcode-part-22

此步骤会导致以下错误:

This step causes the error:

# 4
echo "*** Post build step 4"
/usr/bin/xcrun -sdk iphoneos PackageApplication \
-o "${IPA_DIR}/${PROJECT}.ipa" \
-verbose "${APP}" \
-sign "${SIGNING_IDENTITY}" \
--embed "${PROVISIONING_PROFILE}"

看看错误发生的日志有点棘手,但这里是:

It's a bit tricky to look at the logs where the error occurs, but here it is:

### Codesigning '/Users/Shared/Jenkins/Home/jobs/myapp/workspace/myapp_adhoc_7.mobileprovision' with 'iPhone Distribution: mycompany Inc.'
+ /usr/bin/codesign --force --preserve-metadata=identifier,entitlements,resource-rules --sign iPhone Distribution: mycompany Inc. --resource-rules=/var/folders/y1/4hrpc2851b7dxn9bhlkhbrnr00007q/T/ipIxOjxE2z/Payload/myapp.app/ResourceRules.plist --entitlements /var/folders/y1/4hrpc2851b7dxn9bhlkhbrnr00007q/T/ipIxOjxE2z/entitlements_plistYdluSmqT /var/folders/y1/4hrpc2851b7dxn9bhlkhbrnr00007q/T/ipIxOjxE2z/Payload/myapp.app
Program /usr/bin/codesign returned 1 : [Warning: usage of --preserve-metadata with option "resource-rules" (deprecated in Mac OS X >= 10.10)!
Warning: --resource-rules has been deprecated in Mac OS X >= 10.10!
/var/folders/y1/4hrpc2851b7dxn9bhlkhbrnr00007q/T/ipIxOjxE2z/Payload/myapp.app/ResourceRules.plist: cannot read resources
]
error: /usr/bin/codesign --force --preserve-metadata=identifier,entitlements,resource-rules --sign iPhone Distribution: mycompany Inc. --resource-rules=/var/folders/y1/4hrpc2851b7dxn9bhlkhbrnr00007q/T/ipIxOjxE2z/Payload/myapp.app/ResourceRules.plist --entitlements /var/folders/y1/4hrpc2851b7dxn9bhlkhbrnr00007q/T/ipIxOjxE2z/entitlements_plistYdluSmqT /var/folders/y1/4hrpc2851b7dxn9bhlkhbrnr00007q/T/ipIxOjxE2z/Payload/myapp.app failed with error 1. Output: Warning: usage of --preserve-metadata with option "resource-rules" (deprecated in Mac OS X >= 10.10)!
Warning: --resource-rules has been deprecated in Mac OS X >= 10.10!
/var/folders/y1/4hrpc2851b7dxn9bhlkhbrnr00007q/T/ipIxOjxE2z/Payload/myapp.app/ResourceRules.plist: cannot read resources

我会尝试自己修复这个问题,然后在这里添加解决方案,但如果任何人比我快,请继续。

I'll try to fix this myself and later add the solution here, but in case anyone is faster than me please go ahead.


  • 我没有在任何设置中指定--resource-rules。我想xcrun自己使用此设置,即使它已被弃用。

推荐答案

找到答案。

现在出现的问题是xcrun PackageApplication某事线。我不得不删除-sign some profile参数,然后事情再次开始工作。

The problem that occurred now was the "xcrun PackageApplication" something something line. I had to remove the "-sign some profile" parameter, then things started working again.

这说明我不知道为什么签名是必要的,为什么现在不是这样,不能告诉这是否会导致一些问题后来。

That said I don't know why signing was necessary before, and why it isn't now so can't tell if this is going to cause some problem later.

这篇关于PackageApplication停止使用OS X 10.10(Yosemite)今天的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆