iPhone:在命令行 (Mac OS X) 中压缩 .app 文件会删除 CodeSigning
我正在尝试使用 TeamCity 对我的 iPhone 应用程序进行简单的构建自动化,但遇到了这个棘手的问题。
当我从构建文件夹中手动拾取并安装 .app 文件时,它工作得很好(与 iTunes 顺利同步,我可以看到该应用程序) 但是当我尝试使用 /bin/zip 或同上压缩此文件
时...然后压缩的内容会丢失 CodeSigning(iTunes 说它无法安装此应用程序,因为它未签名)
我尝试了这些的不同组合。 .
同上 -ck --rsrc --keepParent HelloWorld.app HelloWorld.zip
还有更多想法吗?
我也尝试过,但仍然遇到相同的错误
version=$(date "+%Y-%m-%d.%H.%M.%S")
cd "$CONFIGURATION_BUILD_DIR"
zip -r -y "HelloWorld-$version.zip" HelloWorld.app
I am trying to do a simple build automation of my iPhone apps with TeamCity, but having this nagging issue..
When I manually pickup and install .app file from the build folder it works great (syncs smoothly with iTunes and I can see the app on my phone)
But when I try to zip this with /bin/zip or ditto...then the zipped contents loose the CodeSigning (iTunes says that it cannot install this app because its not signed)
I have tried different combinations of these..
ditto -ck --rsrc --keepParent HelloWorld.app HelloWorld.zip
Any more ideas?
I tried this too but still getting the same error
version=$(date "+%Y-%m-%d.%H.%M.%S")
cd "$CONFIGURATION_BUILD_DIR"
zip -r -y "HelloWorld-$version.zip" HelloWorld.app
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要在 zip 上使用 -y 选项:
更新
现在可以从命令行使用 Xcode 存档功能,您可能应该使用它:
You need to use the -y option on zip:
Update
Now the Xcode archive functionality is available from the command line, you should probably be using that: