• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Help - XCode '<unknown>' platform error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Help - XCode '<unknown>' platform error


  • Subject: Re: Help - XCode '<unknown>' platform error
  • From: "Robert Černý" <email@hidden>
  • Date: Mon, 13 Oct 2008 16:56:40 +0200

Renaud,
check Organizer window of XCode. DO you happen to have iPhone there? If so, remove it and add it again. It did help me.

Robert

2008/10/13 Renaud Guérin <email@hidden>
Hi,

I've just installed the latest iPhone SDK (iPhone SDK and Xcode 3.1.1 Developer Tools for iPhone OS 2.1) on my Mac Pro running 10.5.5
Upon launch, XCode displays an "Internal Error" dialog box with the following info :

Uncaught Exception:
*** -[NSCFString replaceCharactersInRange:withString:]: nil argument

Stack Backtrace:
The stack backtrace has been logged to the console.

The console log says:

Oct 13 09:32:33 Jupiter Xcode[1326]: Failed to load specification for platform '<unknown>'. Reason: malformed property list dictionary (required key 'Identifier' not present)
Oct 13 09:32:33 Jupiter Xcode[1326]: -[NSConcreteMutableAttributedString initWithString:attributes:] called with nil string argument. This has undefined behavior and will raise an exception in post-Leopard linked apps. This warning is displayed only once.
Oct 13 09:32:34 Jupiter Xcode[1326]: ** INTERNAL ERROR: Uncaught Exception **\nException: *** -[NSCFString replaceCharactersInRange:withString:]: nil argument\nStack:\n  0  0x9414814b __raiseError (in CoreFoundation)\n  1  0x91116e3b objc_exception_throw (in libobjc.A.dylib)\n  2  0x94147f2b +[NSException raise:format:arguments:] (in CoreFoundation)\n  3  0x94147f6a +[NSException raise:format:] (in CoreFoundation)\n  4  0x95da1e0e mutateError (in Foundation)\n  5  0x95cde9ec -[NSConcreteMutableAttributedString replaceCharactersInRange:withString:] (in Foundation)\n  6  0x95cde7b1 -[NSConcreteMutableAttributedString initWithString:attributes:] (in Foundation)\n  7  0x000cd19d -[NSMutableAttributedString(TSFoundationExtra) appendString:attributes:] (in DevToolsSupport)\n  8  0x00c97744 -[PBXAssertionHandler handleFailureInMethod:object:fileName:lineNumber:messageFormat:arguments:] (in DevToolsInterface)\n  9  0x0078aa84 _XCAssertionFailureHandler (in DevToolsCore)\n 10  0x00776c88 -[XCPlatformSpecification initWithPropertyListDictionary:path:inDomain:] (in DevToolsCore)\n 11  0x007785bd +[XCPlatformSpecification loadAllPlatforms] (in DevToolsCore)\n 12  0x00763d1d XCInitializeCoreIfNeeded (in DevToolsCore)\n 13  0x0000330a\n 14  0x95cb11da _nsnote_callback (in Foundation)\n 15  0x940afaba __CFXNotificationPost (in CoreFoundation)\n 16  0x940afd93 _CFXNotificationPostNotification (in CoreFoundation)\n 17  0x95cae440 -[NSNotificationCenter postNotificationName:object:userInfo:] (in Foundation)\n 18  0x95cb7c88 -[NSNotificationCenter postNotificationName:object:] (in Foundation)\n 19  0x901eaf8d -[NSApplication finishLaunching] (in AppKit)\n 20  0x901eaa13 -[NSApplication run] (in AppKit)\n 21  0x901b7f14 NSApplicationMain (in AppKit)\n 22  0x00002c82

And when choosing "New Project" in XCode, it only shows the "macosx.platform" templates.

I have read about this problem in the list archives before, but I couldn't find a solution that works for me.
I've tried reinstalling XCode numerous times, trashing XCode preferences, fixing permissions, launching XCode with the "guest" user account : same thing.

Here's what I have under /Developer/Platforms :

drwxrwxr-x  6 root  admin  204  9 oct 15:16 MacOSX.platform
drwxrwxr-x  7 root  admin  238 13 oct 09:31 iPhoneOS.platform
drwxrwxr-x  4 root  admin  136 13 oct 09:31 iPhoneSimulator.platform

