MobiVM / robovm

Ahead of time compiler for JVM bytecode targetting iOS, Mac OSX and Linux
https://mobivm.github.io
942 stars 132 forks source link

* fixed: compilation failed due swift lib not found (libswiftXPC.dylib is not found in swift paths) #783

Closed dkimitsa closed 1 month ago

dkimitsa commented 2 months ago

Recent Facebook FBSDKCoreKit has dependency to libswiftXPC.dylib. But it is not present in SDK and cause build to fail with message:

libswiftXPC.dylib is not found in swift paths

this is happening during copying swift-libraries into App/Frameworks folder. Same time this dependency is declared as weak:

@rpath/libswiftXPC.dylib (compatibility version 1.0.0, current version 36.100.7, weak)

its seems to an option to skip missing swift libraries that are marked as weak. these changes provided in this PR