How to use the -SimulateApplication tool through the command line

Does anyone know how to use the -SimulateApplication tool through the command line. As far as I understand, shoud load / istall.app through the simulator? I install the following: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone\Simulator.app/Contents/MacOS/iPhone\Simulator -SimulateApplication $ HOME / application path

but nothing happens, just running the simulator

Would it be great to get advice?

+6
source share
1 answer

I had problems with this too .. but in the end I used ios-sim that's what I had to do

xcodebuild -project testing.xcodeproj -target "testing" -configuration "Debug" -destination "platform=iOS Simulator,name=iPad" -sdk "iphonesimulator7.0" -IDEBuildOperationMaxNumberOfConcurrentCompileTasks=8 build ios-sim launch /Users/prjwl/Documents/Samples/testing/build/Debug-iphonesimulator/testing.app --sdk 7.0 --stdout log.txt --timeout 60 --args $input 

Hope this helps someone.

+1
source

Source: https://habr.com/ru/post/971062/


All Articles