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
)
これでアーカイブができるようになりました。