Crash on xcode 5.0.2 while starting - ios

I just downloaded xcode 5.0.2 and while opening initially the Open Project Screen came. Then i closed xcode and after that i tried to start it but it was crashing straight away. I found out the following logs on Console App
21/11/13 7:56:41.000 pm kernel[0]: CODE SIGNING: cs_invalid_page(0x7fff946ac000): p=2190[Xcode] final status 0x1000200, denying page sending SIGKILL
21/11/13 7:56:41.000 pm kernel[0]: CODESIGNING: vm_fault_enter(0x7fff946ac000): page 0xffffff80103b61d8 obj 0xffffff802b7a17a0 off 0x10aad000 *** INVALID PAGE ***
21/11/13 7:56:41.806 pm ReportCrash[2193]: Trying to extract VM information using cr2
21/11/13 7:56:41.855 pm com.apple.launchd.peruser.503[476]: (com.apple.dt.Xcode.72720[2190]) Exited: Killed: 9
21/11/13 7:56:42.286 pm ReportCrash[2193]: Saved crash report for Xcode[2190] version 5.0.2 (3335.32) to /Users/arpit/Library/Logs/DiagnosticReports/Xcode_2013-11-21-195642_Aruns-MacBook-Pro.crash
21/11/13 7:56:42.289 pm ReportCrash[2193]: Removing excessive log: file:///Users/arpit/Library/Logs/DiagnosticReports/Xcode_2013-11-21-183407_Aruns-MacBook-Pro.crash
Any help regarding this?
I also found this link regarding the same issue
https://discussions.apple.com/message/23562146#23562146

Is your previous version of Xcode synced to any version control such as git hub or svn ?
Is you open the project it will ask for upgrade just upgrade it you will not get the issue again.Give a try same happened to me as well i tried the same.
you can also refer the link for the same in Xcode 4.2
Xcode 4.0.2 Crashes on launch

Related

iOS Simulator won't work with Xcode 7.3.1 after install macOS and Xcode 8

After install macOS Sierra + Xcode 8 beta
My Xcode 7.3.1 can't run iOS simulator anymore,
How can i fixed this?
here is system logs.
Jun 15 07:46:11 Siams-MacBook-Pro com.apple.xpc.launchd[1] (com.apple.CoreSimulator.CoreSimulatorService[2246]): Service exited due to signal: Killed: 9 sent by com.apple.CoreSimulator.CoreSimu[2246]
Jun 15 07:46:12 Siams-MacBook-Pro com.apple.CoreSimulator.CoreSimulatorService[2748]: com.apple.CoreSimulator.CoreSimulatorService 209.19 starting.
Jun 15 07:46:12 Siams-MacBook-Pro com.apple.CoreSimulator.CoreSimulatorService[2748]: Default device D340C405-CF9F-482C-82CE-ADE8A2399529 is no longer in the set, and an alternative could not be found. iPhone / Watch pairings may not be correct.
Jun 15 07:46:12 Siams-MacBook-Pro com.apple.CoreSimulator.CoreSimulatorService[2748]: Default device C3CBAFAD-D139-49CE-9EF1-E2437A2349A7 is no longer in the set, and an alternative could not be found. iPhone / Watch pairings may not be correct.
Jun 15 07:46:12 Siams-MacBook-Pro com.apple.CoreSimulator.CoreSimulatorService[2748]: Default device 0916CCBC-1DAA-4CA4-8DCA-FFD87C8941E0 is no longer in the set, and an alternative could not be found. iPhone / Watch pairings may not be correct.
Jun 15 07:46:12 Siams-MacBook-Pro com.apple.CoreSimulator.CoreSimulatorService[2748]: Default device 9CC780B5-3034-4083-B52F-2354FB0A8252 is no longer in the set, and an alternative could not be found. iPhone / Watch pairings may not be correct.
Another log
Jun 15 10:03:26 Siams-MacBook-Pro DTServiceHub[11482]: DTServiceHub[11482]: [error] 'mach_msg_send' failed: (ipc/send) invalid destination port (268435459)
Jun 15 10:03:36 Siams-MacBook-Pro Xcode[10188]: +[DTServiceHubClient localConnectionWithAuthorization:returningServerPid:]: failed to establish connection with DTServiceHub service '/Applications/Xcode.app/Contents/SharedFrameworks/DVTInstrumentsFoundation.framework/Resources/DTServiceHub'
Jun 15 10:03:36 Siams-MacBook-Pro Xcode[10188]: Xcode[10188]: [error] 'mach_msg_send' failed: (ipc/send) invalid destination port (268435459)
Short term solution:
Build app
The app will still install on the simulator, even with the error
Launch the app manually on the simulator
Go to Xcode
Click Debug > Attach to Process > Your App Name
This isn't recommended since you have to do it every time you want to run your app.
Long term solution (recommended):
Reinstall Xcode from the Developer Center. Doing so will clear this error, and the app will run smoothly.
This should work.
Build app
The app will still install on the simulator, even with the error
Launch the app manually on the simulator
Go to Xcode
Click Debug > Attach to Process > Your App Name
I fixed the problem by deleting both XCode 7.3.1 and 8 Beta and reinstalling just XCode 7.3.1 from DMG.

