• 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
SOLVED Re: XCode 4 project failed «PBXVariantGroup» issue
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SOLVED Re: XCode 4 project failed «PBXVariantGroup» issue


  • Subject: SOLVED Re: XCode 4 project failed «PBXVariantGroup» issue
  • From: Martin-Gilles Lavoie <email@hidden>
  • Date: Fri, 11 Mar 2011 10:57:51 -0800 (PST)

Seems XCode is to blame.

I removed all Localizable.strings files in my project. After test compile, everything was fine.
After re-adding them to the project, XCode reported an internal error:

> Xcode encountered an internal logic error. Choose "Continue" to continue running Xcode in an inconsistent state.  Choose "Crash" to halt Xcode and file a bug with Crash Reporter. Choosing "Crash" will result in the loss of all unsaved data.

> UNCAUGHT EXCEPTION (NSRangeException): *** -[NSArray subarrayWithRange:]: index (9) beyond bounds (9)
> UserInfo: (null)
> Hints: None
> Backtrace:
>   0  0x00007fff869ad796 __exceptionPreprocess (in CoreFoundation)
>   1  0x00007fff857f10f3 objc_exception_throw (in libobjc.A.dylib)
>   2  0x00007fff869778e4 -[NSArray subarrayWithRange:] (in CoreFoundation)
>   3  0x0000000117106b5b -[Xcode3Group structureEditInsertFileURLs:atIndex:createGroupsForFolders:] (in Xcode3Core)
>   4  0x00000001009a5117 +[IDEContainerItemStructureEditingTarget _acceptDropAtIndex:withContext:fileURLs:] (in IDEKit)
>   5  0x00000001009a557d +[IDEContainerItemStructureEditingTarget _acceptDropAtIndex:withContext:] (in IDEKit)
>   6  0x00000001009a5aa7 __87+[IDEContainerItemStructureEditingTarget _structureEditingAcceptDropWithContext:index:]_block_invoke_0 (in IDEKit)
>   7  0x00000001009af118 -[IDEAssistantWindowController endAssistantSessionWithResult:error:] (in IDEKit)
>   8  0x00000001009b029f __47-[IDEAssistantWindowController goNextOrFinish:]_block_invoke_0 (in IDEKit)
>   9  0x00000001009b00c7 -[IDEAssistantWindowController goNextOrFinish:] (in IDEKit)
>  10  0x00007fff85c94e9a -[NSApplication sendAction:to:from:] (in AppKit)
>  11  0x00000001001cf63c -[DVTApplication sendAction:to:from:] (in DVTKit)
>  12  0x000000010085b9f6 -[IDEApplication sendAction:to:from:] (in IDEKit)
>  13  0x00007fff85c94df9 -[NSControl sendAction:to:] (in AppKit)
>  14  0x00007fff85d2076b -[NSCell trackMouse:inRect:ofView:untilMouseUp:] (in AppKit)
>  15  0x00007fff85d512aa -[NSButtonCell trackMouse:inRect:ofView:untilMouseUp:] (in AppKit)
>  16  0x00007fff85d1f215 -[NSControl mouseDown:] (in AppKit)
>  17  0x00007fff85c3934f -[NSWindow sendEvent:] (in AppKit)
>  18  0x00007fff85b6ea86 -[NSApplication sendEvent:] (in AppKit)
>  19  0x000000010085b70e -[IDEApplication sendEvent:] (in IDEKit)
>  20  0x00007fff85b054da -[NSApplication run] (in AppKit)
>  21  0x00007fff85afe1a8 NSApplicationMain (in AppKit)
>  22  0x0000000100000eec

That is after I dropped all files together in one drag-and-drop operation. Clicking Crash on that avoids saving changes to the project.

I then re-launched XCode, built it to ensure it was still fine, and then added all Localizable.strings files one by one. No error and project builds fine.

The morale: dont drop more than 1 file at a time in your project.

Will file a bug.


On 11 mars 2011, at 13:25, Martin-Gilles Lavoie wrote:

> I have a project that compiled just fine in XCode 3.2.6 which is having issues in XCode 4.
>
> I get an error during the copy file build phase where it`s not finding a file:
>
> 	/Volumes/Oracle/X-Data/Users/lavoie/Library/Developer/Xcode/DerivedData/Communicator-fxdolpqzlwbmvhhhmywcddnbnggn/Build/Products/Debug-iphonesimulator/../../Resources/en.lproj/Localizable.strings:0: error: The file “Localizable.strings” couldn’t be opened because there is no such file.
>
> I have examined the Derived Data hierarchy and indeed, there is no
>
> 	 (...) Debug-iphonesimulator/../../Resources*
>
> directory. Instead, there is a
>
> 	(...) Debug-iphonesimulator/MyApp.app/en.lproj/Localizable.strings
>
> I examined the project file iself (ie, MyProj.xcodeproj/project.pbxproj) and found this blurb:
>
> /* Begin PBXVariantGroup section */
> 		A2D7CD071060046B00CD4AA0 /* Localizable.strings */ = {
> 			isa = PBXVariantGroup;
> 			children = (
> 				A22B9EBA1060251D004D3C2E /* en */,
> 				D8EE9630107D70C4006DEFB5 /* de */,
> 				D8883CF41060AB26001708B7 /* es */,
> 				A22B9EF410602700004D3C2E /* fr */,
> 				A22B9EF3106026E5004D3C2E /* it */,
> 				A22B9EF2106026D5004D3C2E /* ja */,
> 				A22B9EF1106026C3004D3C2E /* ko */,
> 				D80DA03E1085603100B87FEC /* pt */,
> 				A22B9EEF10602697004D3C2E /* zh_CN */,
> 				A2D7CD4F10600BA400CD4AA0 /* zh_TW */,
> 			);
> 			name = Localizable.strings;
> 			path = ../..;
> 			sourceTree = BUILT_PRODUCTS_DIR;
> 		};
> /* End PBXVariantGroup section */
>
> The path property in there looks suspicious.
>
> Anyone else has gotten this error?
>
> Any clues as to how to resolve this?
>
>
> Martin-Gilles Lavoie _______________________________________________
> 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

GIF image


Martin-Gilles Lavoie | Senior software developer | 514.905.8658
Oracle - Macintosh Native Desktop Client, Beehive Conferencing
600, boul. de Maisonneuve West, Suite  1900 | Montréal (Québec)  H3A 3J2




 _______________________________________________
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: 
 >XCode 4 project failed «PBXVariantGroup» issue (From: Martin-Gilles Lavoie <email@hidden>)

  • Prev by Date: Re: Xc4: Delete a code snippet?
  • Next by Date: Re: Xcode 4 related questions
  • Previous by thread: XCode 4 project failed «PBXVariantGroup» issue
  • Next by thread: Header files from Static Libraries vs. Project->Archive
  • Index(es):
    • Date
    • Thread