我正在使用 gitLab Runner,同一条 channel 在另一台机器上运行良好,我确保使用匹配和相同的 applleID 来配置配置文件。
Yml 文件
build_mySharp_debug:
stage: build
script:
- fastlane match development
- fastlane build_target target:$MYSHARP_TARGET_NAME identifier:$MYSHARP_TARGET_ID
except:
- staging
- production
- deploy_brokers
tags:
- trufla-ios
FastFile 构建目标 channel
lane :build_target do |options|
register_devices(devices_file: "fastlane/devices.txt")
gym(
scheme: options[:target],
clean: true,
silent: true,
skip_package_ipa: true,
export_method: "development",
export_options: {
provisioningProfiles: {
"bundelID" => "match Development BundelID"
}
},
configuration: "Debug",
clean:true
)
end
输出日志
4071 ▸ Touching MyProject.app.dSYM
4072 ▸ Archive Succeeded
4073 [02:42:36]: Exit status: 1
4127 [02:42:36]: fastlane finished with errors
28 [!] Error building the application - see the log above
4131 ERROR: Job failed: exit status 1
4091 [02:42:36]: Your `export_method` in gym is defined as `development`
4092 [02:42:36]: which might cause problems when signing your application
4093 [02:42:36]: Are you sure want to build and export for development?
4094 [02:42:36]: Please make sure to define the correct export methods when calling
4095 [02:42:36]: gym in your Fastfile or from the command line
4096 [02:42:36]:
4097 [02:42:36]:
4098 [02:42:36]: Looks like fastlane ran into a build/archive error with your project
4099 [02:42:36]: It's hard to tell what's causing the error, so we wrote some guides on how
4100 [02:42:36]: to troubleshoot build and signing issues: https://docs.fastlane.tools/codesigning/getting-started/
4101 [02:42:36]: Before submitting an issue on GitHub, please follow the guide above and make
4102 [02:42:36]: sure your project is set up correctly.
4103 [02:42:36]: fastlane uses `xcodebuild` commands to generate your binary, you can see the
4104 [02:42:36]: the full commands printed out in yellow in the above log.
4105 [02:42:36]: Make sure to inspect the output above, as usually you'll find more error information there
我确信证书和配置文件已安装并添加到项目中,任何人都可以给我提示什么可能导致此问题
最佳答案
问题是FaSTLane和gym没有gym日志目录的写权限。
~/Library/Logs/gym
关于ios - FaSTLane 健身房失败退出状态 : 1 although Archive Succeeded,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59067840/