How to remove last selected file in Xcode 5 project navigator - objective-c

My Xcode 5 is crashing continuously for one project when i am changing project navigator selection from xib file to any other file. so how to reset Xcode 5 preferences in mavericks?
Process: Xcode [11348]
Path: /Applications/Xcode.app/Contents/MacOS/Xcode
Identifier: com.apple.dt.Xcode
Version: 5.0 (3332.22)
Build Info: IDEApplication-3332022000000000~2
Code Type: X86-64 (Native)
Parent Process: launchd [476]
Responsible: Xcode [11348]
User ID: 501
Date/Time: 2013-11-19 20:17:51.222 +0530
OS Version: Mac OS X 10.9 (13A603)
Report Version: 11
Anonymous UUID: 7CAA04DB-9AE5-4DB6-4EA0-12DF215191FF
Sleep/Wake UUID: BC5C337A-14F4-4375-8EF4-397D0F2DB159
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Application Specific Information:
ProductBuildVersion: 5A1412
ASSERTION FAILURE in /SourceCache/IDEInterfaceBuilder/IDEInterfaceBuilder-4510/CocoaIntegration/ResourceManagement/IBCocoaResourceManager.m:73
Details: result should be an instance inheriting from NSImage, but it is IBCIImage
Object: <IBCocoaResourceManager: 0x7f85f54072a0>
Method: -placeholderResourceContentForMediaType:originalValue:
Thread: <NSThread: 0x7f85f0c150e0>{name = (null), num = 1}
Hints: None

Go to your .xcodeproj in Finder, and right click, select show package contents. Then select the project.xcworkspace file within and show package contents on that as well, then open the xcuserdata folder, open the yourusername.xcuserdatad folder. You will see a UserInterfaceState.xcuserstate file. Delete it. Then open back up your .xcodeproj file.

Related

IntelliJ 2022.2 crashes on on MacOS opening project via "recently opened"

Since upgrading to Intellij IDEA 2022.2 the IDE crashes frequently, when I open a project via "File | Open Recent".
After that the IDE crashes on startup.
To solve the immediate problem, I can open /Users//Library/Application\ Support/IntelliJIdea2018.2/optionsJetBrains/IntelliJIdea2022.2/options/recentProjects.xml and delete opened="true" from the -Tag of the project causing the problem. But this only fixes it temporarily.
Apple Crash Report
-------------------------------------
Translated Report (Full Report Below)
-------------------------------------
Process: idea [23792]
Path: /Applications/IntelliJ IDEA.app/Contents/MacOS/idea
Identifier: com.jetbrains.intellij
Version: 2022.2.3 (IU-222.4345.14)
Code Type: X86-64 (Native)
Parent Process: launchd [1]
...
Date/Time: 2022-11-08 08:36:23.9671 +0100
OS Version: macOS 12.6.1 (21G217)
Report Version: 12
Bridge OS Version: 7.0 (20P411)
...
Time Awake Since Boot: 69000 seconds
Time Since Wake: 762 seconds
System Integrity Protection: enabled
Crashed Thread: 40 Java: Java2D Queue Flusher
Exception Type: EXC_BAD_ACCESS (SIGABRT)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000000
Exception Codes: 0x0000000000000001, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
VM Region Info: 0 is not in any region. Bytes before following region: 4367908864
REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL
UNUSED SPACE AT START
--->
__TEXT 104590000-104598000 [ 32K] r-x/r-x SM=COW ...ts/MacOS/idea
Kernel Triage:
VM - Compressor failed a blocking pager_get
VM - Compressor failed a blocking pager_get
VM - Compressor failed a blocking pager_get
VM - Compressor failed a blocking pager_get

xcode 5 crashes while opening xib developed in xcode6

