Fastlane Gym: Possible to only archive without export?

541 Views Asked by At

I'm using the following fastfile:

platform :ios do
  desc "Build a new xcarchive for the app store"
  lane :release do
  build_app(workspace: "App.xcworkspace", 
            scheme: "App-iOS", 
            skip_codesigning: true)
end

I'd like to only build the archive without exporting. Is this possible with fastlane gym? What parameter should I use?

Currently the archive succeeds, but since it's missing export/codesigning info, it fails to export it.

Thanks

2

There are 2 best solutions below

0
Dev Sanghani On

There's an xcarchive action for this task.

Looks like skip_package_ipa: true also does the trick.

0
Mark Han On

Per https://docs.fastlane.tools/actions/gym/, you'll want a combination of skip_codesigning: true and skip_package_ipa: true

      skip_codesigning: true,
      skip_package_ipa: true,