xamarin / binding-tools-for-swift

MIT License
157 stars 21 forks source link

Xcode version mismatch bug #172

Open wjk opened 4 years ago

wjk commented 4 years ago

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!

rolfbjarne commented 4 years ago

Could you please attach your complete build log from running make in the top-level directory? That would help us understand what's going wrong.

wjk commented 4 years ago

make.log

This log was emitted while building using Xcode 11, as the version information at the top indicates. Hope this helps!