Post

Replies

Boosts

Views

Activity

Xcode using an inconsistent version of make
Hello! I'm new to Xcode and Apple development in general. I'm trying to set up Xcode to work with an existing C++ project that uses Makefiles. I'm using Xcode 14.2. I have the project set up as an "External Build System" project with the "Directory" setting pointing at the root of my project's source (where the Makefile is located), and the "Build Tool" set to /usr/bin/make (the default). When I do Product -> Build, the project builds fine. However, when I view the build log I see that it is invoking /Applications/Xcode.app/Contents/Developer/usr/bin/make instead of /usr/bin/make. The two files are not the same. The /usr/bin/make file has a size of 167136 bytes. The /Applications/Xcode.app/Contents/Developer/usr/bin/make file has a size of 436512. So, it appears that Xcode is using the 'make' that is part of its own installation and not the 'make' that is explicitly specified as part of the "External Build System" configuration. Is this normal behavior? It seems rather odd to me. I also notice inconsistencies. If I try to use /usr/bin/make directly (for example, in a separate terminal), after I've done a build via Xcode, I tend to get errors like this: "warning: object file (clac.o) was built for newer macOS version (13.1) than being linked (13.0)" I don't fully understand what this is telling me, but I feel like it's related to the inconsistency I described above. Thanks for any help, advice, or thoughts you might have!
3
0
998
Dec ’22