espressif/esp-idf-provisioning-ios

I use Object-c programming, how do I use the library?

JeremyChen1213 opened this issue · 5 comments

I use Object-c programming, how do I use the library? Attempt to mix, but failed, ask for help. Thanks

Hi @JeremyChen1213 there are some good tutorials that can guide you for that. I can recommend one https://medium.com/@anum.amin/swift-pod-library-in-objective-c-project-c6d1c5af997d. However if you still find it hard to integrate, I will suggest to develop the provisioning module in your app using Swift and other module using Obj-C. Anyway if you find some issues with integration then let me know in this thread. We will try to give resolution from our end.

Closing this issue since it has been answered.

Still, an example would be great.

Hi @JeremyChen1213 there are some good tutorials that can guide you for that. I can recommend one https://medium.com/@anum.amin/swift-pod-library-in-objective-c-project-c6d1c5af997d. However if you still find it hard to integrate, I will suggest to develop the provisioning module in your app using Swift and other module using Obj-C. Anyway if you find some issues with integration then let me know in this thread. We will try to give resolution from our end.

Your library is written in swift and is not compatible with Objective-C (if you want to call properties or methods in the swift library in an Objective-C project, at least you need to add @objc to the code etc), I tried many ways but nothing works. Hope to have an example of an Objective-C project that calls your swift library normally, that would be great.