Php运行xcodebuild无法找到配置文件



我想运行一个服务器来为我构建ipa。当涉及到使用Xcode构建应用程序时,使用这些命令:

/usr/bin/xcodebuild -project /Users/xxxx/sites/PhpServer/AutoUpload/ProjectsDir/48c36d185970fa9231f1f6274b72cf60/48c36d185970fa9231f1f6274b72cf60.xcodeproj -target 48c36d185970fa9231f1f6274b72cf60 -configuration Release PROVISIONING_PROFILE=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx

结果是:

Code Sign error: No codesigning identities found: No codesigning identities (i.e. certificate and private key pairs) that match the provisioning profile specified in your build settings

我检查了~/Library/MobileDevice/Provisioning profile,配置文件放在那里很好。

让我感到困惑的是,它在服务器根目录所在的终端中运行良好。

我想的是,也许xcodebuild执行从php找不到~/Library/MobileDevice/Provisioning profile目录。

  1. 使用xcodebuildPROVISIONING_PROFILE=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx时,如何通过只指定ID来指定配置文件的位置路径,位置路径如何?

  2. 还有其他办法通过Building ipa

我终于解决了这个问题。我大喊"终于……"。

这是因为当你双击。cer文件进行安装时,系统会在"login"类别下安装。cer文件。你需要做的是打开钥匙链应用程序移动。cer文件从'login'到'system'类别。

相关内容