MacOSX.platform:
total 96
drwxrwxr-x  3 root  admin    102 31 jul 07:30 Developer
-rw-rw-r--  1 root  admin    911 31 jul 07:30 Info.plist
-rw-rw-r--  1 root  admin  38149 31 jul 07:30 MacOSX.icns
-rw-rw-r--  1 root  admin    402 31 jul 07:31 version.plist

iPhoneOS.platform:
total 224
drwxrwxr-x  7 root  admin     238  9 oct 15:06 Developer
drwxrwxr-x  7 root  admin     238  9 oct 15:06 DeviceSupport
-rw-r--r--  1 root  admin    2259  9 oct 15:17 Info.plist
-rw-rw-r--  1 root  admin  107919 11 aoû 06:41 iPhoneOS.icns
drwxrwxr-x  3 root  admin     102 28 aoû 08:42 usr

iPhoneSimulator.platform:
total 8
drwxrwxr-x  7 root  admin   238  9 oct 15:06 Developer
-rw-r--r--  1 root  admin  1490  9 oct 15:19 Info.plist

The plist files have a valid syntax :

sh-3.2# plutil -lint iPhoneOS.platform/Info.plist 
iPhoneOS.platform/Info.plist: OK
sh-3.2# plutil -lint iPhoneSimulator.platform/Info.plist 
iPhoneSimulator.platform/Info.plist: OK
sh-3.2# plutil -lint MacOSX.platform/Info.plist 
MacOSX.platform/Info.plist: OK

The iPhoneOS plist for instance, does have an "Identifier" key, but there are 2 weird , variabled entries $(SDK_NAME) and $(IPHONEOS_DEPLOYMENT_TARGET)  :

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>AdditionalInfo</key>
<dict>
<key>CFBundleResourceSpecification</key>
<string>ResourceRules.plist</string>
<key>DTPlatformName</key>
<string>iphoneos</string>
<key>DTSDKName</key>
<string>$(SDK_NAME)</string>
<key>MinimumOSVersion</key>
<string>$(IPHONEOS_DEPLOYMENT_TARGET)</string>
</dict>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleIdentifier</key>
<string>com.apple.platform.iphoneos</string>
<key>CFBundleName</key>
<string>iPhone OS platform</string>
<key>CFBundleShortVersionString</key>
<string>2.1</string>
<key>DefaultDebuggerSettings</key>
<dict>
<key>DataFormattersLocationPath</key>
<string>/Developer/usr/lib</string>
<key>DisableGuardMallocInDebugger</key>
<string>YES</string>
<key>DisableRestartInDebugger</key>
<string>YES</string>
<key>ProvidesAttachList</key>
<string>YES</string>
<key>RequiresDeviceForLaunch</key>
<string>YES</string>
<key>RunInDebugger</key>
<string>YES</string>
</dict>
<key>DefaultProperties</key>
<dict>
<key>ADDITIONAL_BUILD_STEPS</key>
<array>
<string>com.apple.platform.iphoneos.build-tools.iphoneos-optimize</string>
</array>
<key>ARCHS</key>
<string>armv6</string>
<key>DEBUG_INFORMATION_FORMAT</key>
<string>dwarf-with-dsym</string>
<key>EMBEDDED_PROFILE_NAME</key>
<string>embedded.mobileprovision</string>
<key>NATIVE_ARCH</key>
<string>armv6</string>
<key>PROVISIONING_PROFILE[sdk=iphoneos*]</key>
<string>DefaultProfileUuid</string>
<key>PROVISIONING_PROFILE_ALLOWED</key>
<string>YES</string>
<key>PROVISIONING_PROFILE_REQUIRED</key>
<string>YES</string>
<key>SDKROOT</key>
<string>iPhoneOS2.1</string>
</dict>
<key>Description</key>
<string>iPhone OS Device</string>
<key>FamilyIdentifier</key>
<string>iphoneos</string>
<key>FamilyName</key>
<string>iPhone OS</string>
<key>Icon</key>
<string>iPhoneOS.icns</string>
<key>Identifier</key>
<string>com.apple.platform.iphoneos</string>
<key>Name</key>
<string>iphoneos</string>
<key>Type</key>
<string>Platform</string>
</dict>
</plist>


Any help would be very appreciated.
Thanks
 

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Help - XCode '<unknown>' platform error (From: Renaud Guérin <email@hidden>)

  • Prev by Date: A little bug with code completion
  • Next by Date: Re: Help - can't debug plugins anymore
  • Previous by thread: Help - XCode '<unknown>' platform error
  • Next by thread: Re: Help - XCode '<unknown>' platform error
  • Index(es):
    • Date
    • Thread