dcvz / react-native-zendesk

Zendesk SDK for React Native
25 stars 55 forks source link

Module compiled with Swift 5.1.2 cannot be imported by the Swift 5.2 compiler #23

Open react-native-engineer opened 4 years ago

ghost commented 4 years ago

Is there any fix available for this issue ??

thedarkcder commented 4 years ago

Anybody get the PR to work?

Meegul commented 4 years ago

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.

thedarkcder commented 4 years ago

Me to - needed to update Xcode to latest.

But I'm using another updated fork

Meegul commented 4 years ago

What's the fork? Not too keen on managing a fork myself, and I will need to use one until this library gets updated.

thedarkcder commented 4 years ago

There you go

https://github.com/thanx/react-native-zendesk

No offence jacky

maxhungry commented 4 years ago

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

pentolbakso commented 4 years ago

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

thedarkcder commented 4 years ago

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.

ravindranpandu commented 4 years ago

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 👍