Hi fellows! I’m using the Cocoapods integration wi...
# multiplatform
e
Hi fellows! I’m using the Cocoapods integration with Kotlin Mpp. Everything works great except not all methods get converted to my .framework file. Do you know what is going on? Is this a bug or a feature? Here goes my Kotlin class and the .h file generated:
Copy code
__attribute__((swift_name("Repository")))
@protocol DomainRepository
@required
- (DomainResult *)getDataSync __attribute__((swift_name("getDataSync()")));
@end;
Copy code
interface Repository {
    suspend fun getData(): Result<List<Song>>
    fun getDataSync() : Result<List<Song>>
}
m
Triple backticks (```) for code blocks 😉
e
thnks! 😉
k
suspend I would assume is the issue
r
You obviously can’t use coroutines in ObjC/Swift
l
You need to write bridge code to use callbacks (beware of handling cancellation properly)