gpt4 book ai didi

xcode - Xcrun PackageApplication,无法复制应用程序失败

转载 作者:IT老高 更新时间:2023-10-28 11:22:21 26 4
gpt4 key购买 nike

我在 Xcode 中创建了一个简单的应用程序。为调试和发布配置设置供应。我在终端执行:

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

而且它正在正确构建。现在我正在尝试用这个命令制作一个 ipa 文件:

/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'

这里有什么问题?

最佳答案

我收到此错误是因为应用路径上的尾随“/”:

这失败了:

xcrun -sdk iphoneos PackageApplication -v foobar.app/

这行得通:

xcrun -sdk iphoneos PackageApplication -v foobar.app

关于xcode - Xcrun PackageApplication,无法复制应用程序失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8536728/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com