Linker Error XCode 9 Unity 2017.2

+2 votes
asked Oct 23, 2017 by i33ni33n (140 points)
Hello,

I have some trouble building on XCode 9 for ios11 a project from the sample HelloARSlam from Unity 2017.2

I have a linker error for a Lapack lib:

Undefined symbols for architecture arm64:

  "_sgels_", referenced from:

      l4384 in libEasyARUnity.a(libEasyARUnity.a-arm64-master.o)

  "_sgesv_", referenced from:

      l4382 in libEasyARUnity.a(libEasyARUnity.a-arm64-master.o)

  "_sgeev_", referenced from:

      l4376 in libEasyARUnity.a(libEasyARUnity.a-arm64-master.o)

  "_sgesvd_", referenced from:

      l4363 in libEasyARUnity.a(libEasyARUnity.a-arm64-master.o)

      l4365 in libEasyARUnity.a(libEasyARUnity.a-arm64-master.o)

      l4372 in libEasyARUnity.a(libEasyARUnity.a-arm64-master.o)

      l4378 in libEasyARUnity.a(libEasyARUnity.a-arm64-master.o)

      l4380 in libEasyARUnity.a(libEasyARUnity.a-arm64-master.o)

      l4399 in libEasyARUnity.a(libEasyARUnity.a-arm64-master.o)

      l4409 in libEasyARUnity.a(libEasyARUnity.a-arm64-master.o)

      ...

  "_ssyev_", referenced from:

      l4354 in libEasyARUnity.a(libEasyARUnity.a-arm64-master.o)

      l4357 in libEasyARUnity.a(libEasyARUnity.a-arm64-master.o)

      l4360 in libEasyARUnity.a(libEasyARUnity.a-arm64-master.o)

ld: symbol(s) not found for architecture arm64

clang: error: linker command failed with exit code 1 (use -v to see invocation)

Any hints?

I think I did what is in the documentation with libc++ and BITCODE.

Thank you,

Ben

2 Answers

0 votes
answered Nov 28, 2017 by hasangokhan (140 points)
Same situation here
0 votes
answered Jan 18, 2018 by scaperoth (140 points)
commented Mar 19, 2018 by gerickt (250 points)
solve the Problem... but cannot start Application, it closes immediately
 
consola error:
libsystem_kernel.dylib`__abort_with_payload:
    0x18410f040 <+0>:  mov    x16, #0x209
    0x18410f044 <+4>:  svc    #0x80
->  0x18410f048 <+8>:  b.lo   0x18410f060               ; <+32>
    0x18410f04c <+12>: stp    x29, x30, [sp, #-0x10]!
    0x18410f050 <+16>: mov    x29, sp
    0x18410f054 <+20>: bl     0x1840f0bdc               ; cerror_nocancel
    0x18410f058 <+24>: mov    sp, x29
    0x18410f05c <+28>: ldp    x29, x30, [sp], #0x10
    0x18410f060 <+32>: ret
commented Mar 19, 2018 by scaperoth (140 points)
Try adding "NSCameraUsageDescription" or "NSMicrophoneUsageDescription" key in my plist in xcode (or Unity) like they mentioned in this post: https://stackoverflow.com/questions/40886484/app-crash-on-device-but-works-on-simulator-ios

Instructions on how to do that here: https://stackoverflow.com/questions/20114801/how-to-add-properties-in-info-plist-in-ios
commented Mar 19, 2018 by gerickt (250 points)
thanks, works like a charm!
regards
Welcome to EasyAR SDK Q&A, where you can ask questions and receive answers from other members of the community.
...