问题描述:在使用Bitrise进行构建时,出现以下错误消息:Bitrise无法在Applications/Xcode-beta.app/Contents/Developer找到transporter。
解决方法:此错误通常发生在使用Xcode-beta版本进行构建时,因为transporter不在默认的Xcode-beta路径中。可以通过以下方法解决此问题:
export PATH="$PATH:/Applications/Xcode-beta.app/Contents/Applications/Application Loader.app/Contents/Frameworks/ITunesSoftwareService.framework/Versions/A/Support/"
- script:
name: Add transporter to path
code: |
export PATH="$PATH:/Applications/Xcode-beta.app/Contents/Applications/Application Loader.app/Contents/Frameworks/ITunesSoftwareService.framework/Versions/A/Support/"
find /Applications/Xcode-beta.app -name "transporter"
然后,将路径添加到构建脚本中,如下所示:
export PATH="$PATH:/path/to/transporter"
请注意,以上代码示例中的路径可能需要根据实际情况进行调整。