我正在使用cordova 2.2.0库从终端创建ipa文件。 当我使用以下命令时: xcrun -sdk iphoneos6.0 PackageApplication -v /Applications/XAMPP/xamppfiles/htdocs/AppHome/app/webroot/files/apps/iphone/hello_app_test/build/hello_app_test.app -o / Applications / XAMPP / xamppfiles / htdocs /AppHome/app/webroot/files/out_ipa/hello_app_test.ipa --sign“iPhone开发人员:AKIO ITO(N5YRDPREK9)” - embed /private/var/root/Downloads/Dev_Test.mobileprovision
我收到此错误:
打包应用程序:'/Applications/XAMPP/xamppfiles/htdocs/AppHome/app/webroot/files/apps/iphone/hello_app_test/build/hello_app_test.app'参数:embed = / private / var / root / Downloads / Dev_Test .mobileprovision verbose = 1 output = / Applications / XAMPP / xamppfiles / htdocs / AppHome / app / webroot / files / out_ipa / hello_app_test.ipa sign = iPhone开发人员:AKIO ITO(N5YRDPREK9)环境变量:HOME = / var / root SUDO_GID = 4294967294 VERSIONER_PERL_PREFER_32_BIT =无MAIL = / var / mail / root SSH_AUTH_SOCK = / tmp / launch-UvWSWr / Listeners USER = root LOGNAME = root __CF_USER_TEXT_ENCODING = 0x0:0:0 USERNAME = root PATH = / sbin:/ bin:/ usr / sbin :在/ usr / local / bin目录:在/ usr / bin中:/Library/Java/JavaVirtualMachines/jdk1.7.0_10.jdk/Contents/Home:/usr/local/ant/apache-ant-1.8.4:在/ usr /本地/ src / android-sdk-macosx / tools:/ usr / local / src / android-sdk-macosx / platform-tools SUDO_USER = nobody SHELL = / usr / bin / false TERM = unknown SUDO_COMMAND = / usr / bin / xcrun - sdk iphoneos6.0 PackageApplication -v / Applications / XAMPP / xamppfiles /htdocs/AppHome/app/webroot/files/apps/iphone/hello_app_test/build/hello_app_test.app -o /Applications/XAMPP/xamppfiles/htdocs/AppHome/app/webroot/files/out_ipa/hello_app_test.ipa --sign iPhone开发商:AKIO ITO(N5YRDPREK9)--embed /private/var/root/Downloads/Dev_Test.mobileprovision SUDO_UID = 4294967294 VERSIONER_PERL_VERSION = 5.12输出目录:'/ Applications / XAMPP / xamppfiles / htdocs / AppHome / app / webroot / files / out_ipa /hello_app_test.ipa'临时目录:'/ tmp / oERgpr0ih1'(在详细设置时不会在退出时删除)+ / bin / cp -Rp / Applications / XAMPP / xamppfiles / htdocs / AppHome / app / webroot / files / apps /iphone/hello_app_test/build/hello_app_test.app / tmp / oERgpr0ih1 / Payload Program / bin / cp返回0:[] ###检查原始应用程序+ / usr / bin / codesign --verify -vvvv / Applications / XAMPP / xamppfiles /htdocs/AppHome/app/webroot/files/apps/iphone/hello_app_test/build/hello_app_test.app程序/ usr / bin / codesign返回1:[/ Applications / XAMPP / xamppfiles / htdocs / AppHome / app / webroot / fi les / apps / iphone / hello_app_test / build / hello_app_test.app:代码对象根本没有签名在架构中:i386] Codeign检查失败:/ Applications / XAMPP / xamppfiles / htdocs / AppHome / app / webroot / files / apps / iphone /hello_app_test/build/hello_app_test.app:代码对象根本没有签名在架构中:i386完成检查原始应用程序###嵌入'/private/var/root/Downloads/Dev_Test.mobileprovision'+ / bin / rm -rf /tmp/oERgpr0ih1/Payload/hello_app_test.app/embedded.mobileprovision程序/ bin / rm返回0:[] + / bin / cp -rp /private/var/root/Downloads/Dev_Test.mobileprovision / tmp / oERgpr0ih1 / Payload / hello_app_test.app/embedded.mobileprovision程序/ bin / cp返回0:[] ###使用'iPhone开发人员代码'/private/var/root/Downloads/Dev_Test.mobileprovision'+ AKIO ITO(N5YRDPREK9)+ / usr / bin / codesign --force --preserve-metadata = identifier,entitlements,resource-rules --sign iPhone开发人员:AKIO ITO(N5YRDPREK9)--resource-rules = / tmp / oERgpr0ih1 / Payload / hello_app_test.ap p / ResourceRules.plist /tmp/oERgpr0ih1/Payload/hello_app_test.app程序/ usr / bin / codesign返回1:[/tmp/oERgpr0ih1/Payload/hello_app_test.app/ResourceRules.plist:无法读取资源]
请帮助某人从终端(MAC)创建ipa文件。 任何帮助和建议都会很明显。 提前致谢。
答案 0 :(得分:0)
我只注意到这些:
1-代码对象根本没有签名在架构中:i386
2- ResourceRules.plist:无法读取资源
检查你的plist是否有效(可能是一些额外的或缺少的字符)