I use a macOS Catalina system, and Xcode 11.2.1 normally. I installed Xcode 10.2.1 as requested, but then when I try to build swiftgen it fails because the generated bindingmetadata.*.swift files reference macOS Catalina APIs, which are not present in the macOS Mojave SDK included with that version of Xcode (xcrun --show-sdk-path prints a copy of the Catalina SDK included with the command-line tools under /Library). This results in swiftc emitting module-not-found errors, breaking the build. If I change Make.config to use my copy of Xcode 11, these errors go away.
However, in what might or might not be an unrelated issue, I then run into "no such module System.Net.Http" errors in those same files, as well as an error about building the ObjC module for GameKit.framework. (The GameKit error is preceded by the oh-so-helpful error message <unknown>:0: error: (null) attribute only applies to kernel functions, where all of the salient information is missing.) Thanks for looking into this for me!
I use a macOS Catalina system, and Xcode 11.2.1 normally. I installed Xcode 10.2.1 as requested, but then when I try to build swiftgen it fails because the generated bindingmetadata.*.swift files reference macOS Catalina APIs, which are not present in the macOS Mojave SDK included with that version of Xcode (
xcrun --show-sdk-path
prints a copy of the Catalina SDK included with the command-line tools under/Library
). This results in swiftc emitting module-not-found errors, breaking the build. If I change Make.config to use my copy of Xcode 11, these errors go away.However, in what might or might not be an unrelated issue, I then run into "no such module System.Net.Http" errors in those same files, as well as an error about building the ObjC module for GameKit.framework. (The GameKit error is preceded by the oh-so-helpful error message
<unknown>:0: error: (null) attribute only applies to kernel functions
, where all of the salient information is missing.) Thanks for looking into this for me!