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 .
Related
command used to build .ipa exp build:ios
expo handled the certificates (distribution and push notification)
device tested on AWS Device farm: iPhone 5, iOS: 10.3.2
Syslog from the device farm
Jan 16 12:34:15 9902472814 SpringBoard(FrontBoard)[57] : Unable
to register for exec notifications: No such process Jan 16 12:34:15
9902472814 SpringBoard(BaseBoard)[57] : Unable to get short BSD
proc info for 344: No such process Jan 16 12:34:15 9902472814
SpringBoard(BaseBoard)[57] : Unable to get proc info for 344:
No such process Jan 16 12:34:15 9902472814 SpringBoard(BaseBoard)[57]
: Unable to obtain a task name port right for pid 344:
(os/kern) failure (0x5) Jan 16 12:34:15 9902472814
SpringBoard(BaseBoard)[57] : Unable to get short BSD proc info
for 344: No such process Jan 16 12:34:15 9902472814
SpringBoard(FrontBoard)[57] : Unable to obtain a process handle
for
Aborting with
error: Error Domain=BSTransactionError Code=3 "Transaction aborted.
(parent transaction)"
UserInfo={transaction=, precipitating-error=Error Domain=BSTransactionError
Code=1 "Transaction failed. Child transaction failed:
(child transaction)"
UserInfo={transaction=, precipitating-error=Error Domain=BSTransactionError
Code=1 "Transaction failed. no client provider for client with
bundleID com.xxxxxxx.mobileapp (scene update failed)"
UserInfo={transaction=,
error-reason=scene update failed, error-description=no client provider
for client with bundleID com.xxxxxxx.mobileapp,
NSLocalizedDescription=Transaction failed. no client provider for
client with bundleID com.xxxxxxx.mobileapp (scene update failed)},
error-reason=child transaction, error-description=Child transaction
failed: : numberOfClients
GyroOnly:, 3AxisDynamicGyro:, 6Axis:,
6AxisThrottledGyro:, 9Axis:,
9AxisWithNorthReference:
App gets installed but doesn’t open. Any leads would be helpful. Thank you.
Since I started working Xcode 8.2 (and 8.3 lately), playgrounds are completely broken for me.
When opening a playground I see the message "Failed to launch process. Error returned in reply: Connection Interrupted"
Complete re-installation of Xcode or removing / re-creating /private/tmp folder (as suggested by some other posts) did not help.
Did someone encounter a similar problem? Are there other known work-arounds?
(http://www.openradar.me/31296836)
Here is some sample output from CoreSimulator.log
Mar 28 16:19:30 sergey-macbook com.apple.dt.Xcode[6955] <Error>: Error Domain=NSPOSIXErrorDomain Code=53 "Software caused connection abort" UserInfo={NSLocalizedDescription=Error returned in reply: Connection interrupted}
Mar 28 16:19:30 sergey-macbook com.apple.dt.Xcode[6955] <Error>: Error looking up host support port: Error Domain=NSPOSIXErrorDomain Code=53 "Software caused connection abort" UserInfo={NSLocalizedDescription=Error returned in reply: Connection interrupted}
Mar 28 16:19:30 sergey-macbook com.apple.dt.Xcode[6955] <Error>: Error Domain=NSPOSIXErrorDomain Code=53 "Software caused connection abort" UserInfo={NSLocalizedDescription=Error returned in reply: Connection interrupted}
Mar 28 16:19:30 sergey-macbook com.apple.dt.Xcode[6955] <Error>: Error looking up host support port: Error Domain=NSPOSIXErrorDomain Code=53 "Software caused connection abort" UserInfo={NSLocalizedDescription=Error returned in reply: Connection interrupted}
Mar 28 16:19:30 sergey-macbook com.apple.dt.Xcode[6955] <Error>: Error Domain=NSPOSIXErrorDomain Code=53 "Software caused connection abort" UserInfo={NSLocalizedDescription=Error returned in reply: Connection interrupted}
Mar 28 16:19:30 sergey-macbook com.apple.dt.Xcode[6955] <Error>: Error looking up host support port: Error Domain=NSPOSIXErrorDomain Code=53 "Software caused connection abort" UserInfo={NSLocalizedDescription=Error returned in reply: Connection interrupted}
Mar 28 16:19:40 sergey-macbook CoreSimulatorService[5859] <Error>: Error Domain=com.apple.CoreSimulator.SimError Code=163 "Unable to lookup in current state: Shutting Down" UserInfo={NSLocalizedDescription=Unable to lookup in current state: Shutting Down}
Mar 28 16:19:40 sergey-macbook CoreSimulatorService[5859] <Error>: Error from finding pasteboard support port, Error Domain=com.apple.CoreSimulator.SimError Code=163 "Unable to lookup in current state: Shutting Down" UserInfo={NSLocalizedDescription=Unable to lookup in current state: Shutting Down}
Mar 28 16:19:40 sergey-macbook CoreSimulatorService[5859] <Error>: Error Domain=com.apple.CoreSimulator.SimError Code=163 "Unable to lookup in current state: Shutting Down" UserInfo={NSLocalizedDescription=Unable to lookup in current state: Shutting Down}
Mar 28 16:19:40 sergey-macbook CoreSimulatorService[5859] <Error>: Error Domain=com.apple.CoreSimulator.SimError Code=163 "Unable to lookup in current state: Shutting Down" UserInfo={NSLocalizedDescription=Unable to lookup in current state: Shutting Down}
Mar 28 16:19:40 sergey-macbook com.apple.dt.Xcode[6955] <Error>: Error Domain=NSPOSIXErrorDomain Code=53 "Software caused connection abort" UserInfo={NSLocalizedDescription=Error returned in reply: Connection interrupted}
Mar 28 16:19:40 sergey-macbook com.apple.dt.Xcode[6955] <Error>: Error from finding pasteboard support port, Error Domain=NSPOSIXErrorDomain Code=53 "Software caused connection abort" UserInfo={NSLocalizedDescription=Error returned in reply: Connection interrupted}
Note by the creator of Timing: this issue no longer occurs as of Timing 1.8.1 and Timing 2.0.
iOS playgrounds work ok in Xcode 8.3.x on my MacBook, but I got the launching simulator errors on my MBP. The MacBook is for travelling, so has a minimal set of apps. In particular, it has fewer app icons in the status menu bar.
So on my MBP, I quit all of those that aren't on the MB, and hey presto, playgrounds ran! I started the apps one by one, and it was Timing that brought back the launching simulator error — closing the menu bar icon fixed it again, even though Timing app itself was still running.
Not picking on Timing especially; could be any quick-access app in your menu bar.
Before this, I had reinstalled Sierra, but not a clean install. That would've been the next step.
workaround provided by an engineer at apple
run below command in terminal after quitting Xcode
defaults write com.apple.dt.xcode IDEPlaygroundDisableSimulatorAlternateFramebuffer -bool YES
Have you tried deleting your derived data via XCode?
Shift+Alt+Command+K
OR the fastest way is open terminal and past the following:
rm -rf ~/Library/Developer/Xcode/DerivedData
Also ensure that there are no simulators or other versions of a playground running in the background.
(Unfortunately) I solved the problem by clean installing macOS (which is not the proper way of solving it, of course, but I needed to get playgrounds to work ASAP).
tl;dr My problems went away after checking if all simulators were installed (in Xcode Settings > Components), closing all projects which were heavily using IBDesignable and restarting the playground.
I don't know if this helps in any way but might as well post it;
The first thing I checked was if I had all iOS simulators installed in Xcode. Surprisingly updating to Xcode 8.3 also removed my iOS 10.0 simulator; reinstalled the simulator and reopened Xcode.
Afterwards did a search on google and found a similar question.
After reading the question I remembered I had an other project open in which I was heavily using IBDesignable for testing purposes. Closing this project and restarting the playground solved my problems.
This might have had nothing to do with the playgrounds, but it did fixed my problems.
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!
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?
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