# ios

Otis Goodman

06/28/2023, 10:18 PM
What is the best way to go about using my Kotlin code in an IOS App? I followed the tutorial on the website but just ignored the Android part as, I am just making an IOS app, I keep getting a bunch of strange errors with when I build my app in Xcode. I have my linker flags, framework search paths, and script to build my Kotlin code when I build my IOS app setup exactly like the tutorial. I googled around and these errors seem unique to my situation. Are you aware of any better tutorials for using Kotlin code in an IOS app? Any idea what I am doing wrong?


06/29/2023, 9:25 AM
I would recommend using Cocoapods integration rather than doing all this manual configuration in your linked tutorial
• Make your Kotlin library expose itself as a Cocoapods library using the documentation • Use Cocoapods in your app to import your local library like you would do for any local Swift/ObjC lib • As a bonus, easily use Cocoapods libraries as dependencies in your Kotlin project

Otis Goodman

06/29/2023, 1:47 PM
Thanks, I'll give it a try!