LoginSignup
6
5

More than 5 years have passed since last update.

fastlane でアーカイブに失敗する問題の対処

Posted at

fastlane で gym でビルドしようとしてたらアーカイブに失敗する問題に遭遇しました。

The generated archive is invalid, this can have various reasons:
[19:32:54]: Usually it's caused by the `Skip Install` option in Xcode, set it to `NO`
[19:32:54]: For more information visit https://developer.apple.com/library/ios/technotes/tn2215/_index.html
[19:32:54]: Variable Dump:
...

調べたら github 上で同様の issue が発行されていたようです。

解決策

gym に use_legacy_build_api オプションを渡すとビルドできるようです。
※gym 内でのビルド方法が変わったみたいですね

    gym(
      workspace: 'myapp.xcworkspace',
      scheme: scheme,
      configuration: configuration,
      use_legacy_build_api: true
    )

これでアーカイブができるようになりました。

6
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
5