Emulate ios starts the simulator but fails to load app

Hi,

I’m building an application with Ionic and I’m trying to emulate it on iOS. I downloaded the new XCode-beta and ran an example project on the simulator, already - so that works fine.

Now I’m trying to run my own project and even though “ionic serve” works just fine, the simulator isn’t:
The Xcode simulator starts successfully, it navigates to my app (where you can see the Ionic “loading” logo comes up), but then it never shows the app. The consolelogs and serverlogs don’t show anything. That’s why I need some help fixing the following problems:

Jun 19 11:34:57 Cans-MBP ids_simd[8377]: (Warn ) IDSSimulatorSupport: <IDSSimSupportLocalServer.m -[IDSSimSupportLocalServer _attemptToSendDataDict:]:390> calling completion with success=0, error=Error Domain=com.apple.idssimualtorsupport.errors Code=2 “The operation couldn’t be completed. (com.apple.idssimualtorsupport.errors error 2.)”
Jun 19 11:34:57 Cans-MBP ids_simd[8377]: (Error) IDSSimulatorSupport: <server.m connectToRemotePort:122> Failed to lookup com.apple.IDSSimRPC.remote service: 1102
Jun 19 11:34:57 Cans-MBP ids_simd[8377]: (Warn ) IDSSimulatorSupport: <IDSSimSupportLocalServer.m -[IDSSimSupportLocalServer _attemptToSendDataDict:]:390> calling completion with success=0, error=Error Domain=com.apple.idssimualtorsupport.errors Code=2 “The operation couldn’t be completed. (com.apple.idssimualtorsupport.errors error 2.)”
Jun 19 11:34:58 Cans-MBP ids_simd[8377]: (Error) IDSSimulatorSupport: <server.m connectToRemotePort:122> Failed to lookup com.apple.IDSSimRPC.remote service: 1102
Jun 19 11:34:58 Cans-MBP ids_simd[8377]: (Warn ) IDSSimulatorSupport: <IDSSimSupportLocalServer.m -[IDSSimSupportLocalServer _attemptToSendDataDict:]:390> calling completion with success=0, error=Error Domain=com.apple.idssimualtorsupport.errors Code=2 “The operation couldn’t be completed. (com.apple.idssimualtorsupport.errors error 2.)”
Jun 19 11:34:58 Cans-MBP ids_simd[8377]: (Error) IDSSimulatorSupport: <server.m connectToRemotePort:122> Failed to lookup com.apple.IDSSimRPC.remote service: 1102
Jun 19 11:34:58 Cans-MBP ids_simd[8377]: (Warn ) IDSSimulatorSupport: <IDSSimSupportLocalServer.m -[IDSSimSupportLocalServer _attemptToSendDataDict:]:390> calling completion with success=0, error=Error Domain=com.apple.idssimualtorsupport.errors Code=2 “The operation couldn’t be completed. (com.apple.idssimualtorsupport.errors error 2.)”
Jun 19 11:34:58 Cans-MBP ids_simd[8377]: (Error) IDSSimulatorSupport: <IDSSimSupportLocalServer.m __68-[IDSSimSupportLocalServer setNetworkSimulation:enabled:completion:]_block_invoke:451> message send of data {
ControlCmd = SetNetSimulationEnabledCmd;
Enabled = 0;
ServiceName = “com.apple.private.alloy.sockpuppet.classd”;
} failed with error Error Domain=com.apple.idssimualtorsupport.errors Code=2 “The operation couldn’t be completed. (com.apple.idssimualtorsupport.errors error 2.)”
Jun 19 11:34:58 Cans-MBP companionappd[8357]: (Error) WatchKit: -[SPTransport service:account:identifier:didSendWithSuccess:error:] identifier (B99206E6-C0A6-4E87-9486-150F2AA6CD60), serviceName ((null)), success: 0 error, domain: com.apple.identityservices.error, code: 23
Jun 19 11:34:58 Cans-MBP companionappd[8357]: (Error) WatchKit: <SPCompanionAppServer.m __75-[SPCompanionAppServer sendProtobuf:sender:timeOut:allowInsecureTransport:]_block_invoke:793> sendProtobuf failed, error : Error Domain=com.apple.identityservices.error Code=23 “Timed out” UserInfo=0x7ff1cbc0ac00 {NSLocalizedDescription=Timed out, NSUnderlyingError=0x7ff1cbc0a9a0 “The operation couldn’t be completed. (com.apple.ids.idssenderrordomain error 12.)”}
Jun 19 11:34:58 Cans-MBP companionappd[8357]: (Error) WatchKit: -[SPTransport service:account:identifier:didSendWithSuccess:error:] identifier (8409EC0D-7FEC-4C8E-9961-E10F0B28A7F5), serviceName ((null)), success: 0 error, domain: com.apple.identityservices.error, code: 23
Jun 19 11:34:58 Cans-MBP companionappd[8357]: (Error) WatchKit: <SPCompanionAppServer.m __75-[SPCompanionAppServer sendProtobuf:sender:timeOut:allowInsecureTransport:]_block_invoke:793> sendProtobuf failed, error : Error Domain=com.apple.identityservices.error Code=23 “Timed out” UserInfo=0x7ff1cbd06c70 {NSLocalizedDescription=Timed out, NSUnderlyingError=0x7ff1cbd07a40 “The operation couldn’t be completed. (com.apple.ids.idssenderrordomain error 12.)”}
Jun 19 11:34:58 Cans-MBP ids_simd[8377]: (Error) IDSSimulatorSupport: <server.m connectToRemotePort:122> Failed to lookup com.apple.IDSSimRPC.remote service: 1102
Jun 19 11:34:58 Cans-MBP ids_simd[8377]: (Warn ) IDSSimulatorSupport: <IDSSimSupportLocalServer.m -[IDSSimSupportLocalServer _attemptToSendDataDict:]:390> calling completion with success=0, error=Error Domain=com.apple.idssimualtorsupport.errors Code=2 “The operation couldn’t be completed. (com.apple.idssimualtorsupport.errors error 2.)”
Jun 19 11:34:58 Cans-MBP ids_simd[8377]: (Error) IDSSimulatorSupport: <server.m connectToRemotePort:122> Failed to lookup com.apple.IDSSimRPC.remote service: 1102
Jun 19 11:34:58 Cans-MBP ids_simd[8377]: (Warn ) IDSSimulatorSupport: <IDSSimSupportLocalServer.m -[IDSSimSupportLocalServer _attemptToSendDataDict:]:390> calling completion with success=0, error=Error Domain=com.apple.idssimualtorsupport.errors Code=2 “The operation couldn’t be completed. (com.apple.idssimualtorsupport.errors error 2.)”
Jun 19 11:34:59 Cans-MBP ids_simd[8377]: (Error) IDSSimulatorSupport: <server.m connectToRemotePort:122> Failed to lookup com.apple.IDSSimRPC.remote service: 1102
Jun 19 11:34:59 Cans-MBP ids_simd[8377]: (Warn ) IDSSimulatorSupport: <IDSSimSupportLocalServer.m -[IDSSimSupportLocalServer _attemptToSendDataDict:]:390> calling completion with success=0, error=Error Domain=com.apple.idssimualtorsupport.errors Code=2 “The operation couldn’t be completed. (com.apple.idssimualtorsupport.errors error 2.)”
Jun 19 11:34:59 Cans-MBP ids_simd[8377]: (Error) IDSSimulatorSupport: <server.m connectToRemotePort:122> Failed to lookup com.apple.IDSSimRPC.remote service: 1102
Jun 19 11:34:59 Cans-MBP ids_simd[8377]: (Warn ) IDSSimulatorSupport: <IDSSimSupportLocalServer.m -[IDSSimSupportLocalServer _attemptToSendDataDict:]:390> calling completion with success=0, error=Error Domain=com.apple.idssimualtorsupport.errors Code=2 “The operation couldn’t be completed. (com.apple.idssimualtorsupport.errors error 2.)”
Jun 19 11:34:59 Cans-MBP ids_simd[8377]: (Error) IDSSimulatorSupport: <server.m connectToRemotePort:122> Failed to lookup com.apple.IDSSimRPC.remote service: 1102
Jun 19 11:34:59 Cans-MBP ids_simd[8377]: (Warn ) IDSSimulatorSupport: <IDSSimSupportLocalServer.m -[IDSSimSupportLocalServer _attemptToSendDataDict:]:390> calling completion with success=0, error=Error Domain=com.apple.idssimualtorsupport.errors Code=2 “The operation couldn’t be completed. (com.apple.idssimualtorsupport.errors error 2.)”
Jun 19 11:34:59 Cans-MBP ids_simd[8377]: (Error) IDSSimulatorSupport: <server.m connectToRemotePort:122> Failed to lookup com.apple.IDSSimRPC.remote service: 1102
Jun 19 11:34:59 Cans-MBP ids_simd[8377]: (Warn ) IDSSimulatorSupport: <IDSSimSupportLocalServer.m -[IDSSimSupportLocalServer _attemptToSendDataDict:]:390> calling completion with success=0, error=Error Domain=com.apple.idssimualtorsupport.errors Code=2 “The operation couldn’t be completed. (com.apple.idssimualtorsupport.errors error 2.)”
Jun 19 11:35:00 Cans-MBP ids_simd[8377]: (Error) IDSSimulatorSupport: <server.m connectToRemotePort:122> Failed to lookup com.apple.IDSSimRPC.remote service: 1102
Jun 19 11:35:00 Cans-MBP ids_simd[8377]: (Warn ) IDSSimulatorSupport: <IDSSimSupportLocalServer.m -[IDSSimSupportLocalServer _attemptToSendDataDict:]:390> calling completion with success=0, error=Error Domain=com.apple.idssimualtorsupport.errors Code=2 “The operation couldn’t be completed. (com.apple.idssimualtorsupport.errors error 2.)”
Jun 19 11:35:00 Cans-MBP ids_simd[8377]: (Error) IDSSimulatorSupport: <server.m connectToRemotePort:122> Failed to lookup com.apple.IDSSimRPC.remote service: 1102
Jun 19 11:35:00 Cans-MBP ids_simd[8377]: (Warn ) IDSSimulatorSupport: <IDSSimSupportLocalServer.m -[IDSSimSupportLocalServer _attemptToSendDataDict:]:390> calling completion with success=0, error=Error Domain=com.apple.idssimualtorsupport.errors Code=2 “The operation couldn’t be completed. (com.apple.idssimualtorsupport.errors error 2.)”
Jun 19 11:35:00 Cans-MBP ids_simd[8377]: (Error) IDSSimulatorSupport: <server.m connectToRemotePort:122> Failed to lookup com.apple.IDSSimRPC.remote service: 1102
Jun 19 11:35:00 Cans-MBP ids_simd[8377]: (Warn ) IDSSimulatorSupport: <IDSSimSupportLocalServer.m -[IDSSimSupportLocalServer _attemptToSendDataDict:]:390> calling completion with success=0, error=Error Domain=com.apple.idssimualtorsupport.errors Code=2 “The operation couldn’t be completed. (com.apple.idssimualtorsupport.errors error 2.)”
Jun 19 11:35:00 Cans-MBP ids_simd[8377]: (Error) IDSSimulatorSupport: <server.m connectToRemotePort:122> Failed to lookup com.apple.IDSSimRPC.remote service: 1102
Jun 19 11:35:00 Cans-MBP ids_simd[8377]: (Warn ) IDSSimulatorSupport: <IDSSimSupportLocalServer.m -[IDSSimSupportLocalServer _attemptToSendDataDict:]:390> calling completion with success=0, error=Error Domain=com.apple.idssimualtorsupport.errors Code=2 “The operation couldn’t be completed. (com.apple.idssimualtorsupport.errors error 2.)”
Jun 19 11:35:01 Cans-MBP ids_simd[8377]: (Error) IDSSimulatorSupport: <server.m connectToRemotePort:122> Failed to lookup com.apple.IDSSimRPC.remote service: 1102
Jun 19 11:35:01 Cans-MBP ids_simd[8377]: (Warn ) IDSSimulatorSupport: <IDSSimSupportLocalServer.m -[IDSSimSupportLocalServer _attemptToSendDataDict:]:390> calling completion with success=0, error=Error Domain=com.apple.idssimualtorsupport.errors Code=2 “The operation couldn’t be completed. (com.apple.idssimualtorsupport.errors error 2.)”
Jun 19 11:35:01 Cans-MBP ids_simd[8377]: (Error) IDSSimulatorSupport: <server.m connectToRemotePort:122> Failed to lookup com.apple.IDSSimRPC.remote service: 1102
Jun 19 11:35:01 Cans-MBP ids_simd[8377]: (Warn ) IDSSimulatorSupport: <IDSSimSupportLocalServer.m -[IDSSimSupportLocalServer _attemptToSendDataDict:]:390> calling completion with success=0, error=Error Domain=com.apple.idssimualtorsupport.errors Code=2 “The operation couldn’t be completed. (com.apple.idssimualtorsupport.errors error 2.)”
Jun 19 11:35:01 Cans-MBP ids_simd[8377]: (Error) IDSSimulatorSupport: <server.m connectToRemotePort:122> Failed to lookup com.apple.IDSSimRPC.remote service: 1102
Jun 19 11:35:01 Cans-MBP ids_simd[8377]: (Warn ) IDSSimulatorSupport: <IDSSimSupportLocalServer.m -[IDSSimSupportLocalServer _attemptToSendDataDict:]:390> calling completion with success=0, error=Error Domain=com.apple.idssimualtorsupport.errors Code=2 “The operation couldn’t be completed. (com.apple.idssimualtorsupport.errors error 2.)”
Jun 19 11:35:02 Cans-MBP ids_simd[8377]: (Error) IDSSimulatorSupport: <server.m connectToRemotePort:122> Failed to lookup com.apple.IDSSimRPC.remote service: 1102
Jun 19 11:35:02 Cans-MBP ids_simd[8377]: (Warn ) IDSSimulatorSupport: <IDSSimSupportLocalServer.m -[IDSSimSupportLocalServer _attemptToSendDataDict:]:390> calling completion with success=0, error=Error Domain=com.apple.idssimualtorsupport.errors Code=2 “The operation couldn’t be completed. (com.apple.idssimualtorsupport.errors error 2.)”
Jun 19 11:35:02 Cans-MBP ids_simd[8377]: (Error) IDSSimulatorSupport: <server.m connectToRemotePort:122> Failed to lookup com.apple.IDSSimRPC.remote service: 1102
Jun 19 11:35:02 Cans-MBP ids_simd[8377]: (Warn ) IDSSimulatorSupport: <IDSSimSupportLocalServer.m -[IDSSimSupportLocalServer _attemptToSendDataDict:]:390> calling completion with success=0, error=Error Domain=com.apple.idssimualtorsupport.errors Code=2 “The operation couldn’t be completed. (com.apple.idssimualtorsupport.errors error 2.)”
Jun 19 11:35:02 Cans-MBP ids_simd[8377]: (Error) IDSSimulatorSupport: <server.m connectToRemotePort:122> Failed to lookup com.apple.IDSSimRPC.remote service: 1102
Jun 19 11:35:02 Cans-MBP ids_simd[8377]: (Warn ) IDSSimulatorSupport: <IDSSimSupportLocalServer.m -[IDSSimSupportLocalServer _attemptToSendDataDict:]:390> calling completion with success=0, error=Error Domain=com.apple.idssimualtorsupport.errors Code=2 “The operation couldn’t be completed. (com.apple.idssimualtorsupport.errors error 2.)”
Jun 19 11:35:03 Cans-MBP ids_simd[8377]: (Error) IDSSimulatorSupport: <server.m connectToRemotePort:122> Failed to lookup com.apple.IDSSimRPC.remote service: 1102
Jun 19 11:35:03 Cans-MBP ids_simd[8377]: (Warn ) IDSSimulatorSupport: <IDSSimSupportLocalServer.m -[IDSSimSupportLocalServer _attemptToSendDataDict:]:390> calling completion with success=0, error=Error Domain=com.apple.idssimualtorsupport.errors Code=2 “The operation couldn’t be completed. (com.apple.idssimualtorsupport.errors error 2.)”
Jun 19 11:35:03 Cans-MBP ids_simd[8377]: (Error) IDSSimulatorSupport: <server.m connectToRemotePort:122> Failed to lookup com.apple.IDSSimRPC.remote service: 1102
Jun 19 11:35:03 Cans-MBP ids_simd[8377]: (Warn ) IDSSimulatorSupport: <IDSSimSupportLocalServer.m -[IDSSimSupportLocalServer _attemptToSendDataDict:]:390> calling completion with success=0, error=Error Domain=com.apple.idssimualtorsupport.errors Code=2 “The operation couldn’t be completed. (com.apple.idssimualtorsupport.errors error 2.)”
Jun 19 11:35:03 Cans-MBP ids_simd[8377]: (Error) IDSSimulatorSupport: <server.m connectToRemotePort:122> Failed to lookup com.apple.IDSSimRPC.remote service: 1102
Jun 19 11:35:03 Cans-MBP ids_simd[8377]: (Warn ) IDSSimulatorSupport: <IDSSimSupportLocalServer.m -[IDSSimSupportLocalServer _attemptToSendDataDict:]:390> calling completion with success=0, error=Error Domain=com.apple.idssimualtorsupport.errors Code=2 “The operation couldn’t be completed. (com.apple.idssimualtorsupport.errors error 2.)”
Jun 19 11:35:03 Cans-MBP ids_simd[8377]: (Error) IDSSimulatorSupport: <server.m connectToRemotePort:122> Failed to lookup com.apple.IDSSimRPC.remote service: 1102
Jun 19 11:35:03 Cans-MBP ids_simd[8377]: (Warn ) IDSSimulatorSupport: <IDSSimSupportLocalServer.m -[IDSSimSupportLocalServer _attemptToSendDataDict:]:390> calling completion with success=0, error=Error Domain=com.apple.idssimualtorsupport.errors Code=2 “The operation couldn’t be completed. (com.apple.idssimualtorsupport.errors error 2.)”
Jun 19 11:35:04 Cans-MBP ids_simd[8377]: (Error) IDSSimulatorSupport: <server.m connectToRemotePort:122> Failed to lookup com.apple.IDSSimRPC.remote service: 1102
Jun 19 11:35:04 Cans-MBP ids_simd[8377]: (Warn ) IDSSimulatorSupport: <IDSSimSupportLocalServer.m -[IDSSimSupportLocalServer _attemptToSendDataDict:]:390> calling completion with success=0, error=Error Domain=com.apple.idssimualtorsupport.errors Code=2 “The operation couldn’t be completed. (com.apple.idssimualtorsupport.errors error 2.)”
Jun 19 11:35:04 Cans-MBP sharingd[8361]: 11:35:04.129 : Failed to send SDURLSessionProxy startup message, error Error Domain=com.apple.identityservices.error Code=23 “Timed out” UserInfo=0x7fe009d2e720 {NSLocalizedDescription=Timed out, NSUnderlyingError=0x7fe009d226b0 “The operation couldn’t be completed. (com.apple.ids.idssenderrordomain error 12.)”}
Jun 19 11:39:58 Cans-MBP routined[8349]: CoreLocation: Error occurred while trying to retrieve motion state update: CMErrorDomain Code:104
Jun 19 11:45:14 Cans-MBP assertiond[8363]: assertion failed: 14D136 13A4254u: assertiond + 12715 [C7D6B18F-12A5-38CC-8E63-3C18F4F7D032]: 0x1
Jun 19 11:45:14 — last message repeated 1 time —
Jun 19 11:45:14 Cans-MBP syslogd[8346]: ASL Sender Statistics

Can somebody please help?? Thanks!

Sounds like the pain of running beta software. If you’re running the beta version of xcode, then you’re bound to have some issues. Did you have any issues before without the beta version of xcode installed?

Thanks for getting back to me! I actually never tried the non-beta version, I’m new in the game.
I tried some example project that was quite simple structure, and that one worked. If you think it’s a beta pain, then I’ll check back right here after re-downloading xcode.

Hi @jnahum @mhartington.
I’m having this same issue.
I’ve done:
ionic build ios
ionic emulate ios

and when I open the log i can see the same error, CMErrorDomain 104

The effect is that I can’t use the GPS or any device function (neither send sms for example).

Any ideas?

It was XCode?

My code works on Android and Browser (ionic server). But fails on iOS and I get CMErroDomain 104 appears.

I have bumped into the same issue.
Does any one have any idea?