我正在使用 phonegap CLI 3.1 和 XCode5。我正在尝试通过 Phonegap CLI 和 Xcrun 为发布模式生成构建。我不想使用 Phonegap Build 来上传 mobileprovision 或它们的任何过程。我想通过 xcrun 来分配 mobileprovision 来发布构建。
1) 科尔多瓦构建 ios --release
通过命令“/Applications/MAMP/htdocs/MyTest/MyTestApp/platforms/ios/cordova/build”在平台“ios”上编译应用程序--release平台“ios”编译成功。
2) sudo xcrun -sdk iphoneos PackageApplication -v "ios/build/emulator/MyTestApp.app" -o "/Users/mymac/Desktop/Testnew/MyTestApp.ipa" --sign "iPhone Distribution: NAME (TEAM_ID)" - -嵌入“MyTestApp_Dis.mobileprovision”
打包应用程序:'ios/build/emulator/MyTestApp.app' 参数:embed=MyTestApp_Dis.mobileprovision verbose=1 output=/Users/mymac/Desktop/Testnew/MyTestApp.ipa sign=iPhone Distribution: NAME (TEAM_ID)
环境变量:
HOME = /Users/mymac
SUDO_GID = 20
SDKROOT = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk
VERSIONER_PERL_PREFER_32_BIT = no
MAIL = /var/mail/root
SSH_AUTH_SOCK = /tmp/launch-zsBMC8/Listeners
LANG = en_US.UTF-8
USER = root
LOGNAME = root
__CF_USER_TEXT_ENCODING = 0x0:0:0
USERNAME = root
PATH = /usr/bin:/bin:/usr/sbin:/sbin:/ usr/local/bin:/usr/local/git/bin
SUDO_USER = mymac
SHELL = /bin/bash
TERM = xterm-256color
SUDO_COMMAND = /usr/bin/xcrun -sdk iphoneos PackageApplication -v ios/build/emulator/MyTestApp.app -o /Users/mymac/Desktop/Testnew/MyTestApp.ipa --签署 iPhone 发行版:NAME (TEAM_ID) --embed MyTestApp_Dis.mobileprovision
SUDO_UID = 501
VERSIONER_PERL_VERSION = 5.12
输出目录:'/Users/mymac/Desktop/Testnew/MyTestApp.ipa'
临时目录:'/tmp/W81FhZ9VAH'(设置详细时不会在退出时删除)
+ /bin/cp -Rp ios/build/emulator/ MyTestApp.app /tmp/W81FhZ9VAH/Payload
Program /bin/cp 返回 0 : []
检查原始应用程序
- /usr/bin/codesign --verify -vvvv ios/build/emulator/MyTestApp.app
程序 /usr/bin/codesign 返回 1 : [ios/build/emulator/MyTestApp.app: code object is not signed at all
in architecture :i386
] 代码设计检查失败:ios/build/emulator/MyTestApp.app:代码对象根本没有签名在架构中:i386
完成检查原始应用程序
嵌入“MyTestApp_Dis.mobileprovision”
- /bin/rm -rf /tmp/W81FhZ9VAH/Payload/MyTestApp.app/embedded.mobileprovision 程序 /bin/rm 返回 0 : []
- /bin/cp -rp MyTestApp_Dis.mobileprovision /tmp/W81FhZ9VAH/Payload/MyTestApp.app/embedded.mobileprovision 程序 /bin/cp 返回 0 : []
- /usr/bin/codesign -d --entitlements /tmp/W81FhZ9VAH/entitlements_rawixGWnKhi /tmp/W81FhZ9VAH/Payload/MyTestApp.app 程序 /usr/bin/codesign 返回 1 : [/tmp/W81FhZ9VAH/Payload/MyTestApp.app: 代码对象根本没有签名]
错误:无法从“/tmp/W81FhZ9VAH/Payload/MyTestApp.app”读取权利