Have you tried to generate a bridging header in Xcode, then copy that header into your native/ios directory? I also suggest looking at this comment in the issue tracker where I provide some hints for Swift support. https://github.com/codenameone/CodenameOne/issues/3274#issuecomment-699959719
On Sun, Dec 6, 2020 at 3:43 AM Amine ABIABA <[email protected]> wrote: > I tested your solution but it does not work for me because of the > frameworks *Feature.framework,Base.framework* do not exist. > > ld: framework not found Feature > clang: error: linker command failed with exit code 1 (use -v to see > invocation) > > > Is it possible to generate the file Bridging Header automatically? where > is there a method to generate it? > > Le dim. 6 déc. 2020 à 04:07, Shai Almog <[email protected]> a écrit : > >> Try ios.add_libs=Feature.framework;Base.framework >> >> On Saturday, December 5, 2020 at 12:26:21 PM UTC+2 [email protected] >> wrote: >> >>> how i can generate Bridging Header file ?. >>> this is the solution to solve this problem. >>> >>> Le sam. 5 déc. 2020 à 10:00, Amine ABIABA <[email protected]> a écrit : >>> >>>> I used a static library (swift) it's not a dynamic framework ! >>>> >>>> Le sam. 5 déc. 2020 à 08:10, Shai Almog <[email protected]> a écrit : >>>> >>>>> I suggest adding the swift framework library with the ios.add_libs >>>>> build hint. >>>>> >>>>> On Friday, December 4, 2020 at 3:52:21 PM UTC+2 [email protected] >>>>> wrote: >>>>> >>>>>> Hi , >>>>>> I have this problem with a build project . >>>>>> with i importing the static lib in native Interface : >>>>>> >>>>>> >>>>>> ld: warning: Could not find or use auto-linked library >>>>>> 'swiftCoreMedia' >>>>>> ld: warning: Could not find or use auto-linked library >>>>>> 'swiftCoreImage' >>>>>> ld: warning: Could not find or use auto-linked library >>>>>> 'swiftCompatibilityDynamicReplacements' >>>>>> ld: warning: Could not find or use auto-linked library 'swiftsimd' >>>>>> ld: warning: Could not find or use auto-linked library >>>>>> 'swiftCompatibility51' >>>>>> ld: warning: Could not find or use auto-linked library >>>>>> 'swiftFoundation' >>>>>> ld: warning: Could not find or use auto-linked library >>>>>> 'swiftCoreAudio' >>>>>> ld: warning: Could not find or use auto-linked library >>>>>> 'swiftCoreFoundation' >>>>>> ld: warning: Could not find or use auto-linked library >>>>>> 'swiftCompatibility50' >>>>>> ld: warning: Could not find or use auto-linked library >>>>>> 'swiftUniformTypeIdentifiers' >>>>>> ld: warning: Could not find or use auto-linked library 'swiftCoreMIDI' >>>>>> ld: warning: Could not find or use auto-linked framework >>>>>> 'UniformTypeIdentifiers' >>>>>> Undefined symbols for architecture arm64: >>>>>> "type metadata accessor for Swift.FloatingPointRoundingRule", >>>>>> referenced from: >>>>>> (extension in SkyIdSDK):__C.UIImage.rotate(radians: >>>>>> Swift.Float) -> __C.UIImage? in libSkyIdSDK.a(UIImageUtil.o) >>>>>> "enum case for >>>>>> Swift.FloatingPointRoundingRule.toNearestOrEven(Swift.FloatingPointRoundingRule.Type) >>>>>> -> Swift.FloatingPointRoundingRule", referenced from: >>>>>> (extension in SkyIdSDK):__C.UIImage.rotate(radians: >>>>>> Swift.Float) -> __C.UIImage? in libSkyIdSDK.a(UIImageUtil.o) >>>>>> "enum case for >>>>>> Swift.FloatingPointRoundingRule.towardZero(Swift.FloatingPointRoundingRule.Type) >>>>>> -> Swift.FloatingPointRoundingRule", referenced from: >>>>>> (extension in SkyIdSDK):__C.UIImage.rotate(radians: >>>>>> Swift.Float) -> __C.UIImage? in libSkyIdSDK.a(UIImageUtil.o) >>>>>> "Swift.FloatingPointSign.rawValue.getter : Swift.Int", referenced >>>>>> from: >>>>>> (extension in SkyIdSDK):__C.UIImage.rotate(radians: >>>>>> Swift.Float) -> __C.UIImage? in libSkyIdSDK.a(UIImageUtil.o) >>>>>> "Swift.Double.init(Swift.Float) -> Swift.Double", referenced from: >>>>>> (extension in SkyIdSDK):__C.UIImage.rotate(radians: >>>>>> Swift.Float) -> __C.UIImage? in libSkyIdSDK.a(UIImageUtil.o) >>>>>> "protocol conformance descriptor for Swift.String.UnicodeScalarView >>>>>> : Swift.Collection in Swift", referenced from: >>>>>> lazy protocol witness table accessor for type >>>>>> Swift.String.UnicodeScalarView and conformance >>>>>> Swift.String.UnicodeScalarView : Swift.Collection in Swift in >>>>>> libSkyIdSDK.a(MRZField.o) >>>>>> "Swift.Character.unicodeScalars.getter : >>>>>> Swift.String.UnicodeScalarView", referenced from: >>>>>> static SkyIdSDK.MRZField.isValueValid(_: Swift.String, >>>>>> checkDigit: Swift.String) -> Swift.Bool in libSkyIdSDK.a(MRZField.o) >>>>>> >>>>> -- >>>>> You received this message because you are subscribed to the Google >>>>> Groups "CodenameOne Discussions" group. >>>>> To unsubscribe from this group and stop receiving emails from it, send >>>>> an email to [email protected]. >>>>> To view this discussion on the web visit >>>>> https://groups.google.com/d/msgid/codenameone-discussions/cb119b97-02d1-4cb9-a47a-0755b3330e09n%40googlegroups.com >>>>> <https://groups.google.com/d/msgid/codenameone-discussions/cb119b97-02d1-4cb9-a47a-0755b3330e09n%40googlegroups.com?utm_medium=email&utm_source=footer> >>>>> . >>>>> >>>> -- >> You received this message because you are subscribed to the Google Groups >> "CodenameOne Discussions" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/codenameone-discussions/62cbf412-88d9-4d26-a1d7-509623048618n%40googlegroups.com >> <https://groups.google.com/d/msgid/codenameone-discussions/62cbf412-88d9-4d26-a1d7-509623048618n%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> > -- > You received this message because you are subscribed to the Google Groups > "CodenameOne Discussions" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/codenameone-discussions/CABLoU%3D9KgkBDgPYvaaTB2%2BZqHMGA%3DU88VO%3Dv1WkJmodJpCncuA%40mail.gmail.com > <https://groups.google.com/d/msgid/codenameone-discussions/CABLoU%3D9KgkBDgPYvaaTB2%2BZqHMGA%3DU88VO%3Dv1WkJmodJpCncuA%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > -- Steve Hannah Software Developer Codename One http://www.codenameone.com -- You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/CAGOYrKVTOjqucq-JunkGiyt42RLnRHoC%2BEHhq8UUho0hK%3DqsPg%40mail.gmail.com.
