I using MacOSX 10.9.3 Maverick, xcode 5.1.1 . I try to launch app in simulator, but happen black screen and close xcode. This is notice:
Process: Xcode [625]
Path: /Applications/Xcode.app/Contents/MacOS/Xcode
Identifier: com.apple.dt.Xcode
Version: 5.1.1 (5085)
Build Info: IDEFrameworks-5085000000000000~10
App Item ID: 497799835
App External ID: 520942841
Code Type: X86-64 (Native)
Parent Process: launchd [151]
Responsible: Xcode [625]
User ID: 501
Date/Time: 2014-05-19 09:43:47.454 +0700
OS Version: Mac OS X 10.9.3 (13D65)
Report Version: 11
Anonymous UUID: 9C94CD1D-3B3C-6A87-75C0-B9FADF7F71B3
Crashed Thread: 7 Dispatch queue: DBGLLDBLauncher Serial Queue
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Application Specific Information:
ProductBuildVersion: 5B1008
Assertion failed: (out_port != 0), function StartDebugserverProcess, file /SourceCache/lldb/lldb-310.2.37/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp, line 720.
Thread 0:: Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib 0x00007fff885c9a1a mach_msg_trap + 10
1 libsystem_kernel.dylib 0x00007fff885c8d18 mach_msg + 64
2 com.apple.CoreFoundation 0x00007fff86bdafc5 __CFRunLoopServiceMachPort + 181
3 com.apple.CoreFoundation 0x00007fff86bda5e9 __CFRunLoopRun + 1161
4 com.apple.CoreFoundation 0x00007fff86bd9f25 CFRunLoopRunSpecific + 309
5 com.apple.HIToolbox 0x00007fff8b588a0d RunCurrentEventLoopInMode + 226
...
How to fix it ?
A solution and a workaround to avoid this issue:
Option A (solution)- Ensure your /etc/hosts file contains this entry:
127.0.0.1 localhost
Option B (workaround)- If you really must have 127.0.0.1 mapped differently, eg I happened to be also doing some Facebook API testing that required it set to local.mysite.com, disabling the Xcode debugger:
Product -> Scheme -> Edit Scheme -> Debugger -> None
will also resolve this.
Issue may be caused by another application which removed hosts file, for example MAMP PRO
Recreate hosts file
##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting. Do not change this entry.
##
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost
fe80::1%lo0 localhost
Related
Crash log from testflight. can't reproduce in debug mode. Haven't changed anything near startup recently that I can think of. did update visual studio recently, which is always risky. Any ideas on where to look? I'm currently at a loss.
Incident Identifier: A16565BD-14CB-422F-8201-1F83E62D0636
Beta Identifier: 9AC85708-52C8-4855-9C08-F86429C52CA2
Hardware Model: iPhone11,6
Process: app [47469]
Path: /private/var/containers/Bundle/Application/DEBBDCD7-7D27-4B7D-AB2E-22D5C399BA37/app/app
Identifier:
Version: 2 (2.6.3)
AppStoreTools: 11C29
AppVariant: 1:iPhone11,6:13
Beta: YES
Code Type: ARM-64 (Native)
Role: Foreground
Parent Process: launchd [1]
Coalition:
Date/Time: 2019-12-13 12:32:17.7284 -0600
Launch Time: 2019-12-13 12:32:17.1647 -0600
OS Version: iPhone OS 13.2.3 (17B111)
Release Type: User
Baseband Version: 2.02.12
Report Version: 104
Exception Type: EXC_BAD_ACCESS (SIGABRT)
Exception Subtype: KERN_INVALID_ADDRESS at 0x0000000000000000
VM Region Info: 0 is not in any region. Bytes before following region: 4295278592
REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL
UNUSED SPACE AT START
--->
__TEXT 000000010004c000-0000000100164000 [ 1120K] r-x/r-x SM=COW ...toGrindersiOS
Triggered by Thread: 0
Thread 0 name:
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x00000001a094eefc __pthread_kill + 8
1 libsystem_pthread.dylib 0x00000001a086ed10 pthread_kill + 196 (pthread.c:1456)
2 libsystem_c.dylib 0x00000001a07feaf4 __abort + 116 (abort.c:147)
3 libsystem_c.dylib 0x00000001a07fea80 abort + 116 (abort.c:118)
4 appname 0x0000000101a38ca0 xamarin_initialize.cold.1 + 0
5 appname 0x0000000101a2ef54 xamarin_printf + 27144020 (runtime.m:2541)
6 appname 0x00000001018f8ad8 mono_invoke_unhandled_exception_hook + 132
7 appname 0x000000010188d68c mono_handle_exception_internal + 5580
8 appname 0x000000010188c0b4 mono_handle_exception + 56
9 appname 0x0000000101881c2c mono_arm_throw_exception + 376
10 appname 0x000000010043433c throw_exception + 172
11 appname 0x00000001019686a8 mono_raise_exception + 64
12 appname 0x0000000101a2ed6c xamarin_process_managed_exception + 27143532 (runtime.m:2497)
13 appname 0x0000000101a2f458 xamarin_initialize + 27145304 (runtime.m:979)
14 appname 0x0000000101a360e4 xamarin_main + 27173092 (monotouch-main.m:432)
15 appname 0x0000000100165878 main + 1153144 (main.m:142)
16 libdyld.dylib 0x00000001a0958e18 start + 4
For future me or anyone that runs into something similar, I solved this with some framework updates/downgrades. I haven't narrowed it down to the exact issue because i did several at once based on what the project was asking for and past experience.
The main change I made that I think is the most likely culprit was a downgrade of Xamarin.Build.Download to 0.4.11. Sorry I can't be more helpful.
I upgrade my iPhone 11 Pro Max from iOS 13.1.3 to iOS 13.2, and then I try to ran app on my iPhone, but everytime Xcode(11.1) crashed. Here is the log:
Process: Xcode [1358]
Path: /Applications/Xcode.app/Contents/MacOS/Xcode
Identifier: com.apple.dt.Xcode
Version: 11.1 (15405)
Build Info: IDEFrameworks-15405000000000000~13 (11A1027)
App Item ID: 497799835
App External ID: 832925179
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: Xcode [1358]
User ID: 501
Date/Time: 2019-10-30 16:56:32.317 +0800
OS Version: Mac OS X 10.15.1 (19B88)
Report Version: 12
Bridge OS Version: 4.1 (17P1081)
Anonymous UUID: XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
Time Awake Since Boot: 6100 seconds
System Integrity Protection: enabled
Crashed Thread: 7 Dispatch queue: Mutex to protect _hasPerformedWorkerAction
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Application Specific Information:
ProductBuildVersion: 11A1027
UNCAUGHT EXCEPTION (NSInternalInconsistencyException): Invalid parameter not satisfying: aString != nil
UserInfo: (null)
Hints:
0: Calling block provided to DVTSyncPerformBlock() here:
0 DVTSyncPerformBlock (in DVTFoundation)
1 -[IDEExecutionRunnableTracker executionWantsHold:withError:] (in IDEFoundation)
2 -[IDERunOperationWorker _startWithRetrying:] (in IDEFoundation)
3 __44-[IDERunOperationWorker _startWithRetrying:]_block_invoke_3 (in IDEFoundation)
4 __48-[DVTDispatchLock_Recursive performLockedBlock:]_block_invoke (in DVTFoundation)
5 _dispatch_client_callout (in libdispatch.dylib)
6 _dispatch_lane_barrier_sync_invoke_and_complete (in libdispatch.dylib)
7 DVTDispatchBarrierSync (in DVTFoundation)
8 -[DVTDispatchLock performLockedBlock:] (in DVTFoundation)
9 -[DVTDispatchLock_Recursive performLockedBlock:] (in DVTFoundation)
10 __44-[IDERunOperationWorker _startWithRetrying:]_block_invoke_2 (in IDEFoundation)
11 __DVT_CALLING_CLIENT_BLOCK__ (in DVTFoundation)
12 __DVTDispatchAfter_block_invoke (in DVTFoundation)
13 _dispatch_client_callout (in libdispatch.dylib)
And I ran same project on another iPhone(iPhone 6s Plus, iOS 13.2), it works well... I don't know why. Is there something wrong with my iPhone 11 Pro Max?
How can I solve this problem...Who can help me?
Thanks.
Finally I was able to get my iPhone 11 / iOS 13.3 / Xcode 11.1 (/Applications/Xcode.app) debug runnning by:
Installing Xcode 11.3.1 #
/Applications/Xcode11.3.1.app/
Copying /Applications/Xcode11.3.1.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/13.2 into /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/13.2
Making a copy of /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/13.2 to /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/13.3
This is a fairly standard practice xcode device support for 11.3 15E5216a
The thing is only using this particular 13.2 from Xcode 11.3.1 as 13.3 "imposter" was good enough in my case.
I need to install old version of Xcode on Yosemite. Xcode 5 installed perfectly but I am facing problem with Xcode 4. It crashes, these are the errors:
Process: Xcode [4341]
Path: /Applications/Xcode 3.app/Contents/MacOS/Xcode
Identifier: com.apple.dt.Xcode
Version: 4.6.3 (2068)
Build Info: IDEApplication-2068000000000000~3
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: Xcode [4341]
User ID: 501
OS Version: Mac OS X 10.10 (14A389)
Report Version: 11
Anonymous UUID: 5F18251C-5B88-768B-7023-12B7B510FD63
Time Awake Since Boot: 13000 seconds
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Application Specific Information:
ProductBuildVersion: 4H1503
UNCAUGHT EXCEPTION (NSInternalInconsistencyException): Error getting value for key 'delegateClass' of extension 'Xcode.OrganizerSource.ArchivedApplications.ArchiveListContextualMenu' in plug-in 'com.apple.dt.IDE.IDEArchivedApplicationsViewer'
UserInfo: {
NSUnderlyingError = "Error Domain=DVTPlugInErrorDomain Code=2 \"Loading a plug-in failed.\" UserInfo=0x4016afbe0 {DVTPlugInIdentifierErrorKey=com.apple.dt.IDE.IDEiPhoneSupport, DVTPlugInExecutablePathErrorKey=/Applications/Xcode 3.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcode/PrivatePlugIns/IDEiPhoneSupport.ideplugin/Contents/MacOS/IDEiPhoneSupport, NSLocalizedRecoverySuggestion=The plug-in or one of its prerequisite plug-ins may be missing or damaged and may need to be reinstalled., NSLocalizedDescription=Loading a plug-in failed., NSFilePath=/Applications/Xcode 3.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcode/PrivatePlugIns/IDEiPhoneSupport.ideplugin, NSLocalizedFailureReason=The plug-in \U201ccom.apple.dt.IDE.IDEiPhoneSupport\U201d at path \U201c/Applications/Xcode 3.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcode/PrivatePlugIns/IDEiPhoneSupport.ideplugin\U201d could not be loaded. The plug-in or one of its prerequisite plug-ins may be missing or damaged., NSUnderlyingError=0x40033a480 \"The bundle \U201cIDEiPhoneSupport\U201d couldn\U2019t be loaded because it is damaged or missing necessary resources.\"}";
}
Hints: None
Backtrace:
0 0x00007fff97fe3634 __exceptionPreprocess (in CoreFoundation)
1 0x00007fff8db0c6de objc_exception_throw (in libobjc.A.dylib)
2 0x0000000106012e16 -[DVTExtension valueForKey:] (in DVTFoundation)
ect....
Instead of trying to run Xcode 4, I suggest you run Xcode 5 or 6 but install the iOS 6 SDK so you can compile your iOS 6 SDK app on Xcode 5 or 6.
Be aware that Apple will not accept any app submission with SDK < 8 after February 2015. Apps also need to be 64-bit as well (of course, you're still allowed to ship a dual 32-bit/64-bit app).
When I click 'Run', Xcode crashes instantly, regardless of my code.
The crash report says that the LLDB plugin can not be read correctly:
Error getting value for key 'workerClass' of extension 'Xcode.DebuggerFoundation.Debugger.LLDB' in plug-in 'com.apple.dt.dbg.DebuggerLLDB'
The crash report:
Process: Xcode [2184]
Path: /Applications/Xcode.app/Contents/MacOS/Xcode
Identifier: com.apple.dt.Xcode
Version: 5.0.2 (3335.32)
Build Info: IDEApplication-3335032000000000~4
Code Type: X86-64 (Native)
Parent Process: launchd [147]
Responsible: Xcode [2184]
User ID: 501
Date/Time: 2014-02-26 18:41:28.657 +0100
OS Version: Mac OS X 10.9.2 (13C64)
Report Version: 11
Anonymous UUID: B5F54D76-660F-C9CE-0C9C-D0D41BA7332B
Sleep/Wake UUID: 9A19E5A2-14DE-40FF-8993-668257EF9F44
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Application Specific Information:
Sending performRunAction: to <IDERunPauseContinueToolbarButton: 0x7f8494673e80> from <IDERunPauseContinueToolbarButton: 0x7f8494673e80>
ProductBuildVersion: 5A3005
UNCAUGHT EXCEPTION (NSInternalInconsistencyException): Error getting value for key 'workerClass' of extension 'Xcode.DebuggerFoundation.Debugger.LLDB' in plug-in 'com.apple.dt.dbg.DebuggerLLDB'
UserInfo: {
NSUnderlyingError = "Error Domain=DVTPlugInErrorDomain Code=2 \"Loading a plug-in failed.\" UserInfo=0x7f8496dca9a0 {DVTPlugInIdentifierErrorKey=com.apple.dt.dbg.DebuggerLLDB, DVTPlugInExecutablePathErrorKey=/Applications/Xcode.app/Contents/PlugIns/DebuggerLLDB.ideplugin/Contents/MacOS/DebuggerLLDB, NSLocalizedRecoverySuggestion=The plug-in or one of its prerequisite plug-ins may be missing or damaged and may need to be reinstalled., NSLocalizedDescription=Loading a plug-in failed., NSFilePath=/Applications/Xcode.app/Contents/PlugIns/DebuggerLLDB.ideplugin, NSLocalizedFailureReason=The plug-in \U201ccom.apple.dt.dbg.DebuggerLLDB\U201d at path \U201c/Applications/Xcode.app/Contents/PlugIns/DebuggerLLDB.ideplugin\U201d could not be loaded. The plug-in or one of its prerequisite plug-ins may be missing or damaged., NSUnderlyingError=0x7f8496dc98f0 \"The bundle \U201cDebuggerLLDB\U201d couldn\U2019t be loaded because it is damaged or missing necessary resources.\"}";
}
Hints:
0: Sending performRunAction: to <IDERunPauseContinueToolbarButton: 0x7f8494673e80> from <IDERunPauseContinueToolbarButton: 0x7f8494673e80>
1: Sending performAction: to <DVTDelayedMenuButtonCell: 0x7f8494674490> from <IDERunPauseContinueToolbarButton: 0x7f8494673e80>
Backtrace:
0 0x00007fff91211244 __exceptionPreprocess (in CoreFoundation)
1 0x00000001082ddd73 DVTFailureHintExceptionPreprocessor (in DVTFoundation)
2 0x00007fff940a2e75 objc_exception_throw (in libobjc.A.dylib)
3 0x000000010826bcd2 -[DVTExtension valueForKey:] (in DVTFoundation)
4 0x000000010d3d1109 -[DBGLLDBDebugLocalService operationWorkerWithLaunchSession:error:] (in DebuggerLLDBService)
5 0x0000000110106e17 -[IDERuniPhoneSimulatorService operationWorkerWithLaunchSession:error:] (in IDEiOSSupportCore)
6 0x0000000108d38d49 -[IDERunDestination runWorkerForLaunchSession:error:] (in IDEFoundation)
7 0x0000000108d38a74 -[IDERunDestination runOperationForLaunchSession:error:] (in IDEFoundation)
8 0x0000000108da0fee -[IDELaunchSchemeAction runOperationForExecutionEnvironment:withBuildOperation:buildParameters:buildableProductDirectories:schemeActionRecord:outError:actionCallbackBlock:] (in IDEFoundation)
9 0x0000000108d94f5b -[IDEScheme _executionOperationForExecutionEnvironment:build:onlyBuild:buildPurpose:buildCommand:schemeCommand:title:overridingProperties:destination:buildLog:filePath:overridingBuildConfiguration:restorePersistedBuildResults:invocationRecord:overridingTestingSpecifiers:error:actionCallbackBlock:] (in IDEFoundation)
This may happen due to a broken LLDB debugger, which could only be solved by Apple.
However, I haven't found many similar problems from others on the internet yet, so this may only happen with my Xcode.
I had the same problem: was not able to run any Xcode projects. Reason was I was playing around on Python and downgraded it to 2.6.8 from 2.7.x. So, I have updated the python to 2.7.8 from older version, No problems so far, Xcode deploys everything very smoothly. Other things that I have tried was even uninstalling the X-code and install again, this didn't help. Very useful page to upgrade your python on macbook : http://wolfpaulus.com/jounal/mac/installing_python_osx/
It has nothing to do with your project. Somehow the Xcode.app that you launched has been damaged. Try downloading the latest Xcode from the App Store or ADC.
If this don't helps, try to report your problem: Apple Bug Reporter
If anyone still has the same problem, Apple told me that this happens if a wrong "custom" version of Python is installed. I installed Python 2.7.6 and it worked.
I have consistently getting the following error message when trying to launch UIAutomation test with the instruments command line tool:
2013-10-30 12:08:47.868 ScriptAgent[4687:2e07] CLTilesManagerClient:
initialize, sSharedTilesManagerClient
2013-10-30 12:08:47.869 ScriptAgent[4687:2e07] CLTilesManagerClient:
init 2013-10-30 12:08:47.869 ScriptAgent[4687:2e07]
CLTilesManagerClient: reconnecting, 0xa5b0aa0 2013-10-30 12:09:17.989
ScriptAgent[4687:2e07] +[UIAXElement initializeAccessibility]:
UIAutomation never received kAXAccessibilityLoaded. Waited 30.02
seconds. 2013-10-30 12:09:17.990 ScriptAgent[4687:2e07] AXError: Could
not auto-register for pid status change 2013-10-30 12:09:18.008
ScriptAgent[4687:2e07] Failed to enable accessiblity,
kAXErrorServerNotFound 2013-10-30 12:09:18.381
instruments[4633:240f] Automation Instrument ran into an exception
while trying to run the script. UIAScriptAgentSignaledException
2013-10-30 11:09:18 +0000 Fail: An error occurred while trying to run
the script.
Anyone else have this issue?
Thanks for your help.
Try sudo rm /tmp/instruments_sock -- this is the socket file created by instruments.js to communicate with instruments. That file is probably not deleateable for some reason.
That command will delete the file. Alternatively try to change the permission settings for the file.
I also encounter this issue on Xcode 5.0.1, instruments doesn't work even start from UI
but instruments works fine with Xcode 5.0
After some investigation, I found that when instruments is starting, the scriptAgent in iPhoneSimulator SDK crashes.
Process: ScriptAgent [4297]
Path: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.0.sdk/Developer/usr/bin/ScriptAgent
Identifier: ScriptAgent
Version: 270
Code Type: X86 (Native)
Parent Process: instruments [4208]
Responsible: eclipse [1017]
User ID: 110125050
Date/Time: 2013-11-11 10:52:49.044 +0800
OS Version: Mac OS X 10.9 (13A603)
Report Version: 11
Anonymous UUID: A496DC68-476F-589B-352C-303FA1CD2355
Sleep/Wake UUID: F65E37D7-0AFF-4867-9538-8736C8F0B908
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Application Specific Information:
iPhone Simulator (external launch) , iPhone OS 7.0.3 (unknown/11B508)
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib 0x02e94952 __pthread_kill + 10
1 libsystem_pthread.dylib 0x02e58167 pthread_kill + 101
2 libsystem_sim_c.dylib 0x02b6ae12 abort + 127
3 ScreenReaderCore 0x03db5853 SCRCUncaughtExceptionHandler + 111
4 CoreFoundation 0x005f7a1d __handleUncaughtException + 749
5 libobjc.A.dylib 0x0224ab5c _objc_terminate() + 100
6 libc++abi.dylib 0x02a5bf60 std::__terminate(void (*)()) + 14
7 libc++abi.dylib 0x02a5b97d __cxa_throw + 116
8 libobjc.A.dylib 0x0224a9cd objc_exception_throw + 323
9 CoreFoundation 0x005673bb +[NSException raise:format:] + 139
10 UIAutomation 0x00cbdf54 +[UIAXElement initializeAccessibility] + 668
11 UIAutomation 0x00cc1361 +[UIAXElement uiaxSystemWideElement] + 37
12 UIAutomation 0x00cd76d3 -[UIATarget init] + 317
13 UIAutomation 0x00cd758a +[UIATarget localTarget] + 65
14 ScriptAgent 0x0000ae25 0x1000 + 40485
15 ScriptAgent 0x00005e85 0x1000 + 20101
16 ScriptAgent 0x00008887 0x1000 + 30855
17 libdyld.dylib 0x02d5e70d start + 1
So I replaced iPhoneSimulator7.0.sdk with the one in Xcode 5.0, then this issue is solved.
But I am not sure whether this replacement has any side effect.