This week I cannot boot my Simulator, I tried several solutions from some articles, but it doesn't work. My MacOS version is OS X 10.10.5 (14F27), and my Simulator is iOS 8.4.
I grabbed the log from ~/Library/Logs/CoreSimulator/CoreSimulator.log
Aug 27 11:29:14 LL-MBP.local CoreSimulatorService[8316] : Could
not register service com.apple.SystemConfiguration.PPPController:
launch_sim_register_endpoint: 0xfffffecc Aug 27 11:29:14 LL-MBP.local
CoreSimulatorService[8316] : Could not register service
com.apple.audio.audiohald: launch_sim_register_endpoint: 0x44e Aug 27
11:29:14 LL-MBP.local CoreSimulatorService[8316] : Could not
register service
com.apple.coreservices.lsuseractivity.simulatorsupport:
launch_sim_register_endpoint: 0x44e Aug 27 11:29:14 LL-MBP.local
CoreSimulatorService[8316] : Could not register service
com.apple.FSEvents: launch_sim_register_endpoint: 0x44e Aug 27
11:29:14 LL-MBP.local CoreSimulatorService[8316] : Could not
register service com.apple.SystemConfiguration.configd:
launch_sim_register_endpoint: 0x44e Aug 27 11:29:14 LL-MBP.local
CoreSimulatorService[8316] : Could not register service
IndigoHIDRegistrationPort: launch_sim_register_endpoint: 0x44e Aug 27
11:29:14 LL-MBP.local CoreSimulatorService[8316] : Could not
register service PurpleFBTVOutServer: launch_sim_register_endpoint:
0x44e Aug 27 11:29:14 LL-MBP.local CoreSimulatorService[8316] :
Could not register service PurpleFBServer:
launch_sim_register_endpoint: 0x44e Aug 27 11:29:14 LL-MBP.local
CoreSimulatorService[8316] : Error Domain=NSPOSIXErrorDomain
Code=60 "Unable to boot the iOS Simulator." UserInfo=0x7fbb204683f0
{NSLocalizedDescription=Unable to boot the iOS Simulator.,
NSLocalizedFailureReason=launchd failed to respond.} Aug 27 11:29:14
LL-MBP.local CoreSimulatorService[8316] : Error
Domain=NSPOSIXErrorDomain Code=60 "Unable to boot the iOS Simulator."
UserInfo=0x7fbb204683f0 {NSLocalizedDescription=Unable to boot the iOS
Simulator., NSLocalizedFailureReason=launchd failed to respond.} Aug
27 11:29:14 LL-MBP.local CoreSimulatorService[8316] : Error
Domain=com.apple.CoreSimulator.SimError Code=146 "Unable to lookup in
current state: Shutdown" UserInfo=0x7fbb20808710
{NSLocalizedDescription=Unable to lookup in current state: Shutdown}
Aug 27 11:29:14 LL-MBP.local CoreSimulatorService[8316] : Error
looking up host support port Aug 27 11:29:14 LL-MBP.local
CoreSimulatorService[8316] : Error
Domain=com.apple.CoreSimulator.SimError Code=146 "Invalid device
state" UserInfo=0x7fbb2083b420 {NSLocalizedDescription=Invalid device
state} Aug 27 11:29:14 LL-MBP.local CoreSimulatorService[8316]
: Error Domain=com.apple.CoreSimulator.SimError Code=146
"Unable to lookup in current state: Shutdown" UserInfo=0x7fbb2080c350
{NSLocalizedDescription=Unable to lookup in current state: Shutdown}
Aug 27 11:29:14 LL-MBP.local CoreSimulatorService[8316] : Error
Domain=com.apple.CoreSimulator.SimError Code=146 "Unable to lookup in
current state: Shutdown" UserInfo=0x7fbb2080c350
{NSLocalizedDescription=Unable to lookup in current state: Shutdown}
Aug 27 11:29:14 LL-MBP.local com.apple.iphonesimulator[8330] :
Error Domain=NSPOSIXErrorDomain Code=60 "Unable to boot the iOS
Simulator." UserInfo=0x7fda2a9020f0 {NSLocalizedDescription=Unable to
boot the iOS Simulator., NSLocalizedFailureReason=launchd failed to
respond.} Aug 27 11:29:14 LL-MBP.local CoreSimulatorService[8316]
: Error Domain=com.apple.CoreSimulator.SimError Code=146
"Unable to lookup in current state: Shutdown" UserInfo=0x7fbb20b0f850
{NSLocalizedDescription=Unable to lookup in current state: Shutdown}
Aug 27 11:29:14 LL-MBP.local CoreSimulatorService[8316] : Error
looking up host support port Aug 27 11:29:14 LL-MBP.local
CoreSimulatorService[8316] : Error
Domain=com.apple.CoreSimulator.SimError Code=146 "Invalid device
state" UserInfo=0x7fbb20b00e20 {NSLocalizedDescription=Invalid device
state}
Does someone have any idea about this?
I will appreciate it!
Finally I fixed this issue with #Jeremy Huddleston Sequoia 's help. At the beginning, I tried lots of solutions online, including remove /private/tmp folder. so that caused no matter how many times I clean reinstall simulator, it doesn't work. so be careful about this
Those errors indicate that launchd_sim is not loaded or not running, and the watchdog fired to notify you of the failure.
If you disable AMFI in OS X 10.10.5, the Simulator runtime will be unusable, and it can manifest like this.
However, in your case, launchd_sim is crashing on launch. The crash log indicates that it is encountering an error when trying to create its state directory in /private/tmp.
This can happen you deleted /private/tmp (or incorrectly recreated it). To create /private/tmp do:
sudo mkdir /private/tmp
sudo chmod 1777 /private/tmp
Related
Almost every time I try to run my SiriKit Extension, I get "Sorry, you'll need to continue in the app" along with "Could not attach to pid : '####'" on Xcode. I have Siri capability enabled. Weirdly, 1 out of 10 times when I clean and rebuild, the extension works. Does anyone know how to deal with this?
Edit:
In console.app I'm getting this:
Aug 15 11:43:43 iPhone assistantd(PlugInKit)[12442] <Info>: preparing plug-in <private>(<private>)
Aug 15 11:43:43 iPhone assistantd(PlugInKit)[12442] <Notice>: connection to plug-in <private>(0DDA43D4-A588-4478-8405-C219EAA7F591) lost
Aug 15 11:43:43 iPhone assistantd(PlugInKit)[12442] <Error>: Hub connection error Error Domain=NSCocoaErrorDomain Code=4097 "connection to service named com.appID.SiriKitExtension" UserInfo={NSDebugDescription=connection to service named com.appID.SiriKitExtension}
Aug 15 11:43:43 iPhone assistantd(PlugInKit)[12442] <Info>: beginUsing of 0DDA43D4-A588-4478-8405-C219EAA7F591 concludes with error=Error Domain=NSCocoaErrorDomain Code=4097 "connection to service named com.appID.SiriKitExtension" UserInfo={NSDebugDescription=connection to service named com.appID.SiriKitExtension}
Aug 15 11:43:43 iPhone assistantd(Foundation)[12442] <Notice>: PlugInKit error in beginUsing:
Aug 15 11:43:43 iPhone assistantd[12442] <Error>: __52-[ADExtensionService handleCommand:forDomain:reply:]_block_invoke_2.154 Error with extension request Error Domain=NSCocoaErrorDomain Code=4097 "connection to service named com.appID.SiriKitExtension" UserInfo={NSDebugDescription=connection to service named com.appID.SiriKitExtension}
Aug 15 11:43:43 iPhone assistantd(Foundation)[12442] <Notice>: killing invalid plugIn
Aug 15 11:43:43 iPhone assistantd[12442] <Error>: -[ADCommandCenter _handleServiceReply:error:forCommand:] Handling service error Error Domain=kAFAssistantErrorDomain Code=1301 "(null)" UserInfo={NSUnderlyingError=0x1005d1eb0 {Error Domain=NSCocoaErrorDomain Code=4097 "connection to service named com.appID.SiriKitExtension" UserInfo={NSDebugDescription=connection to service named com.appID.SiriKitExtension}}} for command <private>
Fixed the problem after weeks of debugging.
My problem was that SiriKit was running on armv7 architecture. Changing it to arm64 or the default setting of armv7 + arm64 will fix this problem.
I hope this helps someone!
The Xcode simulator disconnects from Xcode which will no longer show information in the console of Xcode. Xcode then provided the following error: "DTAssetProviderService could not start DTXConnection with Simulator 'iPhone 6'. Check the system log for errors."
I've tried quitting and restarting both the simulator and Xcode but still no luck. Here are the system log errors:
Jun 25 15:49:34 --- last message repeated 1 time ---
Jun 25 15:49:34 Laurences-MBP diagnosticd[8123]: System mode client started - Console (8117) - mode: 0x8
Jun 25 15:49:48 Laurences-MBP sandboxd[10550] ([318]): useractivityd(318) deny mach-lookup com.apple.PowerManagement.control
Jun 25 15:49:53 --- last message repeated 1 time ---
Jun 25 15:49:53 Laurences-MBP cloudd[10528]: notify name "com.apple.cloudkit.pcs.flushCaches" has been registered 20 times - this may be a leak
Jun 25 15:50:05 Laurences-MBP sandboxd[10550] ([318]): useractivityd(318) deny mach-lookup com.apple.PowerManagement.control
Jun 25 15:50:05 Laurences-MBP syslogd[47]: ASL Sender Statistics
Jun 25 15:50:08 Laurences-MBP sandboxd[10550] ([318]): useractivityd(318) deny mach-lookup com.apple.PowerManagement.control
Jun 25 15:50:11 Laurences-MBP diagnosticd[8123]: System mode client started - Console (8117) - mode: 0x8
Jun 25 15:50:44 Laurences-MBP sandboxd[10550] ([10647]): lsd(10647) System Policy: deny system-privilege 1013
Jun 25 15:51:00 --- last message repeated 1 time ---
Jun 25 15:51:00 Laurences-MBP DTServiceHub[10677]: DTServiceHub[10677]: [error] 'mach_msg_send' failed: (ipc/send) invalid destination port (268435459)
Jun 25 15:51:09 Laurences-MBP Xcode[7692]: Xcode[7692]: [error] 'mach_msg_send' failed: (ipc/send) invalid destination port (268435459)
Jun 25 15:51:09 Laurences-MBP Xcode[7692]: +[DTServiceHubClient localConnectionWithAuthorization:returningServerPid:]: failed to establish connection with DTServiceHub service '/Applications/Xcode.app/Contents/SharedFrameworks/DVTInstrumentsFoundation.framework/Resources/DTServiceHub'
Jun 25 15:51:09 Laurences-MBP Xcode[7692]: Xcode[7692]: [error] 'mach_msg_send' failed: (ipc/send) invalid destination port (268435459)
You're using Xcode 7.3.1 on macOS Sierra Beta which is not supported. This question has been discussed in more detail in XCode "DTAssetProviderService could not start.." error, How fix this?
Use Xcode 8 beta or Xcode 7.3.1 the .dmg image downloaded from the Developer Portal https://developer.apple.com/download/more/ which doesn't exhibit this problem like the Mac App Store version.
I have tried using both xcode simulator and install the .ipa file directly to the device (through iTunes) and got the connection error. This is the detail:
Mar 27 20:33:30 --- last message repeated 5 times ---
Mar 27 20:33:30 myMBPro Inspection[10213]: ERROR: {"textMsg":"Your user name and password could not be validated. Connect to the server and try again."}
Mar 27 20:33:30 myMBPro Inspection[10213]: nw_interface_create_with_index refusing to create an interface with index 4294967295 too high (>=2147483647)
Mar 27 20:33:30 myMBPro Inspection[10213]: CFNetwork SSLHandshake failed (-9806)
Mar 27 20:33:30 myMBPro Inspection[10213]: NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9806)
Mar 27 20:33:30 myMBPro Inspection[10213]: Cancel processing requested
Mar 27 20:33:31 myMBPro Inspection[10213]: ERROR: {"invocationContext":null,"errorCode":"UNRESPONSIVE_HOST","errorMsg":"The service is currently not available."}
I did install SSL on the app server that hosts Appcenter & MaximoAnywhere (https://maximodev:9443/MaximoAnywhere https://maximodev:9443/appcenteradmin/installers.html)
I follow this IBM documentation:
www.ibm.com/support/knowledgecenter/#!/SSHS8R_6.3.0/com.ibm.worklight.appadmin.doc/appcenter/t_installing_the_client_on_a_ios_mob.html
Is there any other configuration files need to be set?
Thanks!
I suspect your device doesn't trust the certificate that you're using on the MobileFirst server. Can you check your certificate trust list on the iOS device?
Running an Ionic app that works fine on browser and used to work on Xcode simulator and iPhones. I'm watching the log file and something strange is happening.
Once I hit 'Login' on my app, it freezes and here is the output:
Mar 12 15:03:21 C02QJA6VG8WP SpringBoard[37882]: Weekly asset update check did fire (force=NO)
Mar 12 15:03:21 C02QJA6VG8WP SpringBoard[37882]: Beginning check for asset updates (force: 0
Mar 12 15:03:21 C02QJA6VG8WP SpringBoard[37882]: Did not complete check for asset updates (force: 0, isVoiceOverRunning: 0
Mar 12 15:03:22 C02QJA6VG8WP assertiond[37886]: assertion failed: 14F1605 13C75: assertiond + 12188 [8CF1968D-3466-38B7-B225-3F6F5B64C552]: 0x1
Mar 12 15:03:23 --- last message repeated 3 times ---
Mar 12 15:03:23 C02QJA6VG8WP kbd[37935]: table drop: 101
Mar 12 15:03:31 C02QJA6VG8WP assertiond[37886]: assertion failed: 14F1605 13C75: assertiond + 12188 [8CF1968D-3466-38B7-B225-3F6F5B64C552]: 0x1
Mar 12 15:03:31 --- last message repeated 4 times ---
Mar 12 15:03:31 C02QJA6VG8WP assertiond[37886]: Could not create or rename power assertion for <BKNewProcess: 0x7fd0bac01930; com.ionicframework.sameboat491544; pid: 37934; hostpid: -1>: 0xe00002c9
Mar 12 15:03:31 C02QJA6VG8WP assertiond[37886]: assertion failed: 14F1605 13C75: assertiond + 12188 [8CF1968D-3466-38B7-B225-3F6F5B64C552]: 0x1
Mar 12 15:03:40 C02QJA6VG8WP lsd[37908]: LaunchServices: Currently 0 installed placeholders: (
)
Mar 12 15:03:53 C02QJA6VG8WP mstreamd[37871]: (Note ) PS: Media stream daemon stopping.
Mar 12 15:03:53 C02QJA6VG8WP mstreamd[37871]: (Note ) AS: <MSIOSAlbumSharingDaemon: 0x7f9c42f07b20>: Shared Streams daemon has shut down.
Mar 12 15:03:53 C02QJA6VG8WP mstreamd[37871]: (Warn ) mstreamd: mstreamd shutting down.
Mar 12 15:04:11 C02QJA6VG8WP ids_simd[37874]: (Error) IDSSimulatorSupport: <IDSSimSupportLocalServer.m __68-[IDSSimSupportLocalServer setNetworkSimulation:enabled:completion:]_block_invoke:561> 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 "(null)" UserInfo={NSUnderlyingError=0x7fc34e2027e0 {Error Domain=NSMachErrorDomain Code=268435459 "(ipc/send) invalid destination port"}}
Mar 12 15:04:11 C02QJA6VG8WP companionappd[37879]: (Error) WatchKit: <SPTransport.m __67-[SPTransport service:account:identifier:didSendWithSuccess:error:]_block_invoke:430> __67-[SPTransport service:account:identifier:didSendWithSuccess:error:]_block_invoke identifier (B67A5D73-36B1-4B1C-B7EF-952300B137C6), serviceName ((null)), success: 0 error, domain: com.apple.identityservices.error, code: 23
Mar 12 15:04:11 C02QJA6VG8WP companionappd[37879]: (Error) WatchKit: <SPCompanionAppServer.m __75-[SPCompanionAppServer sendProtobuf:sender:timeOut:allowInsecureTransport:]_block_invoke:900> sendProtobuf failed, error : Error Domain=com.apple.identityservices.error Code=23 "Timed out" UserInfo={NSLocalizedDescription=Timed out, NSUnderlyingError=0x7fd5722058e0 {Error Domain=com.apple.ids.idssenderrordomain Code=12 "(null)"}}
Mar 12 15:04:11 C02QJA6VG8WP sharingd[37884]: 15:04:11.601 : Failed to send SDURLSessionProxy startup message, error Error Domain=com.apple.identityservices.error Code=23 "Timed out" UserInfo={NSLocalizedDescription=Timed out, NSUnderlyingError=0x7feb4c913460 {Error Domain=com.apple.ids.idssenderrordomain Code=12 "(null)"}}
Mar 12 15:04:11 C02QJA6VG8WP companionappd[37879]: (Error) WatchKit: <SPTransport.m __67-[SPTransport service:account:identifier:didSendWithSuccess:error:]_block_invoke:430> __67-[SPTransport service:account:identifier:didSendWithSuccess:error:]_block_invoke identifier (E24D19D0-9B54-4A4A-8261-0E12C329B3D9), serviceName ((null)), success: 0 error, domain: com.apple.identityservices.error, code: 23
Mar 12 15:04:11 C02QJA6VG8WP companionappd[37879]: (Error) WatchKit: <SPCompanionAppServer.m __75-[SPCompanionAppServer sendProtobuf:sender:timeOut:allowInsecureTransport:]_block_invoke:900> sendProtobuf failed, error : Error Domain=com.apple.identityservices.error Code=23 "Timed out" UserInfo={NSLocalizedDescription=Timed out, NSUnderlyingError=0x7fd572205490 {Error Domain=com.apple.ids.idssenderrordomain Code=12 "(null)"}}
Any help would be greatly appreciated.
Turns out the Cordova plugin I was using is not compatible with the latest version of cordova-ios. I had to manually remove my platforms/ios directory and recreate it.
ionic platform add ios#3.9.2
ionic build ios
The plugin I was using was https://github.com/Telerik-Verified-Plugins/NativePageTransitions
I have upgraded few of my macminis to El Capitan 10.11.2 and installed Xcode 7.1. But iOS Simulator is showing some problem. Like, default iOS of Xcode 7.1 is 9.1 and when i launch any device in iOS simulator from SDK 9.1, it just shows me a black screen.
So to check that, i went to Xcode > Preferences and Downloaded SDK 9.0 and 8.4. When i switch to any device from SDK 9.0 or 8.4, they work fine. But i don't know what is going on with its default SDK 9.1.
I tried below of the stuff to troubleshoot the issue.
Reinstall Xcode.
Reset Device contents.
Removed Devices folders and created devices again under SDK 9.1.
Deleted and re-created /private/tmp/ with correct permissions.
Some more.
None of them worked.
I have pasted some logs of CoreSimulator.log fine when i switch to any device under SDK 9.1.
CoreSimulator.log
Jan 10 21:45:21 CoreSimulatorService[331] : Error looking up host support port
Jan 10 21:45:21 CoreSimulatorService[331] : Error Domain=com.apple.CoreSimulator.SimError Code=159 "Invalid device state" UserInfo={NSLocalizedDescription=Invalid device state}
Jan 10 21:45:21 CoreSimulatorService[331] : Error Domain=NSPOSIXErrorDomain Code=3 "No such process"
Jan 10 21:45:21 CoreSimulatorService[331] : Error looking up host support port
Jan 10 21:45:21 CoreSimulatorService[331] : Error Domain=com.apple.CoreSimulator.SimError Code=159 "Invalid device state" UserInfo={NSLocalizedDescription=Invalid device state}
Jan 10 21:45:21 CoreSimulatorService[331] : Error Domain=NSPOSIXErrorDomain Code=3 "No such process"
Jan 10 21:45:21 CoreSimulatorService[331] : Error Domain=NSPOSIXErrorDomain Code=3 "No such process"
Jan 10 21:45:21 CoreSimulatorService[331] : Error Domain=NSPOSIXErrorDomain Code=3 "No such process"
Jan 10 21:45:21 CoreSimulatorService[331] : Error Domain=NSPOSIXErrorDomain Code=3 "No such process"
Jan 10 21:45:21 com.apple.iphonesimulator[447] : Error looking up host support port
Jan 10 21:45:21 com.apple.iphonesimulator[447] : Error looking up host support port
Jan 10 21:45:21 com.apple.iphonesimulator[447] : Error looking up host support port
Simulator.log File
Jan 10 20:56:58 Simulator[381] : Error communicating with SimulatorBridge: NSObjectNotAvailableException - Unable to connect to SimulatorBridge
Jan 10 20:56:58 Simulator[381] : Error communicating with SimulatorBridge: NSObjectNotAvailableException - Unable to connect to SimulatorBridge
Jan 10 20:59:39 Simulator[416] : Error communicating with SimulatorBridge: NSObjectNotAvailableException - Unable to connect to SimulatorBridge
Jan 10 20:59:39 Simulator[416] : Error communicating with SimulatorBridge: NSObjectNotAvailableException - Unable to connect to SimulatorBridge
Jan 10 21:00:21 Simulator[429] : Error communicating with SimulatorBridge: NSObjectNotAvailableException - Unable to connect to SimulatorBridge
Jan 10 21:00:21 Simulator[429] : Error communicating with SimulatorBridge: NSObjectNotAvailableException - Unable to connect to SimulatorBridge
Jan 10 21:02:45 Simulator[447] : Error communicating with SimulatorBridge: NSObjectNotAvailableException - Unable to connect to SimulatorBridge
Jan 10 21:02:45 Simulator[447] : Error communicating with SimulatorBridge: NSObjectNotAvailableException - Unable to connect to SimulatorBridge
Jan 10 21:14:06 Simulator[447] : Error communicating with SimulatorBridge: NSObjectNotAvailableException - Unable to connect to SimulatorBridge
Jan 10 21:14:06 Simulator[447] : Error communicating with SimulatorBridge: NSObjectNotAvailableException - Unable to connect to SimulatorBridge
Jan 10 21:45:21 Simulator[447] : Error communicating with SimulatorBridge: NSObjectNotAvailableException - Unable to connect to SimulatorBridge
Jan 10 21:45:21 Simulator[447] : Error communicating with SimulatorBridge: NSObjectNotAvailableException - Unable to connect to SimulatorBridge
Quit the xcode and kill the pid also and also close and quit the simulator.
Again lunch the xcode and go to window-->divices--> remove all the device and add it agin it will works .