I’m trying to build using Xcode 8 beta 1. This is a big Obj-C/C++ project that also contains _one_ Swift source file, in a unit test target, which is only there to test that Obj-C-to-Swift bridging of our framework works as expected.
I can’t build with Swift 3 because of all the source incompatibilities. If I fixed the code to build with Swift 3, it would break everyone else building the project who’s still on Xcode 7. So I’ve enabled the confusingly-named “Use legacy Swift language version” build setting, which I double-checked actually expands to “SWIFT_VERSION = 2.3”; but this causes other errors: First I got an error from swiftc: > <unknown>:0: error: argument '-sanitize=address' is not supported on the > Swift 2.3 toolchain. You will need to migrate your project to Swift 3 to use > this feature. > Command > /Applications/Xcode-beta.app/Contents/Developer/Toolchains/Swift_2.3.xctoolchain/usr/bin/swiftc > failed with exit code 1 This sucks because address sanitization is invaluable when running unit tests. This was never a problem with Swift 2.2. I reluctantly turned off sanitization, but now I get a link error: > duplicate symbol __non_lazy_classes in: > > /Applications/Xcode-beta.app/Contents/Developer/Toolchains/Swift_2.3.xctoolchain/usr/lib/arc/libarclite_macosx.a(arclite.o) > > /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/arc/libarclite_macosx.a(arclite.o) > duplicate symbol _OBJC_METACLASS_$___ARCLite__ in: > > /Applications/Xcode-beta.app/Contents/Developer/Toolchains/Swift_2.3.xctoolchain/usr/lib/arc/libarclite_macosx.a(arclite.o) > > /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/arc/libarclite_macosx.a(arclite.o) No idea how to resolve this. I’m building for OS X. Any clues? —Jens _______________________________________________ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (Xcode-users@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/xcode-users/archive%40mail-archive.com This email sent to arch...@mail-archive.com