containerPortal is NULL xcode Assertion Failure - xcode

After I've upgraded rect-native project from 0.57.0 => 0.59.10 I have a problem opening my project in xcode.
Full stacktrace on react-native run-ios --verbose
➜ react-native run-ios --verbose
info Found Xcode project Hub.xcodeproj
info Building using "xcodebuild -project Hub.xcodeproj -configuration Debug -scheme Hub -destination id=983F7ABF-6770-4DB6-B13C-2606DA4BF6C1 -derivedDataPath build/Hub"
info User defaults from command line:
IDEDerivedDataPathOverride = /Users/petarpilipovic/Documents/Project/hub-family-mobile/ios/build/Hub
error Failed to build iOS project. We ran "xcodebuild" command but it exited with error code null. To debug build logs further, consider building your app with Xcode.app, by opening Hub.xcodeproj
2019-07-26 19:20:15.011 xcodebuild[79690:6745260] [MT] DVTAssertions: ASSERTION FAILURE in /Library/Caches/com.apple.xbs/Sources/IDEXcode3ProjectSupport/IDEXcode3ProjectSupport-14492.1/Xcode3Core/LegacyProjects/Frameworks/DevToolsCore/DevToolsCore/ProjectModel/DataModel/Containers/PBXContainerItemProxy.m:136
Details: _containerPortal is NULL
Object: <PBXContainerItemProxy: 0x7fe8897ad3a0>
Method: -remoteContainer
Thread: <NSThread: 0x7fe886c058f0>{number = 1, name = main}
Hints:
Backtrace:
0 -[DVTAssertionHandler handleFailureInMethod:object:fileName:lineNumber:assertionSignature:messageFormat:arguments:] (in DVTFoundation)
1 _DVTAssertionHandler (in DVTFoundation)
2 _DVTAssertionFailureHandler (in DVTFoundation)
3 -[PBXContainerItemProxy remoteContainer] (in DevToolsCore)
4 -[PBXContainerItemProxy remoteContainerItem] (in DevToolsCore)
5 -[PBXReferenceProxy sourceTree] (in DevToolsCore)
6 -[PBXReference addNotifications] (in DevToolsCore)
7 -[PBXReference awakeFromPListUnarchiver:] (in DevToolsCore)
8 -[PBXReferenceProxy awakeFromPListUnarchiver:] (in DevToolsCore)
9 -[PBXPListUnarchiver decodeRootObject] (in DevToolsCore)
10 +[PBXProject projectWithFile:errorHandler:readOnly:] (in DevToolsCore)
11 -[PBXFileReference loadedContainer] (in DevToolsCore)
12 -[PBXContainerItemProxy remoteContainer] (in DevToolsCore)
13 -[PBXContainerItemProxy remoteContainerItem] (in DevToolsCore)
14 -[PBXReferenceProxy sourceTree] (in DevToolsCore)
15 -[PBXReference addNotifications] (in DevToolsCore)
16 -[PBXReference awakeFromPListUnarchiver:] (in DevToolsCore)
17 -[PBXReferenceProxy awakeFromPListUnarchiver:] (in DevToolsCore)
18 -[PBXPListUnarchiver decodeRootObject] (in DevToolsCore)
19 +[PBXProject projectWithFile:errorHandler:readOnly:] (in DevToolsCore)
20 -[Xcode3Project initWithFilePath:extension:workspace:options:error:] (in DevToolsCore)
21 __82+[IDEContainer _retainedContainerAtFilePath:fileDataType:workspace:options:error:]_block_invoke_2 (in IDEFoundation)
22 _dispatch_client_callout (in libdispatch.dylib)
23 _dispatch_lane_barrier_sync_invoke_and_complete (in libdispatch.dylib)
24 DVTDispatchBarrierSync (in DVTFoundation)
25 -[DVTDispatchLock performLockedBlock:] (in DVTFoundation)
26 __82+[IDEContainer _retainedContainerAtFilePath:fileDataType:workspace:options:error:]_block_invoke (in IDEFoundation)
27 __58-[DVTModelObjectGraph performBlockCoalescingModelChanges:]_block_invoke (in DVTFoundation)
28 -[DVTModelGraphTransactionScope performTransaction:] (in DVTFoundation)
29 -[DVTModelObjectGraph performBlockCoalescingModelChanges:] (in DVTFoundation)
30 +[IDEContainer _retainedContainerAtFilePath:fileDataType:workspace:options:error:] (in IDEFoundation)
31 +[IDEContainer retainedContainerAtFilePath:fileDataType:workspace:error:] (in IDEFoundation)
32 -[IDEWorkspace _configureWrappedWorkspaceWithError:] (in IDEFoundation)
33 __82+[IDEContainer _retainedContainerAtFilePath:fileDataType:workspace:options:error:]_block_invoke (in IDEFoundation)
34 +[IDEContainer _retainedContainerAtFilePath:fileDataType:workspace:options:error:] (in IDEFoundation)
35 +[IDEContainer retainedWrappedWorkspaceForContainerAtFilePath:fileDataType:error:] (in IDEFoundation)
36 -[Xcode3CommandLineBuildTool _resolveInputOptionsWithTimingSection:] (in Xcode3Core)
37 -[Xcode3CommandLineBuildTool run] (in Xcode3Core)
38 main (in xcodebuild)
39 start (in libdyld.dylib)
debug Error: Failed to build iOS project. We ran "xcodebuild" command but it exited with error code null. To debug build logs further, consider building your app with Xcode.app, by opening Hub.xcodeproj
2019-07-26 19:20:15.011 xcodebuild[79690:6745260] [MT] DVTAssertions: ASSERTION FAILURE in /Library/Caches/com.apple.xbs/Sources/IDEXcode3ProjectSupport/IDEXcode3ProjectSupport-14492.1/Xcode3Core/LegacyProjects/Frameworks/DevToolsCore/DevToolsCore/ProjectModel/DataModel/Containers/PBXContainerItemProxy.m:136
Details: _containerPortal is NULL
Object: <PBXContainerItemProxy: 0x7fe8897ad3a0>
Method: -remoteContainer
Thread: <NSThread: 0x7fe886c058f0>{number = 1, name = main}
Hints:
Backtrace:
0 -[DVTAssertionHandler handleFailureInMethod:object:fileName:lineNumber:assertionSignature:messageFormat:arguments:] (in DVTFoundation)
1 _DVTAssertionHandler (in DVTFoundation)
2 _DVTAssertionFailureHandler (in DVTFoundation)
3 -[PBXContainerItemProxy remoteContainer] (in DevToolsCore)
4 -[PBXContainerItemProxy remoteContainerItem] (in DevToolsCore)
5 -[PBXReferenceProxy sourceTree] (in DevToolsCore)
6 -[PBXReference addNotifications] (in DevToolsCore)
7 -[PBXReference awakeFromPListUnarchiver:] (in DevToolsCore)
8 -[PBXReferenceProxy awakeFromPListUnarchiver:] (in DevToolsCore)
9 -[PBXPListUnarchiver decodeRootObject] (in DevToolsCore)
10 +[PBXProject projectWithFile:errorHandler:readOnly:] (in DevToolsCore)
11 -[PBXFileReference loadedContainer] (in DevToolsCore)
12 -[PBXContainerItemProxy remoteContainer] (in DevToolsCore)
13 -[PBXContainerItemProxy remoteContainerItem] (in DevToolsCore)
14 -[PBXReferenceProxy sourceTree] (in DevToolsCore)
15 -[PBXReference addNotifications] (in DevToolsCore)
16 -[PBXReference awakeFromPListUnarchiver:] (in DevToolsCore)
17 -[PBXReferenceProxy awakeFromPListUnarchiver:] (in DevToolsCore)
18 -[PBXPListUnarchiver decodeRootObject] (in DevToolsCore)
19 +[PBXProject projectWithFile:errorHandler:readOnly:] (in DevToolsCore)
20 -[Xcode3Project initWithFilePath:extension:workspace:options:error:] (in DevToolsCore)
21 __82+[IDEContainer _retainedContainerAtFilePath:fileDataType:workspace:options:error:]_block_invoke_2 (in IDEFoundation)
22 _dispatch_client_callout (in libdispatch.dylib)
23 _dispatch_lane_barrier_sync_invoke_and_complete (in libdispatch.dylib)
24 DVTDispatchBarrierSync (in DVTFoundation)
25 -[DVTDispatchLock performLockedBlock:] (in DVTFoundation)
26 __82+[IDEContainer _retainedContainerAtFilePath:fileDataType:workspace:options:error:]_block_invoke (in IDEFoundation)
27 __58-[DVTModelObjectGraph performBlockCoalescingModelChanges:]_block_invoke (in DVTFoundation)
28 -[DVTModelGraphTransactionScope performTransaction:] (in DVTFoundation)
29 -[DVTModelObjectGraph performBlockCoalescingModelChanges:] (in DVTFoundation)
30 +[IDEContainer _retainedContainerAtFilePath:fileDataType:workspace:options:error:] (in IDEFoundation)
31 +[IDEContainer retainedContainerAtFilePath:fileDataType:workspace:error:] (in IDEFoundation)
32 -[IDEWorkspace _configureWrappedWorkspaceWithError:] (in IDEFoundation)
33 __82+[IDEContainer _retainedContainerAtFilePath:fileDataType:workspace:options:error:]_block_invoke (in IDEFoundation)
34 +[IDEContainer _retainedContainerAtFilePath:fileDataType:workspace:options:error:] (in IDEFoundation)
35 +[IDEContainer retainedWrappedWorkspaceForContainerAtFilePath:fileDataType:error:] (in IDEFoundation)
36 -[Xcode3CommandLineBuildTool _resolveInputOptionsWithTimingSection:] (in Xcode3Core)
37 -[Xcode3CommandLineBuildTool run] (in Xcode3Core)
38 main (in xcodebuild)
39 start (in libdyld.dylib)
at ChildProcess.buildProcess.on.code (/Users/petarpilipovic/Documents/Project/hub-family-mobile/node_modules/#react-native-community/cli/build/commands/runIOS/runIOS.js:231:16)
at ChildProcess.emit (events.js:198:13)
at maybeClose (internal/child_process.js:982:16)
at Socket.stream.socket.on (internal/child_process.js:389:11)
at Socket.emit (events.js:198:13)
at Pipe._handle.close (net.js:606:12).
I found out here that maybe I'm missing a portal key so I've inspected project.pbxproj in the /* Begin PBXContainerItemProxy section */ section, keys are there and all seems to be ok. I've also removed
xcode delivered data cache, bit no joy. What else can I do?

Incase this happens to anyone else....
This occurred for me after upgrading versions of React Native (from a version that did not use cocoapods, to a version that did).
It seems the problem occurred as Xcode attempts to link the cocoapods, and I needed to delete the old dependency links (from react-native link).
I did this by deleting broken dep links from Target > Project > Build Phases > Link Binary with Libraries

If You use cocoapods then you should always use this file:
yourProjectDir/ios/yourprojectname.xcworkspace

Related

xcodebuild crashes on start

At some point I have noticed xcodebuild stopped working. Example:
xtmq#xtmqmac ~ % xcodebuild --help
2021-03-09 17:13:07.961 xcodebuild[8574:125230] [MT] DVTAssertions: ASSERTION FAILURE in /Library/Caches/com.apple.xbs/Sources/IDEXcode3ProjectSupport/IDEXcode3ProjectSupport-17707/Xcode3Core/LegacyProjects/Frameworks/DevToolsCore/DevToolsCore/Foundation/Specifications/XCSpecification.m:1521
Details: propertyList should be an instance inheriting from TSPropertyListDictionary, but it is nil
Object: <XCSpecificationProxy: 0x7ffd76f94630>
Method: -loadedSpecification
Thread: <NSThread: 0x7ffd75519810>{number = 1, name = main}
Hints:
Backtrace:
0 -[DVTAssertionHandler handleFailureInMethod:object:fileName:lineNumber:assertionSignature:messageFormat:arguments:] (in DVTFoundation)
1 _DVTAssertionHandler (in DVTFoundation)
2 _DVTAssertionFailureHandler (in DVTFoundation)
3 -[XCSpecificationProxy loadedSpecification] (in DevToolsCore)
4 +[XCSpecification specificationForIdentifier:inDomain:] (in DevToolsCore)
5 +[PBXTarget buildSystemDefaultMacros] (in DevToolsCore)
6 XCInitializeCoreIfNeeded (in DevToolsCore)
7 +[Xcode3CoreInitializer ide_initializeWithOptions:error:] (in Xcode3Core)
8 _IDEInitializeBuildSystem (in IDEFoundation)
9 IDEInitialize (in IDEFoundation)
10 -[Xcode3CommandLineBuildTool run] (in Xcode3Core)
11 main (in xcodebuild)
12 start (in libdyld.dylib)
zsh: abort xcodebuild --help
Interesting things:
there is no directory /Library/Caches/com.apple.xbs
xcode itself works fine at the same time
I have tried to reinstall xcode command line tools, no luck. Any ideas?
Remove and install xcode again from scratch fixed the issue finally.

Xcode immediately crashes after opening a new project

$ 14:51:33 /Applications/Xcode.app/Contents/MacOS/Xcode
2020-04-05 14:51:44.095 Xcode[5709:184457] -[__NSCFNumber hasPrefix:]: unrecognized selector sent to instance 0xed1bd6c1b1e0a897
2020-04-05 14:51:44.099 Xcode[5709:184457] [MT] DVTAssertions: UNCAUGHT EXCEPTION (NSInvalidArgumentException): -[__NSCFNumber hasPrefix:]: unrecognized selector sent to instance 0xed1bd6c1b1e0a897
UserInfo: (null)
Hints:
0: Sending newProject: to IDEApplicationCommands from (null)
1: Sending openNewProjectAssistant: to IDEWelcomeWindowController from <IDEWelcomeWindowHighlightButton: 0x7fbc46da41b0>
2020-04-05 14:51:44.116 Xcode[5709:184457] [MT] DVTAssertions:
Backtrace:
0 __exceptionPreprocess (in CoreFoundation)
1 DVTFailureHintExceptionPreprocessor (in DVTFoundation)
2 objc_exception_throw (in libobjc.A.dylib)
3 -[NSObject(NSObject) __retain_OA] (in CoreFoundation)
4 ___forwarding___ (in CoreFoundation)
5 _CF_forwarding_prep_0 (in CoreFoundation)
6 __68-[IDEWorkspaceWindowController _purgeOldIdentifiersFromUserDefaults]_block_invoke_2 (in IDEKit)
7 __68-[IDEWorkspaceWindowController _purgeOldIdentifiersFromUserDefaults]_block_invoke (in IDEKit)
8 _dispatch_client_callout (in libdispatch.dylib)
9 _dispatch_once_callout (in libdispatch.dylib)
10 -[IDEWorkspaceWindowController _purgeOldIdentifiersFromUserDefaults] (in IDEKit)
11 -[IDEWorkspaceWindowController windowDidLoad] (in IDEKit)
12 -[NSWindowController _windowDidLoad] (in AppKit)
13 -[NSWindowController window] (in AppKit)
14 -[IDEDocumentController _openUntitledWorkspaceDocumentAndDisplay:simpleFilesFocused:forSingleFile:editorDocumentURLOrNil:error:] (in IDEKit)
15 -[IDEApplicationCommands newTemplateForTemplateKind:template:] (in IDEKit)
16 -[IDEApplicationCommands newProject:] (in IDEKit)
17 -[NSApplication(NSResponder) sendAction:to:from:] (in AppKit)
18 __37-[DVTApplication sendAction:to:from:]_block_invoke.86 (in DVTKit)
19 DVTInvokeWithFailureHint (in DVTFoundation)
20 -[DVTApplication sendAction:to:from:] (in DVTKit)
21 +[IDECommandManager sendActionForCommandWithIdentifier:from:] (in IDEKit)
22 -[NSApplication(NSResponder) sendAction:to:from:] (in AppKit)
23 __37-[DVTApplication sendAction:to:from:]_block_invoke.86 (in DVTKit)
24 DVTInvokeWithFailureHint (in DVTFoundation)
25 -[DVTApplication sendAction:to:from:] (in DVTKit)
26 -[NSControl sendAction:to:] (in AppKit)
27 __26-[NSCell _sendActionFrom:]_block_invoke (in AppKit)
28 -[NSCell _sendActionFrom:] (in AppKit)
29 -[NSButtonCell _sendActionFrom:] (in AppKit)
30 NSControlTrackMouse (in AppKit)
31 -[NSCell trackMouse:inRect:ofView:untilMouseUp:] (in AppKit)
32 -[NSButtonCell trackMouse:inRect:ofView:untilMouseUp:] (in AppKit)
33 -[NSControl mouseDown:] (in AppKit)
34 -[NSWindow(NSEventRouting) _handleMouseDownEvent:isDelayedEvent:] (in AppKit)
35 -[NSWindow(NSEventRouting) _reallySendEvent:isDelayedEvent:] (in AppKit)
36 -[NSWindow(NSEventRouting) sendEvent:] (in AppKit)
37 -[NSApplication(NSEvent) sendEvent:] (in AppKit)
38 -[IDEApplication sendEvent:] (in IDEKit)
39 -[NSApplication run] (in AppKit)
40 NSApplicationMain (in AppKit)
41 main (in Xcode)
42 start (in libdyld.dylib)
Abort trap: 6
This is my first time installing XCode on my MacbookPro
I'm on macOS Catalin Version 10.15.4
What I tried
Installing different versions of Xcode: 11.4, 11.3, 10.1
sudo rm -rf /Library/Developer/CommandLineTools && xcode-select --install
sudo xcodebuild -license
Removing ~/Library/Caches
Removing /Library/Caches
Removing ~/Library/Developer
defaults delete com.apple.dt.xcode
Looks like maybe something is wrong with your defaults.
Try running the below command to clear them out
defaults delete com.apple.dt.xcode
Most likely somewhere in code, there is an assignment of an NSNumber variable to an NSString variable.
Thus number object (instance 0xed1bd6c1b1e0a897) cannot respond to hasPrefix: method.
2020-04-05 14:51:44.095 Xcode[5709:184457] -[__NSCFNumber hasPrefix:]: unrecognized selector sent to instance 0xed1bd6c1b1e0a897
Try to debug & figure out what actually this object is 0xed1bd6c1b1e0a897, where it's being created and assigned to string object.
Once you find it - you can easily convert it to NSString by using stringValue property.
I do presume you were able to build the project. If Xcode crashes even before build & run - I have no idea then.
Try deleting all these folders?
~/Library/Containers/com.apple.dt.BitbucketHostBuiltInExtension
~/Library/Containers/com.apple.dt.BitbucketServerHostBuiltInExtension
~/Library/Containers/com.apple.dt.GitHubEnterpriseHostBuiltInExtension
~/Library/Containers/com.apple.dt.GitHubHostBuiltInExtension
~/Library/Containers/com.apple.dt.GitLabHostBuiltInExtension
~/Library/Containers/com.apple.dt.GitLabSelfHostBuiltInExtension
~/Library/Containers/com.apple.dt.IDECacheDeleteAppExtension
~/Library/Containers/com.apple.dt.XCDocumenter.XCDocumenterExtension
~/Library/Containers/com.apple.dt.XcodeBuiltInExtensions
~/Library/Preferences/com.apple.dt.Instruments.plist
~/Library/Preferences/com.apple.dt.SKAgent.plist
~/Library/Preferences/com.apple.dt.Xcode.ITunesSoftwareService.plist
~/Library/Preferences/com.apple.dt.Xcode.LSSharedFileList.plist
~/Library/Preferences/com.apple.dt.Xcode.Playground.plist
~/Library/Preferences/com.apple.dt.Xcode.plist
~/Library/Preferences/com.apple.dt.xcodebuild.plist
Try deleting the DerivedData directory in ~/Library/Developer/Xcode
or
Try Uninstalling Xcode and then Reinstalling it

Nativescript project not running on ios

I am building my first nativescript project and everyting seems to work just fine on android. Now i am trying to build my project for ios and i cannot run it on REAL device. On ios emulator it runs just fine.
Now i took plain empty new project to test with and same issues are there.
I am running nativescript sidekick on osx machine.
tns --version: 5.0.1
node -v v10.13.0
so what i have done is:
open nativescript sidekick and create a new project (angular & typescript) with:
Template: "Blank"
Project name: "mobileApp"
Also ticked "automaticly set App ID" which is default
Then clicked on "create project" button
When the project was created i edited the Application identifier: "org.nativescript.mobileApp423142542514523462" (to make it unique).
next i went to "devices" section and selected my REAL ios device connected via USB and clicked on "cogs" to "autogenerate certificate" for this device (i am using apple FREE account).
after that i clicked on "run on device" (cloud build). The build was success only warning i see on the log is: "ld: Auto-Linking framework not found CoreServices" (with the yellow warning icon on the log). While building i see messages like:
(CLI) ** EXPORT SUCCEEDED **
Build step completed.
Download step started.
Download step completed.
(CLI) Installing on device ...
and then finally i see error:
(CLI) Unable to apply changes on device: 08049a7cf2271dbb1eacd935968c273a8dd8600e. Error is: Failed to install /Users/.../mobileApp/.cloud/ios/device/mobileApp.ipa on device with identifier 08049a7cf2271dbb1eacd935968c273a8dd8600e. Error is: Could not install application.
So has anyone else seen this or know how to resolve?
Next i changed nothing else but changed to local build and got the following error:
(CLI) Unable to apply changes on device: 08049a7cf2271dbb1eacd935968c273a8dd8600e. Error is: ENOENT: no such file or directory, scandir '/Users/.../Library/MobileDevice/Provisioning Profiles/'.
Looked at that path and "MobileDevice" folder does not exist.
Now if i create the missing folders manually and re-run the local build i got the error:
[18-12-08 12:43:30.260] (CLI) Skipping prepare.
[18-12-08 12:43:30.260] (CLI) Building project...
[18-12-08 12:43:31.053] (CLI) Xcode requires a team id to be specified when building for device.
[18-12-08 12:43:31.061] (CLI) You can specify the team id by setting the DEVELOPMENT_TEAM setting in build.xcconfig file located in App_Resources folder of your app, or by using the --teamId option when calling run, debug or livesync commands.
[18-12-08 12:43:31.513] (CLI) Xcode build...
[18-12-08 12:43:34.779] (CLI) 2018-12-08 12:43:34.777 xcodebuild[64353:104753258] [MT] DVTAssertions: ASSERTION FAILURE in /Library/Caches/com.apple.xbs/Sources/IDEXcode3ProjectSupport/IDEXcode3ProjectSupport-14460.26/Xcode3Core/LegacyProjects/Frameworks/DevToolsCore/DevToolsCore/RuntimeSupport/MacroExpansion/XCMacroExpansionExtensions.mm:94
[18-12-08 12:43:34.779] (CLI) Details: Assertion failed: [value isKindOfClass:[NSString class]] || [value isKindOfClass:[NSArray class]]
[18-12-08 12:43:34.779] (CLI) Object:
[18-12-08 12:43:34.779] (CLI) Method: -_xc_setValue:forMacroName:conditionSet:errorHandler:
[18-12-08 12:43:34.779] (CLI) Thread: {number = 1, name = main}
[18-12-08 12:43:34.779] (CLI) Hints:
[18-12-08 12:43:34.779] (CLI) Backtrace:
[18-12-08 12:43:34.779] (CLI) 0 -[DVTAssertionHandler handleFailureInMethod:object:fileName:lineNumber:assertionSignature:messageFormat:arguments:] (in DVTFoundation)
[18-12-08 12:43:34.779] (CLI) 1 _DVTAssertionHandler (in DVTFoundation)
[18-12-08 12:43:34.779] (CLI) 2 _DVTAssertionFailureHandler (in DVTFoundation)
[18-12-08 12:43:34.779] (CLI) 3 _DVTAssertionFailureHandler (in DVTFoundation)
[18-12-08 12:43:34.779] (CLI) 4 -[DVTMacroDefinitionTable(XCMacroExpansionExtensions) _xc_setValue:forMacroName:conditionSet:errorHandler:] (in DevToolsCore)
[18-12-08 12:43:34.779] (CLI) 5 -[DVTMacroDefinitionTable(XCMacroExpansionExtensions) _xc_setValue:forMacroName:errorHandler:] (in DevToolsCore)
[18-12-08 12:43:34.779] (CLI) 6 __108-[DVTMacroDefinitionTable(XCMacroExpansionExtensions) xc_setMacroNamesAndValuesFromDictionary:errorHandler:]_block_invoke (in DevToolsCore)
[18-12-08 12:43:34.779] (CLI) 7 -[__NSDictionaryM enumerateKeysAndObjectsWithOptions:usingBlock:] (in CoreFoundation)
[18-12-08 12:43:34.779] (CLI) 8 -[DVTMacroDefinitionTable(XCMacroExpansionExtensions) xc_setMacroNamesAndValuesFromDictionary:errorHandler:] (in DevToolsCore)
[18-12-08 12:43:34.779] (CLI) 9 +[DVTMacroDefinitionTable(XCProjectArchivingExtensions) xc_macroDefinitionTableFromDictionaryRepresentationForProjectArchiving:usingPropertyDefinitionsFromSpecificationDomain:] (in DevToolsCore)
[18-12-08 12:43:34.779] (CLI) 10 -[PBXBuildStyle _setBuildSettings:] (in DevToolsCore)
[18-12-08 12:43:34.779] (CLI) 11 -[PBXUnarchivingBinding readValueForObject:fromPListUnarchiver:] (in DevToolsCore)
[18-12-08 12:43:34.779] (CLI) 12 -[PBXObject _unarchiveValuesForArchiveMask:fromPListUnarchiver:] (in DevToolsCore)
[18-12-08 12:43:34.779] (CLI) 13 -[PBXObject readFromPListUnarchiver:] (in DevToolsCore)
[18-12-08 12:43:34.779] (CLI) 14 -[PBXBuildStyle readFromPListUnarchiver:] (in DevToolsCore)
[18-12-08 12:43:34.779] (CLI) 15 -[PBXPListUnarchiver _unarchiveObjectWithGlobalIDHexString:] (in DevToolsCore)
[18-12-08 12:43:34.779] (CLI) 16 -[PBXPListUnarchiver _decodeMutableObjectArrayFromPListArray:] (in DevToolsCore)
[18-12-08 12:43:34.779] (CLI) 17 -[PBXPListUnarchiver decodeMutableObjectArrayForKey:] (in DevToolsCore)
[18-12-08 12:43:34.779] (CLI) 18 -[PBXUnarchivingBinding readValueForObject:fromPListUnarchiver:] (in DevToolsCore)
[18-12-08 12:43:34.779] (CLI) 19 -[PBXObject _unarchiveValuesForArchiveMask:fromPListUnarchiver:] (in DevToolsCore)
[18-12-08 12:43:34.779] (CLI) 20 -[PBXObject readFromPListUnarchiver:] (in DevToolsCore)
[18-12-08 12:43:34.779] (CLI) 21 -[PBXPListUnarchiver _unarchiveObjectWithGlobalIDHexString:] (in DevToolsCore)
[18-12-08 12:43:34.779] (CLI) 22 -[PBXPListUnarchiver decodeObjectForKey:] (in DevToolsCore)
[18-12-08 12:43:34.779] (CLI) 23 -[PBXUnarchivingBinding readValueForObject:fromPListUnarchiver:] (in DevToolsCore)
[18-12-08 12:43:34.779] (CLI) 24 -[PBXObject _unarchiveValuesForArchiveMask:fromPListUnarchiver:] (in DevToolsCore)
[18-12-08 12:43:34.779] (CLI) 25 -[PBXObject readFromPListUnarchiver:] (in DevToolsCore)
[18-12-08 12:43:34.779] (CLI) 26 -[PBXPListUnarchiver _unarchiveObjectWithGlobalIDHexString:] (in DevToolsCore)
[18-12-08 12:43:34.779] (CLI) 27 -[PBXPListUnarchiver _decodeMutableObjectArrayFromPListArray:] (in DevToolsCore)
[18-12-08 12:43:34.779] (CLI) 28 -[PBXPListUnarchiver decodeMutableObjectArrayForKey:] (in DevToolsCore)
[18-12-08 12:43:34.779] (CLI) 29 -[PBXUnarchivingBinding readValueForObject:fromPListUnarchiver:] (in DevToolsCore)
[18-12-08 12:43:34.779] (CLI) 30 -[PBXObject _unarchiveValuesForArchiveMask:fromPListUnarchiver:] (in DevToolsCore)
[18-12-08 12:43:34.779] (CLI) 31 -[PBXObject readFromPListUnarchiver:] (in DevToolsCore)
[18-12-08 12:43:34.779] (CLI) 32 -[PBXProject readFromPListUnarchiver:] (in DevToolsCore)
[18-12-08 12:43:34.779] (CLI) 33 -[PBXPListUnarchiver _unarchiveObjectWithGlobalIDHexString:] (in DevToolsCore)
[18-12-08 12:43:34.779] (CLI) 34 -[PBXPListUnarchiver decodeRootObject] (in DevToolsCore)
[18-12-08 12:43:34.779] (CLI) 35 +[PBXProject projectWithFile:errorHandler:readOnly:] (in DevToolsCore)
[18-12-08 12:43:34.779] (CLI) 36 -[Xcode3Project initWithFilePath:extension:workspace:options:error:] (in DevToolsCore)
[18-12-08 12:43:34.779] (CLI) 37 __82+[IDEContainer _retainedContainerAtFilePath:fileDataType:workspace:options:error:]_block_invoke_2 (in IDEFoundation)
[18-12-08 12:43:34.779] (CLI) 38 _dispatch_client_callout (in libdispatch.dylib)
[18-12-08 12:43:34.779] (CLI) 39 _dispatch_queue_barrier_sync_invoke_and_complete (in libdispatch.dylib)
[18-12-08 12:43:34.779] (CLI) 40 DVTDispatchBarrierSync (in DVTFoundation)
[18-12-08 12:43:34.779] (CLI) 41 -[DVTDispatchLock performLockedBlock:] (in DVTFoundation)
[18-12-08 12:43:34.779] (CLI) 42 __82+[IDEContainer _retainedContainerAtFilePath:fileDataType:workspace:options:error:]_block_invoke (in IDEFoundation)
[18-12-08 12:43:34.779] (CLI) 43 __58-[DVTModelObjectGraph performBlockCoalescingModelChanges:]_block_invoke (in DVTFoundation)
[18-12-08 12:43:34.779] (CLI) 44 -[DVTModelGraphTransactionScope performTransaction:] (in DVTFoundation)
[18-12-08 12:43:34.779] (CLI) 45 -[DVTModelObjectGraph performBlockCoalescingModelChanges:] (in DVTFoundation)
[18-12-08 12:43:34.779] (CLI) 46 +[IDEContainer _retainedContainerAtFilePath:fileDataType:workspace:options:error:] (in IDEFoundation)
[18-12-08 12:43:34.779] (CLI) 47 +[IDEContainer retainedContainerAtFilePath:fileDataType:workspace:error:] (in IDEFoundation)
[18-12-08 12:43:34.779] (CLI) 48 -[IDEWorkspace _configureWrappedWorkspaceWithError:] (in IDEFoundation)
[18-12-08 12:43:34.779] (CLI) 49 -[IDEWorkspace _setContainerFilePath:upgradeToWorkspace:error:] (in IDEFoundation)
[18-12-08 12:43:34.779] (CLI) 50 +[IDEContainer retainedWrappedWorkspaceForContainerAtFilePath:fileDataType:error:] (in IDEFoundation)
[18-12-08 12:43:34.779] (CLI) 51 -[Xcode3CommandLineBuildTool _resolveInputOptionsWithTimingSection:] (in Xcode3Core)
[18-12-08 12:43:34.779] (CLI) 52 -[Xcode3CommandLineBuildTool run] (in Xcode3Core)
[18-12-08 12:43:34.779] (CLI) 53 main (in xcodebuild)
[18-12-08 12:43:34.779] (CLI) 54 start (in libdyld.dylib)
any help would be appreciated. Thank you
The application is expecting a file at
Users/.../Library/MobileDevice/Provisioning Profiles/
but that file does not exist (which is what ENOENT means). So you either haver to create the expected directory structure or else configure your application such that it looks in the correct directory.

Why does Xcode crash when I open a project?

I'm trying to open a project with the latest version of Xcode 5.0.2 (updated today). For some reason, it crashes. I can't open any project, it crashes all times :(
Crash report begins like this (if helps):
Process: Xcode [1631]
Path: /Applications/Xcode.app/Contents/MacOS/Xcode
Identifier: com.apple.dt.Xcode
Version: 5.0.2 (3335.32)
Build Info: IDEApplication-3335032000000000~4
App Item ID: 497799835
App External ID: 106632651
Code Type: X86-64 (Native)
Parent Process: launchd [133]
Responsible: Xcode [1631]
User ID: 501
Date/Time: 2013-11-12 18:14:14.782 +0100
OS Version: Mac OS X 10.9 (13A603)
Report Version: 11
Anonymous UUID: 041E96A2-1123-3287-3FF6-A3F30382FC69
Sleep/Wake UUID: C6807823-3147-4602-B01F-A2A9E80B8259
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Application Specific Information:
ProductBuildVersion: 5A3005
ASSERTION FAILURE in /SourceCache/DVTFoundation/DVTFoundation-3542/Framework/Classes/FileTypes/DVTFileDataType.m:616
Details: stringRep should be a non-empty string, but it is nil
Object: <DVTFileDataType>
Method: +fileDataTypeFromStringRepresentation:
Thread: <NSThread: 0x7fc7d9d151c0>{name = (null), num = 1}
Hints: None
Backtrace:
0 0x0000000102e69ea8 -[IDEAssertionHandler handleFailureInMethod:object:fileName:lineNumber:messageFormat:arguments:] (in IDEKit)
1 0x0000000101bf17a5 _DVTAssertionHandler (in DVTFoundation)
2 0x0000000101bf1ad4 _DVTAssertionFailureHandler (in DVTFoundation)
3 0x0000000101b8ca94 +[DVTFileDataType fileDataTypeFromStringRepresentation:] (in DVTFoundation)
4 0x0000000107fa5dd0 -[Xcode3TargetProduct fileDataType] (in DevToolsCore)
5 0x00000001025f25ce -[IDEBuildableProductRunnable runnableUTIType:] (in IDEFoundation)
6 0x00000001025ee340 -[IDEProfileSchemeAction _updateAnalysisToolService] (in IDEFoundation)
7 0x0000000101c02bc8 __73-[DVTObservingBlockToken observeValueForKeyPath:ofObject:change:context:]_block_invoke (in DVTFoundation)
8 0x0000000101c19e88 DVTInvokeWithStrongOwnership (in DVTFoundation)
9 0x0000000101b58479 -[DVTObservingBlockToken observeValueForKeyPath:ofObject:change:context:] (in DVTFoundation)
10 0x00007fff90c4bc18 NSKeyValueNotifyObserver (in Foundation)
11 0x00007fff90c4ade8 NSKeyValueDidChange (in Foundation)
12 0x00007fff90c4fa56 -[NSObject(NSKeyValueObserverNotification) didChangeValueForKey:] (in Foundation)
13 0x0000000102f6b395 -[IDEContextAutocreationController addBuildable:toScheme:] (in IDEKit)
14 0x0000000102f6bd68 -[IDEContextAutocreationController createSchemeForBuildable:withName:] (in IDEKit)
15 0x0000000102f6b16d -[IDEContextAutocreationController createDefaultSchemeForBuildable:] (in IDEKit)
16 0x0000000102cf2976 -[IDEContextAutocreationController autocreateSchemesForcingAutocreate:] (in IDEKit)
17 0x0000000101c03618 -[NSObject(DVTObservingConvenience) _dvt_newObserverForKeyPath:options:owner:withHandlerBlock:] (in DVTFoundation)
18 0x0000000101b57fc5 -[NSObject(DVTObservingConvenience) dvt_newObserverForKeyPath:options:owner:withHandlerBlock:] (in DVTFoundation)
19 0x0000000101c0326c -[NSObject(DVTObservingConvenience) dvt_addObserverForKeyPath:options:owner:withHandlerBlock:] (in DVTFoundation)
20 0x0000000102f6a11e __53-[IDEContextAutocreationController initForWorkspace:]_block_invoke_2 (in IDEKit)
21 0x0000000101c03618 -[NSObject(DVTObservingConvenience) _dvt_newObserverForKeyPath:options:owner:withHandlerBlock:] (in DVTFoundation)
22 0x0000000101b57fc5 -[NSObject(DVTObservingConvenience) dvt_newObserverForKeyPath:options:owner:withHandlerBlock:] (in DVTFoundation)
23 0x0000000101c0326c -[NSObject(DVTObservingConvenience) dvt_addObserverForKeyPath:options:owner:withHandlerBlock:] (in DVTFoundation)
24 0x0000000102f69e8b __53-[IDEContextAutocreationController initForWorkspace:]_block_invoke (in IDEKit)
25 0x0000000101c02bc8 __73-[DVTObservingBlockToken observeValueForKeyPath:ofObject:change:context:]_block_invoke (in DVTFoundation)
26 0x0000000101c19e88 DVTInvokeWithStrongOwnership (in DVTFoundation)
27 0x0000000101b58479 -[DVTObservingBlockToken observeValueForKeyPath:ofObject:change:context:] (in DVTFoundation)
28 0x00007fff90c4bc18 NSKeyValueNotifyObserver (in Foundation)
29 0x00007fff90c4ade8 NSKeyValueDidChange (in Foundation)
30 0x00007fff90c4fa56 -[NSObject(NSKeyValueObserverNotification) didChangeValueForKey:] (in Foundation)
31 0x000000010268481a __81-[IDEWorkspace _finishLoadingAsynchronously:shouldUpgradeFromSimpleFilesFocused:]_block_invoke (in IDEFoundation)
32 0x0000000102684ac1 __81-[IDEWorkspace _finishLoadingAsynchronously:shouldUpgradeFromSimpleFilesFocused:]_block_invoke281 (in IDEFoundation)
33 0x00007fff90c6b055 -[NSBlockOperation main] (in Foundation)
34 0x00007fff90c4a591 -[__NSOperationInternal _start:] (in Foundation)
35 0x00007fff90c4a23b __NSOQSchedule_f (in Foundation)
36 0x00007fff852dc2ad _dispatch_client_callout (in libdispatch.dylib)
37 0x00007fff852e3f03 _dispatch_main_queue_callback_4CF (in libdispatch.dylib)
38 0x00007fff859b9839 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ (in CoreFoundation)
39 0x00007fff85974b14 __CFRunLoopRun (in CoreFoundation)
40 0x00007fff85974275 CFRunLoopRunSpecific (in CoreFoundation)
41 0x00007fff8bc2ef0d RunCurrentEventLoopInMode (in HIToolbox)
42 0x00007fff8bc2ecb7 ReceiveNextEventCommon (in HIToolbox)
43 0x00007fff8bc2eabc _BlockUntilNextEventMatchingListInModeWithFilter (in HIToolbox)
44 0x00007fff8b0af28e _DPSNextEvent (in AppKit)
45 0x00007fff8b0ae8db -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] (in AppKit)
46 0x00007fff8b0a29cc -[NSApplication run] (in AppKit)
47 0x00007fff8b08d803 NSApplicationMain (in AppKit)
48 0x00007fff899005fd start (in libdyld.dylib)
The most common cause of these kinds of crashes is a corrupted DerivedData directory. You can delete this directory (and many of us do this regularly, just to keep things more stable).
Open Xcode
Preferences
Locations
The Derived Data option will tell you where your directory is
Delete that directory
Try to open your project
Personally, I select "Custom" for Derived Data, and put it in /tmp/xcode-build. This deletes the directory every time I reboot, and is easier to type than the default when I want to delete it by hand.
EDIT: One more common problem: you often need to reboot after upgrading Xcode. Since Xcode 5, that's been less of an issue, but it's still worth trying, especially if you're upgrading from Xcode 4.
Nothing work for me. I delete my .xcworkspace and regenerate .xcworkspace by pod install and work for me. but take a backup before you do so.

xcode crashes all the time !

I have crazy problem with xcode 4 when ever I want build and run my app IF the simulator be open xcode crashes !!!!! I never had this problem , I unistall the xcode 4.0 and then install new version 4.0.2 but still has this problem !
ASSERTION FAILURE in /SourceCache/IDEKit/IDEKit-303/Framework/Classes/Workspace/IDEWorkspaceTabController.m:2327
Details: Assertion failed: [suppressionTargetValue isEqualToString:_kUserDefaults_IDESuppressStopExecutionWarningTargetValue_Add]
Object: <IDEWorkspaceTabController: 0x201464400>
Method: -_showWarningForBuild:forOtherExecution:trackersToStop:taskActionBlock:
Thread: <NSThread: 0x200020700>{name = (null), num = 1}
Hints: None
Backtrace:
0 0x0000000100949773 -[IDEAssertionHandler handleFailureInMethod:object:fileName:lineNumber:messageFormat:arguments:] (in IDEKit)
1 0x000000010006d394 _DVTAssertionFailureHandler (in DVTFoundation)
2 0x0000000100931e02 -[IDEWorkspaceTabController _showWarningForBuild:forOtherExecution:trackersToStop:taskActionBlock:] (in IDEKit)
3 0x00000001008e830b -[IDEWorkspaceTabController _performContextTask:command:commandName:] (in IDEKit)
4 0x00007fff88486e9a -[NSApplication sendAction:to:from:] (in AppKit)
5 0x00000001001cf63c -[DVTApplication sendAction:to:from:] (in DVTKit)
6 0x000000010085b656 -[IDEApplication sendAction:to:from:] (in IDEKit)
7 0x00007fff884ab41e -[NSMenuItem _corePerformAction] (in AppKit)
8 0x00007fff884ab188 -[NSCarbonMenuImpl performActionWithHighlightingForItemAtIndex:] (in AppKit)
9 0x00007fff88490e09 -[NSMenu performKeyEquivalent:] (in AppKit)
10 0x00007fff8848fbb1 -[NSApplication _handleKeyEquivalent:] (in AppKit)
11 0x00007fff88360645 -[NSApplication sendEvent:] (in AppKit)
12 0x000000010085b36e -[IDEApplication sendEvent:] (in IDEKit)
13 0x00007fff882f74da -[NSApplication run] (in AppKit)
14 0x00007fff882f01a8 NSApplicationMain (in AppKit)
15 0x0000000100000eec
16 0x0000000000000002
XCode - Preference - General - Dialog Warnings - Reset "Don`t Ask Me" Warnings button Click!
I solved this problem.
Check your Disk's permissions. Start Disk Utility and do Verify Disk and Repair Permissions.

Resources