I'm getting a lot of build errors showing up under my main app target that are related to the Storyboard, but don't appear to affect actual builds, running in Simulator/Device, or archiving. In searching for the error online I found another thread, not related to Storyboards, where people attributed not finding "__TMPVs12SetGenerator" symbol to Xcode using the Swift 3.0 toolchain instead of the Swift 2.3 toolchain. My app includes several subprojects that contain Swift but all have been migrated to Swift 2.3. It seems like the Swift version mismatch is only affecting compilation occuring in support of IBDesignable UIView subclasses in my Storyboard. Has anyone else seen this issue or found a workaround?
In the full-text of the error below, I notice one potential issue which is that dlopen is referencing libswiftCore.dylib from "XcodeDefault.xctoolchain" (Swift 3.0) instead of the Swift2.3 toolchain also available in the same directory.
<omitted>/Base.lproj/Main.storyboard: error: IB Designables: Failed to update auto layout status: dlopen(<omitted>.app, 1): Symbol not found: __TMPVs12SetGenerator
Referenced from: /Users/<omitted>/Library/Developer/Xcode/DerivedData/<omitted>-agzqvrgxrsapolhdbgndaesvhghw/Build/Intermediates/IBDesignables/Products/Debug-iphonesimulator/<omitted>.framework/<omitted>
Expected in: /Applications/Xcode8.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/Xcode/Overlays/../../../../../../Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/libswiftCore.dylib
in /Users/cc99283/Library/Developer/Xcode/DerivedData/<omitted>-agzqvrgxrsapolhdbgndaesvhghw/Build/Intermediates/IBDesignables/Products/Debug-iphonesimulator/<omitted>.framework/<omitted>