Warning: linking module flags 'SDK Version': IDs have conflicting values

When building my app with Xcode 11 (11A419c), I'm seeing a new warning in my build output:


warning: linking module flags 'SDK Version': IDs have conflicting values


The warning is output during the "Linking Metal AIR" step of the build (i.e. MetalLink). I haven't been able to find any information about what it means or how to fix it. Any ideas?

Replies

You are not alone. We have the same warning:


LLVM ERROR: Error opening /Users/***/Library/Developer/Xcode/DerivedData/***/Build/Intermediates.noindex/ArchiveIntermediates/***/IntermediateBuildFilesPath/***.build/Release-iphoneos/***.build/MetalKernels.air': No such file or directory!


warning: linking module flags 'SDK Version': IDs have conflicting values

I have the same warning - no idea what it means.

The Metal code works, so there's that. Still annoying tho'.

I have the same warning iOS 13 XCode 11

Would love to know how to get to the bottom of it.

I'm seeing this with the option -cikernel, and it goes away if the option is removed (but I need the option!)
This is in Xcode 11.7. It's pretty frustrating.