I was using Xcode 6.2 to compile some swift code for an extension target. I kept getting errors similar to:
Undefined symbols for architecture x86_64:
"__TFSSCfMSSFT21_builtinStringLiteralBp8byteSizeBw7isASCIIBi1__SS", referenced from:
__TFC23Hall_WatchKit_Extension16GlanceControllercfMS0_FT_S0_ in GlanceController.o
If I declared some properties it compiled fine, but as soon as I tried to use a string literal I begin getting these errors, so even code as simple as this would cause errors:
class GlanceController: WKInterfaceController {
var service = "somestring"
}
I updated to XCode 6.3 and now, even in a completely empty implementation I get some errors like this:
Undefined symbols for architecture x86_64:
"__TFSsoi1aUSs17_RawOptionSetType_USs21BitwiseOperationsTypeSs9Equatable__FTQ_Q__Q_", referenced from:
__TTWVSC26NSKeyValueObservingOptionsSs21BitwiseOperationsType10FoundationFS0_oi1aUS0___fMQPS0_FTS2_S2__S2_ in GlanceController.o
I've tried all of the recommendations in this thread: Swift beta 6 - Confusing linker error message but nothing helped.