This is what I do:
import BSTableViewReorder
and get the following error:
Module compiled with Swift 3.0 cannot be i
in my case, the framework developers added this line in the code that was intended for the Podfile
:
config.build_settings['SWIFT_VERSION'] = '2.3' # or '3.0'
as you can see, they defaulted to '2.3', which caused problems because i was running 3.0. simply removing the '2.3' # or
and leaving the '3.0'
fixed the problem.
If you are using any third party frameworks just update them once for Xcode 8.1 and change the Use Legacy Swift Language Version to NO.
If the above suggestions don't work for you try deleting ~Library/Developer/Xcode/DerivedData
You'll need to change the Use Legacy Swift Language Version
to NO
- this makes sure your project will use swift 3.
If you want to package your project as a POD (for cocoapods) you'll need to add a file named .swift-version (containing 1 single line, "3.0"). This will tell cocoapods to use the swift 3 compiler.
Everything should work after this changes.