2013-02-22 58 views
0

我正在使用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 Developer:AKIO ITO(N5YRDPREK9)」--embed /private/var/root/Downloads/Dev_Test.mobileprovisionCordova 2.2.0和ios從終端錯誤生成ipa文件

我收到此錯誤:

包裝應用: '/Applications/XAMPP/xamppfiles/htdocs/AppHome/app/webroot/files/apps/iphone/hello_app_test/build/hello_app_test.app' 參數:嵌入= /私有的/ var /根/下載/ 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 = no: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/local/src目錄/ android-sdk-macosx/tools:/ usr/local/src/android-sdk-macosx/platform-tools SUDO_USER = nobody SHELL =/usr/bin/false TERM =未知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 - 設計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/files/apps/iphone/hello_app_test/build/hello_app_test.app:代碼對象根本沒有簽名在體系結構:i386]代碼簽名失敗:/ Applications/XAMPP/xamppfiles/htdocs/AppHome/app/webroot/files/apps/iphone/h ello_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 Program/bin/rm返回0:[] +/bin/cp -rp /private/var/root/Downloads/Dev_Test.mobileprovision/tmp/oERgpr0ih1/Payload/hello_app_test .app/embedded.mobileprovision Program/bin/cp返回0:[] ###使用'iPhone Developer:AKIO ITO(N5YRDPREK9)'+/usr/bin爲'/private/var/root/Downloads/Dev_Test.mobileprovision'/codesign --force --preserve-metadata = identifier,權限,資源規則--sign iPhone開發者:AKIO ITO(N5YRDPREK9)--resource-rules =/tmp/oERgpr0ih1/Payload/hello_app_test.app/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

我只注意到這些:

1-代碼對象未簽名在所有在架構:I386

2- ResourceRules。plist:無法讀取資源

檢查您的plist是否有效(可能是一些額外的或缺失的字符)