https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
n

Nick

08/19/2020, 3:39 PM
Has anyone been able to get a j2objc library to work on multiplatform? I’m importing the library using cocoapods.
xcodebuild
fails to build the Pods.xcodeproj with error 65.
Copy code
** BUILD FAILED **
The following build commands failed
CompileC [long dir]/AbstractQuoteEventSchema.o [long dir]/AbstractQuoteEventSchema.m normal arm64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
CompileC [long dir]/AccountBalanceMessageHandler.o [long dir/AccountBalanceMessageHandler.m  normal arm64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
k

kpgalligan

08/19/2020, 3:43 PM
I’ve done this, but not with cocoapods. It should work, in theory
n

Nick

08/19/2020, 3:45 PM
I used the cocoa pods example project which worked fine until I added my library to it.
k

kpgalligan

08/19/2020, 3:47 PM
I’d have to assume some kind of library/header path or linking issue with j2objc
n

Nick

08/19/2020, 3:47 PM
That’s what I’m thinking too
k

kpgalligan

08/19/2020, 3:47 PM
I haven’t looked at J2objc since 2018, though. Details are hazy
I mean, they can definitely talk to each other. I’ve done it. Just the cinterop setup is painful
n

Nick

08/19/2020, 4:07 PM
thanks. While I still think it’s a header issue, this pod compiles fine with just normal xcode.
19 Views