I am getting this error while trying to install react-native-charts-wrapper. I have followed the steps exactly as they say but still not able to build the project successfully.
I also set the SWIFT_VERSION to 4.2 in build settings of my project, still getting the same error.
My XCODE version: Version 10.1 (10B61)
Any ideas?
I found it. I am not familiar with XCode so it was not very straightforward for me. I clicked "Pods" on the project tree on the left, then clicked the dropdown to select SwiftyJSON from the list at the top left corner. Then changed the Swift version which was set to 5.0. See the image.
Cheers
For anyone who's build continues to fail despite following the previous solution:
Find SWIFT_VERSION
literal in whole project files using IDE or editor
– I turned on sublimetext, open project root directory, [Find] - [Find in Files.]
– Search SWIFT_VERSION
In my case some constants in projectfile was SWIFT_VERSION = 5.0
in proj.pbxproj file despite I changed swift_version on Xcode
Change value you want and save file
Restart Xcode
Try Build
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