react-native-zendesk
react-native-zendesk copied to clipboard
Module compiled with Swift 5.1.2 cannot be imported by the Swift 5.2 compiler
Is there any fix available for this issue ??
Anybody get the PR to work?
I was able to get it to work. I took the changes from PR #24 in my locally installed version of react-native-zendesk, but had to then re-run pod install. Then, there was a build issue where I had to comment out a line that would hide the support -- this should be easy to find.
Me to - needed to update Xcode to latest.
But I'm using another updated fork
What's the fork? Not too keen on managing a fork myself, and I will need to use one until this library gets updated.
There you go
https://github.com/thanx/react-native-zendesk
No offence jacky
Just a note, before #24 is merged I had to do this for a workaround with the Swift 5.2 changes: https://github.com/maxhungry/react-native-zendesk/commit/572e65f73dd6c60f136cfdc81a9f95b179321a95
Do we need to use swift 5.2 in order to use the library ( zendesk supportSdk ) ? Dang, then I would need to upgrade to Catalina
I couldn't get many things to work properly with out upgrading.
I had to upgrade to Catalina, now I need to figure out how to run my 32bit apps.
I had the same issue after updating to catalina OS / xCode 11.5, swift compiler 5.2 couldn't compile swift 5.1 modules in the zendesk sdk, finally i followed @maxhungry PR #24 and it worked finally, important task is to build your local node_modules/react-native-zendesk folder with yarn build or npm build only then you can import the js files from lib folder.
FInally i automated the react-native-zendesk build it with yarn's post-build hook command which is less pain for frequent builds.
you need to do yarn install or npm install, cd ios && pod install again to make this work.
Hope this will help someone who is facing this issue here, cheers 👍