Easily build and sign your app using shenzhen
You are using legacy
shenzhento build your app, which will be removed soon!
It is recommended to upgrade to gym.
To do so, just replace
gym(...)in your Fastfile.
To make code signing work, follow https://docs.fastlane.tools/codesigning/xcode-project/.
ipa( workspace: "MyApp.xcworkspace", configuration: "Debug", scheme: "MyApp", # (optionals) clean: true, # This means "Do Clean". Cleans project before building (the default if not specified). destination: "path/to/dir", # Destination directory. Defaults to current directory. ipa: "my-app.ipa", # specify the name of the .ipa file to generate (including file extension) xcargs: "MY_ADHOC=0", # pass additional arguments to xcodebuild when building the app. embed: "my.mobileprovision", # Sign .ipa file with .mobileprovision identity: "MyIdentity",# Identity to be used along with --embed sdk: "10.0", # use SDK as the name or path of the base SDK when building the project. archive: true# this means "Do Archive". Archive project after building (the default if not specified). )
||WORKSPACE Workspace (.xcworkspace) file to use to build app (automatically detected in current directory)|
||Project (.xcodeproj) file to use to build app (automatically detected in current directory, overridden by --workspace option, if passed)|
||Configuration used to build|
||Scheme used to build app|
||Clean project before building|
||Archive project after building|
||Build destination. Defaults to current directory||*|
||Sign .ipa file with .mobileprovision|
||Identity to be used along with --embed|
||Use SDK as the name or path of the base SDK when building the project|
||Specify the name of the .ipa file to generate (including file extension)|
||Use an extra XCCONFIG file to build the app|
||Pass additional arguments to xcodebuild when building the app. Be sure to quote multiple args|
* = default value is dependent on the user's system
Actions can communicate with each other using a shared hash
lane_context, that can be accessed in other actions, plugins or your lanes:
ipa action generates the following Lane Variables:
||The path to the newly generated ipa file|
||The path to the dsym file|
To get more information check the Lanes documentation.
To show the documentation in your terminal, run
fastlane action ipa
It is recommended to add the above action into your
Fastfile, however sometimes you might want to run one-offs. To do so, you can run the following command from your terminal
fastlane run ipa
To pass parameters, make use of the
: symbol, for example
fastlane run ipa parameter1:"value1" parameter2:"value2"
It's important to note that the CLI supports primitive types like integers, floats, booleans, and strings. Arrays can be passed as a comma delimited string (e.g.
param:"1,2,3"). Hashes are not currently supported.
It is recommended to add all fastlane actions you use to your
This action, just like the rest of fastlane, is fully open source, view the source code on GitHub