Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create app file with fastlane for simulator

Tags:

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.

like image 411
Piotr Wasilewicz Avatar asked Feb 01 '17 13:02

Piotr Wasilewicz


People also ask

How do you make iOS apps 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.

How do I add apps to Apple simulator?

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.


1 Answers

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?

like image 198
AlejandroVD Avatar answered Oct 20 '22 12:10

AlejandroVD