I want to test my app for ios6. So, i downloaded xcode 5. In xcode5 While opening xib, xcode crashes with following log. Kindly suggest a solution.
Process: Xcode [2807]
Path: /Applications/Xcode 2.app/Contents/MacOS/Xcode
Identifier: com.apple.dt.Xcode
Version: 5.0 (3332.25)
Build Info: IDEApplication-3332025000000000~2
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: Xcode [2807]
User ID: 501
Date/Time: 2015-07-14 12:55:38.017 +0500
OS Version: Mac OS X 10.10.3 (14D131)
Report Version: 11
Anonymous UUID: F20A6FAB-50EF-797B-17ED-DCA402DAE3BA
Time Awake Since Boot: 11000 seconds
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Application Specific Information:
ProductBuildVersion: 5A1413
ASSERTION FAILURE in /SourceCache/IDEInterfaceBuilderCocoaTouch/IDEInterfaceBuilderCocoaTouch-3742/IBPlugin/Utilities/IBObjectMarshalling.m:36
Details: Failed to launch cocoa touch tool: Error Domain=com.apple.InterfaceBuilder Code=-1 "Interface Builder encountered an error communicating with the iOS Simulator." UserInfo=0x7fa34bda8380 {NSUnderlyingError=0x7fa34b78c2f0 "The operation couldn’t be completed. (IBMessageChannelErrorDomain error 1.)", NSLocalizedDescription=Interface Builder encountered an error communicating with the iOS Simulator., NSLocalizedRecoverySuggestion=Please check Console.app for crash reports for "Interface Builder Cocoa Touch Tool" for further information., NSLocalizedFailureReason="Interface Builder Cocoa Touch Tool" (2879) failed to launch and exited with status (null), signal 6.}
Object: <NSThread: 0x7fa341c2bb30>
Method: -cocoaTouchToolForTargetRuntime:
Thread: <NSThread: 0x7fa341c2bb30>{number = 1, name = main}
Hints: None
In the File Inspector of the XIB file, there's a "Interface Builder Document" popup and one of choices is "Opens in". And from there you can select "Xcode 5".
If you have auto-layout turned on, then the lowest you can go is Xcode 5.1.

Version 6.0 (6A313) crashing whenever i try to "Save for enterprise deployment"

Is anyone experiencing this?
Xcode will crash and throw the error below:
Process: Xcode [1208]
Path: /Applications/Xcode.app/Contents/MacOS/Xcode
Identifier: com.apple.dt.Xcode
Version: 6.0 (6299)
Build Info: IDEFrameworks-6299000000000000~8
Code Type: X86-64 (Native)
Parent Process: launchd [227]
Responsible: Xcode [1208]
User ID: 505
Date/Time: 2014-09-18 11:37:28.745 +0800
OS Version: Mac OS X 10.9.4 (13E28)
Report Version: 11
Anonymous UUID: A819F892-0B04-883D-E5AC-30EB917E651C
Crashed Thread: 11 Dispatch queue: com.apple.root.default-priority
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Getting very fustrating.

XCode6 keeps crashing when I try to export ad-hoc build

[UPDATE]
Problem has been solved after going Apple dev site and accept new Term and Condition agreement, this is the most strange problem I ever seen.
I am able to build and run app without any problem until create ad-hoc build, Xcode6 (version 6.0.1) will always crash after choosing account and team and throw below exception:
Process: Xcode [1861]
Path: /Applications/Xcode.app/Contents/MacOS/Xcode
Identifier: com.apple.dt.Xcode
Version: 6.0.1 (6528)
Build Info: IDEFrameworks-6528000000000000~2
App Item ID: 497799835
App External ID: 712682811
Code Type: X86-64 (Native)
Parent Process: launchd [258]
Responsible: Xcode [1861]
User ID: 501
Date/Time: 2014-09-26 13:07:23.360 +0700
OS Version: Mac OS X 10.9.5 (13F34)
Report Version: 11
Anonymous UUID: E2DD7234-2A56-B169-B657-56CFED90D316
Crashed Thread: 10 Dispatch queue: com.apple.root.default-priority
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Application Specific Information:
ProductBuildVersion: 6A317
UNCAUGHT EXCEPTION (NSInvalidArgumentException): *** -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[1]
UserInfo: (null)
Hints: None
Is anyone experiencing this? please help.
Note: I already choose team in Target config.

"Symbol not found" Crash while Testing Mac OS X 10.7-specific code on 10.6

