Xcrun PackageApplication,失败无法复制应用程序 [英] Xcrun PackageApplication, failed unable to copy application

查看:358
本文介绍了Xcrun PackageApplication,失败无法复制应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个X code进行简单的应用程序。设置好的为调试和发布配置的配置。
我执行终端:

I've created a simple application in Xcode. Setted up a provisioning for Debug and Release configuration. I'm performing in terminal:

xcodebuild -target signtest -configuration Debug -sdk iphoneos clean build

和它是正确的建设。
现在,我试图与这个命令IPA文件:

And it is building correctly. Now I'm trying to make an ipa file with this command:

/usr/bin/xcrun -sdk iphoneos PackageApplication -v /Users/admin/Desktop/signtest/signtest/build/Debug-iphoneos/signtest.app/  -o /Users/admin/Desktop/binaries/signtest.ipa

和我得到这个错误:

Packaging application: '/Users/admin/Desktop/signtest/signtest/build/Debug-iphoneos/signtest.app/'
Arguments: verbose=1  output=/Users/admin/Desktop/binaries/signtest.ipa  
Environment variables:
HOME = /Users/admin
DISPLAY = /tmp/launch-vj2zx7/org.x:0
COMMAND_MODE = unix2003
VERSIONER_PERL_PREFER_32_BIT = no
SSH_AUTH_SOCK = /tmp/launch-YPyQMl/Listeners
Apple_PubSub_Socket_Render = /tmp/launch-mcFbgX/Render
CODESIGN_ALLOCATE = /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/codesign_allocate
PWD = /Users/admin/Desktop/signtest/signtest
LANG = pl_PL.UTF-8
USER = admin
CLICOLOR = 1
LOGNAME = admin
__CF_USER_TEXT_ENCODING = 0x1F6:29:42
SHLVL = 1
TERM_PROGRAM = Apple_Terminal
OLDPWD = /Users/admin/Desktop/signtest/signtest/signtest
_ = /usr/bin/xcrun
TERM_PROGRAM_VERSION = 299
TERM_SESSION_ID = A74C6214-58A9-4CE6-9032-B902BD286253
PATH = /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin
LSCOLORS = GxFxCxDxBxegedabagaced
SHELL = /bin/bash
TMPDIR = /var/folders/k2/28y_cf8d4b387lr2kf6vlsjr0000gp/T/
TERM = xterm-256color
VERSIONER_PERL_VERSION = 5.12

Output directory: '/Users/admin/Desktop/binaries/signtest.ipa'
Temporary Directory: '/var/folders/k2/28y_cf8d4b387lr2kf6vlsjr0000gp/T/hbdHfiqg31'  (will NOT be deleted on exit when verbose set)
+ /bin/cp -Rp /Users/admin/Desktop/signtest/signtest/build/Debug-iphoneos/signtest.app/ /var/folders/k2/28y_cf8d4b387lr2kf6vlsjr0000gp/T/hbdHfiqg31/Payload
Program /bin/cp returned 0 : []
error: Unable to copy application '/Users/admin/Desktop/signtest/signtest/build/Debug-iphoneos/signtest.app/' into '/var/folders/k2/28y_cf8d4b387lr2kf6vlsjr0000gp/T/hbdHfiqg31/Payload'

什么是错在这里?

What is wrong here?

推荐答案

我,因为应用程序路径末尾的'/'的这个错误:

I got this error because of a trailing '/' on the app path:

这将失败:

xcrun -sdk iphoneos PackageApplication -v foobar.app/

本作品:

xcrun -sdk iphoneos PackageApplication -v foobar.app

这篇关于Xcrun PackageApplication,失败无法复制应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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