Hello, I am trying to launch an app via the CLI.
I am able to build and run the app via Xcode's UI. The iPhone simulator is an iPhone 11. The OS is 14.4.
I am using xcodebuild 12.4 and Xcode 12.4
I tried:
build_app = ’xcrun xcodebuild -scheme MyDemo -project MyDemo/MyDemo.xcodeproj -configuration Debug -destination \‘platform=iOS Simulator,name=’ + iOS_SIMULATOR_NAME + ‘,OS=‘+ iOS_SIMULATOR_OS + ‘\’ -derivedDataPath MyDemo/build -UseModernBuildSystem=YES’
install_app = ‘xcrun simctl install booted MyDemo/build/Build/Products/Debug-iphonesimulator/MyDemo.app/’
launch_app = ‘xcrun simctl launch booted com.MyDemo’
uninstall_app = ‘xcrun simctl uninstall booted com.MyDemo’
I am able to build with these commands, but not able to launch the app.
I keep getting the error code: FBSOpenApplicationErrorDomain error 3
I have cleared the simulator, deleted it and reinstalled it, and cleared my DerivedData.
I am wondering if anyone has any suggestions?
Thanks!