12 Replies Latest reply on Jun 8, 2018 8:11 AM by peter.nicolai.123

    @available in XCode causes Undefined symbols error

    dews Level 1

      ANE on the iOS side - if I include the condition in my XCode functions:

       

      if (@available(iOS 11.0, *))

      {

       

      }

       

      I am able to build the ANE, however, my project won't run - it fails with:

       

      Undefined symbols for architecture arm64:

        "___isOSVersionAtLeast", referenced from:

      .......and list of the functions that include the conditional statement......

       

      Undefined symbols for architecture armv7:

        "___isOSVersionAtLeast", referenced from:

      .......and list of the functions that include the conditional statement......

       

       

      If I comment out the condition everything works as expected.

       

      I can't figure out what I need to include either when building the static library in XCode or when building the ANE..?

       

      Any help much appreciated.