Check for working Xcode C compiler fails due to missing bundle identifier in test program
This means it is impossible to generate Xcode projects. This is a complete showstopper. I'm surprised there isn't an issue already filed and that I found nothing in a wider internet search.
Here is the error message. I've seen a missing product bundle identifier message from Xcode while developing my own code. It started with a recent version of Xcode. I can't remember if it was 10 or 11. I'm currently using 11.4.1 on macOS Catalina. Cmake 3.17.2.
Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang - broken
CMake Error at /Applications/CMake.app/Contents/share/cmake-3.17/Modules/CMakeTestCCompiler.cmake:60 (message):
The C compiler
"/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: /Users/mark/Projects/github/KTX-Software/lib/basisu/build/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/xcodebuild -project CMAKE_TRY_COMPILE.xcodeproj build -target cmTC_32c34 -configuration Debug -hideShellScriptEnvironment && Command line invocation:
/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -project CMAKE_TRY_COMPILE.xcodeproj build -target cmTC_32c34 -configuration Debug -hideShellScriptEnvironment
User defaults from command line:
HideShellScriptEnvironment = YES
Prepare build
note: Using legacy build system
=== BUILD TARGET cmTC_32c34 OF PROJECT CMAKE_TRY_COMPILE WITH CONFIGURATION Debug ===
Check dependencies
Code Signing Error: Bundle identifier is missing. cmTC_32c34 doesn't have a bundle identifier. Add a value for PRODUCT_BUNDLE_IDENTIFIER in the build settings editor.
** BUILD FAILED **
The following build commands failed:
Check dependencies
(1 failure)