Can't launch app on emulator with old devices (iPhone 5)


#1

Hi everyone. On iPhone 6 or newest devices all work fine.

I use:

1. Mac OS 10.11.6 El Capitane
2. Latest Xcode

Try to emulate app by

ionic emulate ios --target iPhone-5
# or
ionic emulate ios --target iPhone-5 --prod

During build stage I have no error.
** BUILD SUCCEEDED **
Then emulator opens, app launch for 1 second and crash with error in terminal

An error was encountered processing the command (domain=FBSOpenApplicationServiceErrorDomain, code=1):
The request to open "com.testapp.example.payments" failed.
The request was denied by service delegate (SBMainWorkspace) for reason: Unspecified.

Any ideas?

P.S: if you want to write:

check your scheme settings and make sure all empty settings are unchecked.

and after doing this restart Xcode and simulator.

If that doesn’t work try to restart the system

Please, explain your answer more detail. I don’t have any empty settings in Xcode scheme settings.


#2

Hmm, could you open xcode? This could be related to provisioning profile


#3

It is strange. After

ionic build ios --release --prod

Open project in Xcode. Run on iPhone5 emulator and all works fine. Thanks.

But with

ionic emulate ios --target iPhone-5

Still has crash on launch app after success install it on device.


#4
ionic emulate ios --prod --target="iPhone-5"

#5

Nope. Same error

An error was encountered processing the command (domain=FBSOpenApplicationServiceErrorDomain, code=1):
The request to open "com.testapp.example.payments" failed.
The request was denied by service delegate (SBMainWorkspace) for reason: Unspecified.