【发布时间】:2014-04-23 08:40:50
【问题描述】:
我正在使用远程 mac 机器作为构建机器, 我没有root权限。
我正在尝试通过将我的文件复制到文件夹中来使用配置文件:~/Library/MobileDevice/Provisioning Profiles
它的 UUID 作为文件名(和 .mobileprovision 作为扩展名)
当我运行构建并将 UUID 指定为 PROVISIONING_PROFILE 参数时,我得到:
Code Sign error: No matching provisioning profile found: Your build settings specify a provisioning profile with the UUID “xxx”, however, no such provisioning profile was found.
我在here 中看到一个线程,通过复制到"/Library/MobileDevice/Provisioning Profiles" 或/Library/Server/Xcode/Data/ProvisioningProfiles 来解决它
但由于我没有root访问权限,所以我不能这样做。
我正在使用 xcode-5.0.2。
我发出的构建命令是:
xcodebuild -configuration Distribution SDKROOT=pathTo/iPhoneOS7.0.sdk SYMROOT=somePath DSTROOT=somePath INSTALL_PATH=somePath 'CODE_SIGN_IDENTITY[sdk=iphoneos*]=iPhone Distribution: someName' OTHER_CFLAGS=-DINHOUSE_DEPLOY=1 PROVISIONING_PROFILE=xxx
是否有任何已知的解决方法? 如何让 xcodebuild 工具了解此配置文件?
谢谢
【问题讨论】: