Pineboard crashing repeatedly

Since I started using Xcode 7 .1 to play with Apple TV stuff it seemed like I had a day or two of stable usage and now it's started behaving flakily. In particular I don't seem able to edit any storyboards (progress indicator just spins indefinitely) and the "PIneboard" process keeps crashing with an (abbreviated) crash log like:

*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'We cannot proceed without a valid LSApplicationProxy. Received: <LSApplicationProxy: 0x7f97db707d90> com.apple.PineBoard <file:///Volumes/Data/daniel/Applications/XcodeNewer/Xcode7.1-Beta1.app/Contents/Developer/Platforms/AppleTVSimulator.platform/Developer/SDKs/AppleTVSimulator.sdk/Applications/PineBoard.app>'
terminating with uncaught exception of type NSException
abort() called
CoreSimulator 182.4 - Device: IBAppleTVSimDeviceType1080p - Runtime: tvOS 9.0 (13T5347l) - DeviceType: IBAppleTVSimDeviceType1080p
Application Specific Backtrace 1:
0   CoreFoundation                      0x00000001046fb105 __exceptionPreprocess + 165
1   libobjc.A.dylib                     0x0000000104173deb objc_exception_throw + 48
2   CoreFoundation                      0x00000001046faf6a +[NSException raise:format:arguments:] + 106
3   Foundation                          0x0000000103dc0982 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 198
4   FrontBoard                          0x000000010120cca7 __31-[FBApplicationLibrary _reload]_block_invoke + 366
5   libdispatch.dylib                   0x00000001055d34a7 _dispatch_client_callout + 8
6   libdispatch.dylib                   0x00000001055bbfd0 _dispatch_barrier_sync_f_invoke + 99
7   FrontBoard                          0x000000010120cb33 -[FBApplicationLibrary _reload] + 86
8   FrontBoard                          0x0000000101209af5 -[FBApplicationLibrary init] + 712
9   FrontBoard                          0x000000010120975f __38+[FBApplicationLibrary sharedInstance]_block_invoke + 41


Anybody have any thoughts for how I might be able to set things right?

Accepted Answer

We've seen a similar issue happen when you rename the Xcode beta, and from your crash log it looks like you did. Try renaming it back to "Xcode-beta.app".

Ahhh, taking a closer look at the exception, I see it's trying to reference a resource at a path that no longer exists. Why? I renamed my Xcode from "Xcode7.1-Beta1.app to just "Xcode.app". I guess after having run it and developed with it for a while, it cached away some reference to the original location of my Xcode internals, and now it's confused that it's no longer there. I will file a bug and post the number here for anybody who is interested.


The simplest workaround? Just add a symbol link from the old app's name to the new one. (For complicated reasons it's important for me to have this version named Xcode.app at its given location now).

Thanks for the quick response, mwhuss! I had just come to that conclusion. So it sounds like it will not be necessary to file a bug on this. Would you agree?

This is bug # 22496946.


A potential fix has been identified and it is easily reproducible.


Thanks!

Thanks! It was pointed out on Twitter that it is even in the release notes. Shame on me for not reading them!

I'm also seeing this, and I've gone through many iteartions of changing the name back to Xcode-beta, reinstalling Xcode, rebooting the machine, deleteing the com.apple.dt.Xcode file in ~/Library/Caches. Nothing is working for me.


Note the name here in the path:

*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'We cannot proceed without a valid LSApplicationProxy. Received: <LSApplicationProxy: 0x7fcd99c2b100> com.apple.PineBoard <file:///Applications/Xcode-beta%202.app/Contents/Developer/Platforms/AppleTVSimulator.platform/Developer/SDKs/AppleTVSimulator.sdk/Applications/PineBoard.app>'


I assume the Xcode-beta%202.app is my issue, but where is that stored?


Anyone have any ideas?

%20 is a space in UTF-8. Try renaming your Xcode-beta.app and make sure there's no space at the end in the file name.

I've done that, as well as delete the app completely and reinstall. That seems to be stored somewhere, but I can't figrue out where...

I've just confirmed this is user specific. I logged into another user, and it works just fine. This is something stored in my environment, but I have no idea where.

If the simulator can be launched, using Simulator -> Reset Content and Settings... should fix the issue.

Yes, that did it. Thanks.

Hi,


I made the mistake to rename the xcode-beta app to xcode-beta 7.1.

Then I renamed it to xcode-beta but PineBoard is always crashing.

I tried to do everything you said, nothing worked for me, unfortuunately.


So I had to rename again xcode to xcode-beta 7.1 for being able to work on storyboards.


Regards,

Alexandre

Additional Information:

I have had the issue several times already as well. It turns out that was because the first time I started the Xcode 7.1 beta, the system opened it from the mounted image (which I forgot to unmount). After I then unmounted the image, Xcode-beta on my local machine couldn't open PineBoard which somewhere still had a reference to the mounted image.

Eject the Xcode-beta image before you open Xcode-beta for the first time or make sure that you are explicitly open the Xcode-beta.app from your local machine. I opened a project file through the context menu and it chose the wrong Xcode version from there with the image still mounted.

I think this has also happened to me, what did you do to fix? I tried re-installing Xcode-beta and launching from applications instead of disk image and ejected disk image, but it is still looking for the pinboard app here file:///Volumes/Xcode/Xcode-beta.app and crashing.

I went all radical and deleted the Xcode-beta and then all the contents from ~/Library/Developer/ and from the Xcode cache in ~/Library/Caches. Reinstalled the beta and then ejected the image before I opened it first time. Now it works fine again.

Pineboard crashing repeatedly
 
 
Q