What does the installation errror "The packet is unknown" mean?

I am trying to use Xcode 6.2 to install a development build of an iOS app onto my iPod touch (running iOS 8.2).
The installation keeps failing with the message
App instalation failed
The packet is unknown.
The console reports the following details:
Mar 27 12:53:52 iPod-touch com.apple.StreamingUnzipService[164] <Warning>: -[StreamingUnzipState finishStream]:476: Finishing an incomplete stream! This stream will not be resumable.
Mar 27 12:53:52 iPod-touch streaming_zip_conduit[163] <Warning>: __dispatch_source_read_socket_block_invoke_2:171: Failed to finish extraction: Error Domain=SZExtractorErrorDomain Code=3 "Finishing an incomplete stream! This stream will not be resumable." UserInfo=0x17e33b50 {SZExtractorFunctionNameErrorKey=-[StreamingUnzipState finishStream], SZExtractorSourceFileLineErrorKey=476, NSLocalizedDescription=Finishing an incomplete stream! This stream will not be resumable.}
Mar 27 12:53:52 iPod-touch streaming_zip_conduit[163] <Warning>: secure_send_message:105: Got error 1 from lockdown_send_message
Mar 27 12:53:52 iPod-touch streaming_zip_conduit[163] <Warning>: secure_send_error:137: Could not send error response to host
These messages seem to imply that the IPA file is somehow corrupted, and can't be extracted, but I had no problem unziping the IPA with Archive Utility on my Mac.
I also already ran codesign -dvvv on Payload/<my-app-name>.app and don't see any obvious problems with the certificate used to sign the app.
What does this error message indicate, and how can the issue be resolved?
note:
I already found this similar question but the only current answer does not help me. Since I have some, possibly relevant, details that may not apply to the previous question, I am asking a new question.
So I was getting this exact error and I tried switching USB ports (from the device plugged into the USB port on my keyboard to the USB port on my laptop) and now it works.

Could not inspect the application package

I have final version of XCode 6 (version 6.0.1). In my project, I have problem when running it.
I got
"App installation failed - Could not inspect the application package."
If I run project again, it runs ok. Another run, problem again... etc. So every second run ends in this error, right after that application run just fine.
I have no problem in XCode 5.
If you have moved or copied a folder named resources or resource into your project, try renaming it. Then perform a clean.
I had the same issue, And was unable to install the ipa. It always ended with an error "Could not inspect the application package." and some warnings in device console
Feb 10 17:38:16 iPhone mobile_installation_proxy[356] <Warning>: LaunchServices: Please include the kCFBundleIdentifierKey in the options dictionary when installing an app.
Feb 10 17:38:16 iPhone mobile_installation_proxy[356] <Warning>: LaunchServices: installing app with unknown bundleID
.
.
Feb 10 17:38:16 iPhone installd[44] <Error>: 0x101bcc000 -[MIBundle _validateWithError:]: 28: Failed to load Info.plist from bundle at path
Feb 10 17:38:16 iPhone installd[44] <Error>: 0x101bcc000 + [MIInstallable installablesAtURL:packageFormat:userOptions:error:]: Failed to create bundle for …
After spending hours, I got it fixed by adding the "Application requires iPhone environment" in info.plist
<key>LSRequiresIPhoneOS</key>
<true/>

iOS Simulator for Xcode 4.5 not copying Resources over

I am using Xcode 4.5 and iOS Simulator Version 6*. I added images to my Xcode project but when I simulate the iPhone, they are not showing up. I see the following in syslog:
SpringBoard[33587] <Error>: CGContextDrawImage: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update.
Aug 23 15:04:18 new-host-22.home SpringBoard[28968] <Warning>: No file exists for default image of name starting_image_i5_retina
Aug 23 15:04:20 new-host-22.home[28982] <Notice>: BUG in libdispatch: 12E55 - 866 - 0x2
Aug 23 15:04:20 new-host-22.home[28982] <Notice>: BUG in libdispatch client: kevent[EVFILT_VNODE] add: "Bad file
No idea what is happening. I have tried deleting the app, clean builds, etc.
Go to build phases under your target and go to "copy Bundle Resources" and click the plus button and add the file, clean your build, delete the app, and run it in xcode and the file should be there.

tcp_connection_destination_fail net_helper_connect_fail failed (meteorjs & phonegap in iOS emmulator)

I'm in the iOS emmulator (current latest versions of all software, iphone 6.0 emmulator) and I'm monitoring the syslog for my application.
I'm getting some very odd error I can't find anything about on basic searching...
Apr 14 22:42:31 AlanMacBook MyApp[12051]: Finished load of: http://localhost:3000/
Apr 14 22:42:31 AlanMacBook MyApp[12051]: tcp_connection_destination_fail net_helper_connect_fail failed
I'm wondering if this has to do with meteor's long-polling sockjs connection somehow?
I'm getting intermittent flakiness on loading of assets, etc.
Any idea what's causing the errors and if I should be concerned?

Resources