Reputation: 11749
Dealing with an Objective C iOS app (working fine); when I start to set some Core Data entities up, as soon as I compile I get this error message:
The “Swift Language Version” (SWIFT_VERSION) build setting must be set to a supported value for targets which use Swift. This setting can be set in the build settings editor.
I am using Xcode Version 9.4.1 and there is no SWIFT_VERSION
in the build settings editor.
And if I eliminate the Core Data entity I just set up, the problem goes away.
I'd be happy if someone had an explanation and told me what to do. I am somewhat surprised to see this message related to “Swift Language Version”, when my app is only in Objective C. But I presume some dependency may be using Swift.
Upvotes: 0
Views: 213
Reputation: 17902
Go to Targets
--> select Build setting
--> search swift language version (top right)
-->In Swift Language Version change version
See below screen shot.
See my updated screen shot
Upvotes: 0
Reputation: 51
Can you please check into your build setting about Swift version. Because I too have a project which is in Objective C but still we need to set Swift version in build setting. Please check Attached image
Upvotes: 2