Skip to content

Note for setting fastlane build app with multiple target in xcode

License

Notifications You must be signed in to change notification settings

qhu91it/iOS-multiple-target-with-fastlane

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

iOS - multiple target with fastlane

Note for setting fastlane build app with multiple target in xcode

Create environment

  1. Open terminal and go to fastlane folder, create env file for target.
touch .env.app1
  1. Open env file with text editor and add environment.
# Loaded from `fastlane <lane> --env app1`
SCHEME=App1 # target name
BUNDLE_ID=com.yourcompany.app1
METADATA=fastlane/metadata-app1
SCREENSHOTS=fastlane/screenshots-app1

Download metadata and screenshots for target

Run command in terminal, replace metadata_path, screenshots_path and app_identifier to your owned.

  1. Download metadata
deliver download_metadata --metadata_path fastlane/metadata-app1 --app_identifier com.yourcompany.app1
  1. download screenshots
deliver download_screenshots --screenshots_path fastlane/screenshots-app1 --app_identifier com.yourcompany.app1

Setting Fastfile

Open 'Fastfile' in text editor and change like this:

lane :release do options available
  gym(scheme: ENV['SCHEME'],
    workspace: "yourApp.xcworkspace",
    export_method: "app-store",
    include_bitcode: true)
  deliver(force: true,
  metadata_path: ENV['METADATA'],
  screenshots_path: ENV['SCREENSHOTS'],
  app_identifier: ENV['BUNDLE_ID'])
end

Run fastlane command with enviroment

Using like this:

fastlane release --env app1

About

Note for setting fastlane build app with multiple target in xcode

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published