ios - FaSTLane 健身房失败退出状态 : 1 although Archive Succeeded

标签 ios automation fastlane

我正在使用 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/

相关文章:

ios - 当将变量从两个不同的 View 转移到一个 View 时,变量会被替换

ios - 升级到 Xcode 12.5 后的 xcodebuild 问题

android - faSTLane 上的 apkPermissionsRequirePrivacyPolicy 错误

ios - 在 Apple Developer Portal 上使用客户的 Apple 帐户

ios - 在 xcode 日志中启用 Firebase 自动屏幕报告

objective-c - 未收到从 iOS 应用程序/MFMailComposeViewController 发送的附件

java - 如何在firefox默认浏览器中运行selenium

c# - 如何找到通过 C# 应用程序实现 SAP 自动化所需的连接字符串?

automation - 类导入在带有 cypress 的 gitlabci 上不起作用