Xcode 8 Beta 3 Use Legacy Swift issue
I have been ignoring this problem for a while now and just working on other stuff in the meantime - I finally found the solution to my problem.
Since my project is Objective-C I figured maybe one of the Pods I am using was using Swift, I checked each Pod and none of them were.
The final solution was that my Core Data model was set to generate code in Swift even though I have been manually generating them in the File > New > NSManagedObjectSubclass menu. All I had to do was switch it to Objective-C.
“Use Legacy Swift Language Version” (SWIFT_VERSION) is required to be configured correctly for targets which use Swift.
Xcode 8 seems to be wrongfully displaying a nonexistent ("phantom", if you will) No
. There's a trivial fix for this:
- Click the tiny arrow next to
SWIFT_VERSION
to toggle the drop-down list. - Set the values for
Debug
andRelease
toYes
. - Set the values for
Debug
andRelease
back toNo
.
The image below was taken just after setting Debug
to No
. Xcode shows that both Debug
and Release
are set to No
, however SWIFT_VERSION
reads <Multiple Values>
:
From this, I can only conclude that it is a bug; and that some value (or more probably a null value) is being misrepresented as No
.
Related Topics
Rounding a Double Value to X Number of Decimal Places in Swift
Saving Custom Swift Class With Nscoding to Userdefaults
Why Is Swift Compile Time So Slow
Non-'@Objc' Method Does Not Satisfy Optional Requirement of '@Objc' Protocol
Getting the Decimal Part of a Double in Swift
Detect When a Tab Bar Item Is Pressed
Can You Execute an Applescript Script from a Swift Application
Swift Array - Check If an Index Exists
Constant Unassigned Optional Will Not Be Nil by Default
How to Convert Double to Int in Swift
Trying to Understand Asynchronous Operation Subclass
Uncaught Error/Exception Handling in Swift
Xcode 8 Beta 3 Use Legacy Swift Issue
Dynamically Hiding View in Swiftui
Programmatically Detect Tab Bar or Tabview Height in Swiftui
How to Unwrap Double Optionals
Main Thread Checker: Ui API Called on a Background Thread: -[Uiapplication Applicationstate]