xcode changes dsym bundle identifier

I have included a number of plugins with my app. If I get xCode to compile a dsym file, it changes the identifier from x.y.z to com.apple.xcode.dsym.x.y.z

When I try to upload it, it gives the error Invalid Bundle. The application bundle may not contain tools or frameworks provided by Apple, or using bundle identifiers in the 'com.apple.' namespace. Invalid bundle: [hk.cinder.Monitor2.pkg/Payload/Monitor2.app/Contents/Resources/Modules/Release/BIS.bundle.dSYM], with bundle identifier 'com.apple.xcode.dsym.x.y.z.BIS'. (ID: 3c2029d4-93fb-48fe-8ec0-c2c28a810167)

Anyone got any idea what is going on?

Do you have specific reasons to be including the dSYM file as part of the app bundle for download to customers? That's not the common case, so I'd look at why the dSYM file is remaining in Resources/Modules/Release/BIS.bundle.dSYM when you upload it to the App Store.

— Ed Ford,  DTS Engineer

Because if I don't include them, I get a warning during the submission process that I haven't done so.

dSYM files never go inside the app bundle. During an archive action in Xcode, dSYM files land in YourApp.xcarchive/dSYMs, so that's where you should expect to be finding this particular dSYM before submitting to the App Store. If that's not the case, it would be helpful to go backwards through your build process to figure out why that's not happening. For example, I'm noticing the path component Resources/Modules/Release/BIS.bundle.dSYM , which makes me think there's a component to your build which is moving entire directories named Modules or Release around which is having unintended consequences here.

— Ed Ford,  DTS Engineer

xcode changes dsym bundle identifier
 
 
Q