Error when compiling with Xcode 16.2

I'm trying to compile my iPad app with Xcode 16.2 and I'm consistently getting this error message:

couldn't find compile unit for the macro table with offset = 0x0

This is happening at the GenerateDSymFile step. I've tried changing the debug format from Dwarf with Dsym to Dwarf and then back again, as I've read there was a problem with generating the dsyms. But the problem persists.

I've tried searching for this error and found nothing online, so apparently I'm the only one! How strange.

Are there any settings or flags I can change to try to get more information about what's going wrong?

Does your build still complete with a dSYM file on disk, or does this cause the entire build to fail? If you get a dSYM file on disk, try pointing the dwarfdump --verify command at it.

— Ed Ford,  DTS Engineer

@DTS Engineer I am not the OP but am experiencing the same.

dwarfdump --verify returned No errors. (after a bunch of Verifying... lines)

Is there anything that's tinkered with the ModuleCache directory in ~/Developer/Xcode/DerivedData between when the compilation and linking completes and GenerateDSymFile runs?

— Ed Ford,  DTS Engineer

@niclaughter said:

I'm seeing the same thing. this started after doing the Xcode "update to recommended settings" on an existing Objective-C project.

What's in the diff for the Xcode project before and after applying the recommended settings? Listing the build settings that changed for your project could be helpful to others here.

— Ed Ford,  DTS Engineer

Error when compiling with Xcode 16.2
 
 
Q