For me It was okay when I compiled and distributed with Xcode 15.2 and my app contains a FFmpegKit package which occurred with the same error above in the newer versions (Xcode 15.4 and later 16) because there's a bundle called libshaderc_combined. Personally, I don't know why there's "suddenly" a restriction to forbid the underscored in CFBundleIdentifier. It seems that the restriction published years ago but some of the third-party packages cannot work properly since I upgraded my Xcode from 15.2 to 15.4.