Xcode has Crash Error to launch iOS Simulator with Debug

Originator:ambientocclusion9
Number:rdar://19906964 Date Originated:20-Feb-2015 12:52 PM
Status:Open Resolved:
Product:Developer Tools Product Version:
Classification: Reproducible:
 
Summary:
Xcode sometimes crashes when I run the app that I'm making in iOS simulator with enabled breakpoints of debugger.
When it is happened, I have to recompile the main code of the app that is not sub projects of the app.
It is usually solved by the recompiling, but it rarely cannot be solved by it. I have to clean project, Delete Provisioning Profiles, and Code signing Identities.
According to the Crash logs, the problem is related Code Signing even though iOS Simulator does not need to be signed.

Steps to Reproduce:
1. Make main projects of the iOS app.
2. Make sub projects which generates libraries.
3. Add the sub projects to the main projects.
4. Edit only codes belongs sub projects and run in iOS Simulator with debugger for a while.

Expected Results:
Suppose launch in iOS Simulator with debugger without crash. 
The crash logs is below.

Crashed Thread:        30  <DBGLLDBSessionThread (pid=32618)>

Exception Type:        EXC_BAD_ACCESS (Code Signature Invalid)
Exception Codes:       0x0000000000000032, 0x000000012e92d000

kernel messages:
-1 sec           	CODE SIGNING: cs_invalid_page(0x12e92d000): p=29181[Xcode] final status 0x3004200, denying page sending SIGKILL
-1 sec           	CODE SIGNING: process 29181[Xcode]: rejecting invalid page at address 0x12e92d000 from offset 0x2108000 in file "/Documents/*/APP_NAME.app/APP_NAME" (cs_mtime:1424463075.0 == mtime:1424463075.0) (signed:1 validated:1 tainted:1 wpmapped:0 slid:0)

VM Regions Near 0x12e92d000:
    mapped file            000000012c3e1000-000000012c825000 [ 4368K] r--/rwx SM=COW  /Documents/*/*.pch
--> mapped file            000000012c825000-000000012f119000 [ 41.0M] r--/rwx SM=COW  /Documents/*/APP_NAME.app/APP_NAME
    mapped file            000000012f119000-0000000132208000 [ 48.9M] r--/rwx SM=COW  /Documents/*


Thread 30 Crashed:: <DBGLLDBSessionThread (pid=32618)>
0   com.apple.LLDB.framework      	0x000000011202c7a6 lldb_private::DataExtractor::GetMaxU64_unchecked(unsigned long long*, unsigned long) const + 114
1   com.apple.LLDB.framework      	0x00000001121312e3 ObjectFileMachO::ParseSymtab() + 3709
2   com.apple.LLDB.framework      	0x00000001121303d2 ObjectFileMachO::GetSymtab() + 158
3   com.apple.LLDB.framework      	0x00000001121d52f8 lldb_private::SymbolVendor::GetSymtab() + 64
4   com.apple.LLDB.framework      	0x000000011207026f lldb_private::Module::ResolveSymbolContextForAddress(lldb_private::Address const&, unsigned int, 

Actual Results:
Xcode is crashed even though iOS simulator is ran my app.


Version:
Xcode 6.1.1 on Yosemite 10.10.2.

It was never happened when I was using Xcode 5 on Mavericks.

Notes:


Configuration:
It is started to crash when I upgrade to Yosemite with Xcode 6.
It was never happened when I was using Xcode 5 on Mavericks.


Attachments:

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!