我想执行fastlane命令来更新项目签名。
[18:50:33]: Updating the Automatic Codesigning flag to disabled for the given project '/Users/user/.jenkins/workspace/PROJECT-IOS/platforms/ios/PROJECT.xcodeproj/project.pbxproj'
[18:50:33]: Seems to be a very old project file format
[18:50:33]: PLEASE BACKUP ALL FILES before doing this.
Proceed with upgrade to xcode8 format? (y/n)
第一次总是要求确认“是”或“否”来更新xcode xcode格式:
yes | fastlane run update_project_codesigning path:"PROJECT.xcodeproj"
在终端我可以做到
{{1}}
它有效。
但是在Jenkins上它不起作用。据我所知,Jenkins不支持交互式命令。
如何为所有fastlane命令自动设置“YES”确认?
答案 0 :(得分:0)
我发现了如何自动确认更改xcode格式。
只需将FL_PROJECT_SIGNING_FORCE_UPGRADE
环境变量设置为1或true。
我做了:
export FL_PROJECT_SIGNING_FORCE_UPGRADE=1
fastlane run update_project_codesigning path:"PROJECT.xcodeproj"
并且有效