I'm installing MyApp
on the iOS simulator (Xcode 7, iOS 9) using xcrun simctl install booted MyPath/MyApp.app
.
This works as expected and the app is installed on the simulator.
However, launching the app either manually or using xcrun simctl launch booted com.company.MyApp
fails. Giving back the error:
An error was encountered processing the command (domain=FBSOpenApplicationErrorDomain, code=1): The operation couldn’t be completed. (FBSOpenApplicationErrorDomain error 1.)
The app is exported from Xcode (note that running the app from Xcode or re-building the app from its source code is not a liable solution).
It's not app specific, as any app install in this manner crashes with the same error.
The system log reports the same error, but with some additional information.
com.apple.CoreSimulator.SimDevice.CA35ED48-DDAA-4CF0-8C69-C206CC55A6EB.launchd_sim[4200] (UIKitApplication:com.company.MyApp[0xe9ec][4281]): Program specified by service does not contain one of the requested architectures: R
SpringBoard[4217]: Unable to get pid for 'UIKitApplication:com.company.MyApp[0xe9ec]': No such process (err 3)
SpringBoard[4217]: Bootstrapping failed for
SpringBoard[4217]: Application 'UIKitApplication:com.company.MyApp[0xe9ec]' exited voluntarily.
SpringBoard[4217]: CGContextSaveGState: invalid context 0x0. If you want to see the backtrace, please set CG_CONTEXT_SHOW_BACKTRACE environmental variable.
SpringBoard[4217]: CGContextTranslateCTM: invalid context 0x0. If you want to see the backtrace, please set CG_CONTEXT_SHOW_BACKTRACE environmental variable.
SpringBoard[4217]: CGContextRestoreGState: invalid context 0x0. If you want to see the backtrace, please set CG_CONTEXT_SHOW_BACKTRACE environmental variable.
SpringBoard[4217]: CGContextSaveGState: invalid context 0x0. If you want to see the backtrace, please set CG_CONTEXT_SHOW_BACKTRACE environmental variable.
SpringBoard[4217]: CGContextTranslateCTM: invalid context 0x0. If you want to see the backtrace, please set CG_CONTEXT_SHOW_BACKTRACE environmental variable.
SpringBoard[4217]: CGContextRestoreGState: invalid context 0x0. If you want to see the backtrace, please set CG_CONTEXT_SHOW_BACKTRACE environmental variable.
com.apple.CoreSimulator.SimDevice.CA35ED48-DDAA-4CF0-8C69-C206CC55A6EB.launchd_sim[4200] (UIKitApplication:com.company.MyApp[0xc82f][4282]): Program specified by service does not contain one of the requested architectures: R
SpringBoard[4217]: Unable to get pid for 'UIKitApplication:com.company.MyApp[0xc82f]': No such process (err 3)
SpringBoard[4217]: Bootstrapping failed for
SpringBoard[4217]: Application 'UIKitApplication:com.company.MyApp[0xc82f]' exited voluntarily.
The architectures
error varies the variable. R, f, etc.
What's the causing this issue? How may I resolve it?