My project isn't compiled with an error:
linker command failed with exit code 1 (use -v to see invocation)
and description
ld: .../Xcode/DerivedData/Acoustic-ejrjwtwpmnimpdaazezbknffdbim/Build/Products/Debug-iphonesimulator/Result.framework/Result compiled with newer version of Swift language (3.0) than previous files (2.0) for architecture x86_64 screenshot
The problem is with ReactiveCocoa framework, I think. It is added as a submodule to my project. I use only Objective-C and can't understand how to solve this problem.
You need to update CocoaPods to a newer version supports XCode 8 (CocoaPods 1.1.0 or newer):
sudo gem install cocoapods
Then do a pod update to fix your dependencies that are not linking:
pod update
Delete the DerivedData folder for your project and rebuild, the link error should be gone.
"You need to explicitly set the Use Legacy Swift Language Version flag on the CocoaPod target. This can be done by clicking on the Pods project, clicking on the RealmSwift target, going to the 'Build Settings' tab, and changing the flag to Yes."
To read more, go here
I was facing the same issue but it was related to another framework not with Realm.
Project -> Target -> Use Legacy Swift Language Version -> Yes
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With