Adding Testflight SDK: missing required arm64 architecture in libTestFlight.a file

I am adding the Testflight SDK to my iOS project, but now I can’t build an IPA for it.

I have a mistake

 ld: warning: ignoring file     /Users/RM/Dropbox/SAM_iOS/mainApp/SAM/TestFlightSDK2/libTestFlight.a, missing required architecture arm64 in file /Users/RM/Dropbox/SAM_iOS/mainApp/SAM/TestFlightSDK2/libTestFlight.a (3 slices)
 Undefined symbols for architecture arm64:
 "_OBJC_CLASS_$_TestFlight", referenced from:
  objc-class-ref in AppDelegate.o
 ld: symbol(s) not found for architecture arm64
 clang: error: linker command failed with exit code 1 (use -v to see invocation)

I followed (three times) the steps described in detail here , but the error continues to appear. Any help is appreciated!

+4
source share
2 answers

Version 2.0.2 of the TestFlight library does not support arm64.

You can remove arm64from your project and goals, or use beta 2.1, which supportsarm64

+7
source

, , lipo :

lipo -info <path to library>

2.0.2 , arm64:

: libTestFlight.a: armv7 armv7s i386

- 2.1.3:

: libTestFlight.a: armv7 armv7s i386 x86_64 arm64

+3

All Articles