Error in Binding with Swift dependencies and Xcode 11

JosueYerayJulinFerreiroJosueYerayJulinFerreiro ESInsider, University, Developer Group Leader ✭✭

Hi all!

I am working on binding a objective C library with some swift dependencies. When I try to compile my project I get lot of linking problems like this:

ld : warning : Could not find or use auto-linked library 'swiftFoundation'
ld : warning : Could not find or use auto-linked library 'swiftDarwin'
ld : warning : Could not find or use auto-linked library 'swiftCoreFoundation'
ld : warning : Could not find or use auto-linked library 'swiftCore'
ld : warning : Could not find or use auto-linked library 'swiftCoreGraphics'
ld : warning : Could not find or use auto-linked library 'swiftObjectiveC'
ld : warning : Could not find or use auto-linked library 'swiftDispatch'

Looking for the internets, I saw some people solved this same error on Xcode adding a build setting LD_VERIFY_BITCODE : NO to the project consuming the library or creating a xcconfig file used in the xcodebuild execution. But I don't find a way to set this kind of setting from a Xamarin iOS application....

I used Xamarin.Swift in the app project consuming the binding, but no difference. I tried changing the swift language used in the binding from swift 4 to swift 5, but also no difference...

Could someone help me here?

Kind regards!

Best Answer

  • Accepted Answer

    Update: Fixed replacing the static library target by a framework target in Xcode, seems like swift and statics libraries doesn't play well.

Answers

  • JosueYerayJulinFerreiroJosueYerayJulinFerreiro ESInsider, University, Developer Group Leader ✭✭
    Accepted Answer

    Update: Fixed replacing the static library target by a framework target in Xcode, seems like swift and statics libraries doesn't play well.

Sign In or Register to comment.