ios - XCode 4.2 crash on multiple targets setup -


I repeated a goal and modified the associated asset list file. A preprocessor macro was added which helps to create duplicated targets from the same source files.

But when I try to build clean XCode 4.2 is crashing. Interestingly, it works fine on an initial build but when I clean up the original target and try to recreate the duplicated target, the XCode crashes.

Enter image details here

Stack trace -

  / SourceCache / IDEKit / IDEKit-955 / Framework / Classes / Editor / IDEEditorDocument.m: 635 Description: (Last known editing date) should not be zero. Object: & lt; IDEQuickLookDocument: 0x4020b7fc0 & gt; Method: Change the_support fileOnDiskWidthWidth Path: Thread: & lt; NSThread: 0x40010a260 & gt; {Name = (zero), num = 1} sign: no backtrace: 0x0000000107035466 - [IDEAssertionHandler HandlefileReind Method: Object: Filename: LineNumber: Message Format: Logic] (in IDEKit) 1 0x00000001066a8794 _DVTAssertionFailureHandler (in DVTFoundation) 2 0x0000000106fb66c7 - [IDEEditorDocument _respondToFileChangeOnDiskWithFilePath:] (in IDEKit) 3 0x00007fff8ca4ca82 _dispatch_call_block_and_release (in libdispatch.dylib) 4 in 0x00007fff8ca4e8f2 _dispatch_main_queue_callback_4CF (libdispatch.dylib) 5 0x00007fff8c2fee7c __CFRunLoopRun (in CoreFoundation) Fundeshn core 6 0x00007fff8c2fe486 CFRunLoopRunSpecific () 7 0x00007fff8f07e2bf in RunCurrentEventLoopInMode (Hitman) 8 0x00007fff8f08556d ReceiveNextEventCommon ( In Itman) in 9 0x00007fff8f0853fa Blokyuentilakstaventmacinglistinmod (Hitmul) in 10 0x00007fff869e2779 _DPSNextEvent (Apakit) 11 0x00007fff869e 207d - [Ansapikent Agrest matching masks: Dated: In-Mod: Dekyu:] (in Aepakit) 12 0x00007fff869de9b9 - [Ansapikling run] (in Aepakit ) 13 0x00007fff86c5aeac nsapplification main (in appetizers) 14 0x0000000106637eec (in xcode)  

Has anyone ever encountered this issue before? Thank you.

I got the answer. The project file was from Xcode 4.1 but I was using version 4.2 to create it. When I used version 4.1 to create a project, everything worked fine. The interesting thing is that there was no warning when I used an upgrade version to open the project file.

Some things to note while duplicating a goal -

  1. Change the product name of the target also the built-in settings Just modifying the target file name is not going to change even in the build settings as well.

  2. If the new target is to use a different GUI, then use the same name . Plist in correspoinding in file

  3. There is a need to include a new GUI file in the bundle.

  4. Preprocessor macro for compiler flag should be for new target only


Comments