I need to create with fastlane .app file (or .ipa file if it works to) which I could next drag and drop to simulator on another computer. I tried do it with gym or with xcodebuild parameters but I don't know how to do it.
For now I do it in this way:
In XCode I build application for simulator
Next I am searching app file in DerivedData (~/Library/Developer/XCode/DerivedData/Build/Products/Debug-iphonesimulator/)
I copy this file somewhere else
But I need do it with fastlane.
Setup the required version of Node and install Node dependencies (for a React Native project) Download the codesigning elements from S3 (certificate, private key, provisioning profile) Generate the environment configuration file from values in Secrets. Call Fastlane to build and publish the app.
Install Apps on SimulatorsGo to Apps > Install Application. Find and open the app you want to install from your Mac. The app appears in the list of installed apps on the right side of the iOS Gateway window.
This is the lane that I use:
lane :generate_test_app do xcbuild( workspace: "MyApp.xcworkspace", scheme: "MyApp", configuration: "Debug", xcargs: "-sdk iphonesimulator SYMROOT='/var/tmp/'" ) end
It will leave the app in /var/tmp/Debug-iphonesimulator/MyApp.app
See also: How do I build my projects from the command line?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With