diff --git a/projectfiles/Xcode/Mac Sources/Wesnoth_Prefix_Release.pch b/projectfiles/Xcode/Mac Sources/Wesnoth_Prefix_Release.pch new file mode 100644 index 000000000000..b1ccb4c8bdff --- /dev/null +++ b/projectfiles/Xcode/Mac Sources/Wesnoth_Prefix_Release.pch @@ -0,0 +1,7 @@ +// +// This is now needed for release builds of the 'Wesnoth' target in the 'Wesnoth' project +// because somehow sys/types.h does not seem to be added automatically in the latest Xcode +// any more for the combination of SDKs and build targets used for release builds. +// + +#include diff --git a/projectfiles/Xcode/Wesnoth.xcodeproj/project.pbxproj b/projectfiles/Xcode/Wesnoth.xcodeproj/project.pbxproj index 8e2a5f1186c1..53a40ac26dce 100644 --- a/projectfiles/Xcode/Wesnoth.xcodeproj/project.pbxproj +++ b/projectfiles/Xcode/Wesnoth.xcodeproj/project.pbxproj @@ -4992,7 +4992,7 @@ ); GCC_OPTIMIZATION_LEVEL = s; GCC_PRECOMPILE_PREFIX_HEADER = YES; - GCC_PREFIX_HEADER = ""; + GCC_PREFIX_HEADER = "./Mac Sources/Wesnoth_Prefix_Release.pch"; GCC_PREPROCESSOR_DEFINITIONS = ( "LOCALEDIR=\\\"translations\\\"", "LUA_USE_MACOSX=1",