I have an application that uses a few classes found only in 10.7 Lion. (For example, NSFileCoordinator.)
When my application launches, it can use NSFileCoordinator to coordinate read access to the data store. (I save to XML.)
The application launches fine under 10.7 Lion, but when launching under 10.6 Snow Leopard, the application crashes with the error shown below.
My base SDK is set to 10.7, and the deployment target is 10.6. As far as I can tell, all my code is properly wrapped, like:
if (NSClassFromString(#"NSFileCoordinator") != nil) {
// Do something the 10.7 way
} else {
// Do something the 10.6 way
}
But for some reason, I'm still seeing the crash. Since the Base SDK is 10.7, I can't run the application under Xcode in 10.6, making debugging difficult. Additional messages are being logged to the console:
9/1/11 9:48:03 AM [0x0-0x18018].com.me.myapp[173] dyld: Symbol not found: _OBJC_CLASS_$_NSFileCoordinator
9/1/11 9:48:03 AM [0x0-0x18018].com.me.myapp[173] Referenced from: /Volumes/Macintosh HD/Users/Me/Library/Developer/Xcode/DerivedData/Mac-ebdxgdvcqfnptlftkreamrwdxetd/Build/Products/Debug/myapp.app/Contents/MacOS/myapp
9/1/11 9:48:03 AM [0x0-0x18018].com.me.myapp[173] Expected in: /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
9/1/11 9:48:03 AM [0x0-0x18018].com.me.myapp[173] in /Volumes/Macintosh HD/Users/Me/Library/Developer/Xcode/DerivedData/Mac-ebdxgdvcqfnptlftkreamrwdxetd/Build/Products/Debug/myapp.app/Contents/MacOS/myapp
And the crash report:
Process: myapp [137]
Path: /Volumes/Macintosh HD/Users/Me/Library/Developer/Xcode/DerivedData/Mac-ebdxgdvcqfnptlftkreamrwdxetd/Build/Products/Debug/myapp.app/Contents/MacOS/myapp
Identifier: com.me.myapp
Version: 1.5.0 (150)
Code Type: X86-64 (Native)
Parent Process: launchd [92]
Date/Time: 2011-09-01 09:40:32.591 -0400
OS Version: Mac OS X 10.6.8 (10K549)
Report Version: 6
Interval Since Last Report: 2009 sec
Crashes Since Last Report: 5
Per-App Crashes Since Last Report: 5
Anonymous UUID: 32784C79-0821-471E-BCBF-BE5874774075
Exception Type: EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000002, 0x0000000000000000
Crashed Thread: 0
Dyld Error Message:
Symbol not found: _OBJC_CLASS_$_NSFileCoordinator
Referenced from: /Volumes/Macintosh HD/Users/Me/Library/Developer/Xcode/DerivedData/Mac-ebdxgdvcqfnptlftkreamrwdxetd/Build/Products/Debug/myapp.app/Contents/MacOS/myapp
Expected in: /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
in /Volumes/Macintosh HD/Users/Me/Library/Developer/Xcode/DerivedData/Mac-ebdxgdvcqfnptlftkreamrwdxetd/Build/Products/Debug/myapp.app/Contents/MacOS/myapp
#Anomie has the right answer but let me expand on it some more.
Here is the code of a command line tool that is similar to what you are doing:
int main (int argc, const char * argv[])
{
#autoreleasepool {
if (NSClassFromString(#"NSFileCoordinator")) {
NSLog(#"Version >= 10.7");
} else {
NSLog(#"Version < 10.7");
}
}
return 0;
}
The only framework that this program links to is Foundation. But in order to weakly link to this framework you must do the following:
Click on the project in the project browser
Go to "Build Phases"
Go to "Link Binary With Libraries" and remove "Foundation.framework"
Go to "Build Settings" and add the following "Other Linker Flags":
-weak_framework Foundation
Rebuild your project. I've tested on OS X 10.6 and 10.7 and neither crashed and both produced the expected output. Hope this helps.
You need to weakly link the framework, so these unresolved symbols won't be an error at load time.