0 Replies Latest reply on Jan 28, 2019 6:45 AM by Vasili Orlov

    iOS symbol(s) not found for architecture

    Vasili Orlov

      Hi everyone.

      Could we help me.

      I have test project with ZebraSDK. I added only next line:

          var sdkApi:ISbtSdkApi?

        

          override init() {

              self.sdkApi = SbtSdkFactory.createSbtSdkApiInstance()

              super.init()

       

          }

       

       

      If I try build it the error will happened. See below:

      Ld /Users/vasilij_orlov/Library/Developer/Xcode/DerivedData/BarcodeScanner-cpaxlblpgnnwaubcrxaxnmkuusiz/Build/Intermediates.noindex/BarcodeScanner.build/Debug-iphoneos/BarcodeScanner.build/Objects-normal/armv7/BarcodeScanner normal armv7 (in target: BarcodeScanner)

          cd /Users/vasilij_orlov/Documents/BarcodeScaner

          export IPHONEOS_DEPLOYMENT_TARGET=9.0

          /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.1.sdk -L/Users/vasilij_orlov/Library/Developer/Xcode/DerivedData/BarcodeScanner-cpaxlblpgnnwaubcrxaxnmkuusiz/Build/Products/Debug-iphoneos -L/Users/vasilij_orlov/Documents/BarcodeScaner/symbolbt-sdk -F/Users/vasilij_orlov/Library/Developer/Xcode/DerivedData/BarcodeScanner-cpaxlblpgnnwaubcrxaxnmkuusiz/Build/Products/Debug-iphoneos -filelist /Users/vasilij_orlov/Library/Developer/Xcode/DerivedData/BarcodeScanner-cpaxlblpgnnwaubcrxaxnmkuusiz/Build/Intermediates.noindex/BarcodeScanner.build/Debug-iphoneos/BarcodeScanner.build/Objects-normal/armv7/BarcodeScanner.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -miphoneos-version-min=9.0 -dead_strip -Xlinker -object_path_lto -Xlinker /Users/vasilij_orlov/Library/Developer/Xcode/DerivedData/BarcodeScanner-cpaxlblpgnnwaubcrxaxnmkuusiz/Build/Intermediates.noindex/BarcodeScanner.build/Debug-iphoneos/BarcodeScanner.build/Objects-normal/armv7/BarcodeScanner_lto.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -fembed-bitcode-marker -fobjc-link-runtime -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos -Xlinker -add_ast_path -Xlinker /Users/vasilij_orlov/Library/Developer/Xcode/DerivedData/BarcodeScanner-cpaxlblpgnnwaubcrxaxnmkuusiz/Build/Intermediates.noindex/BarcodeScanner.build/Debug-iphoneos/BarcodeScanner.build/Objects-normal/armv7/BarcodeScanner.swiftmodule -lsymbolbt-sdk -framework CoreBluetooth -framework ExternalAccessory -Xlinker -dependency_info -Xlinker /Users/vasilij_orlov/Library/Developer/Xcode/DerivedData/BarcodeScanner-cpaxlblpgnnwaubcrxaxnmkuusiz/Build/Intermediates.noindex/BarcodeScanner.build/Debug-iphoneos/BarcodeScanner.build/Objects-normal/armv7/BarcodeScanner_dependency_info.dat -o /Users/vasilij_orlov/Library/Developer/Xcode/DerivedData/BarcodeScanner-cpaxlblpgnnwaubcrxaxnmkuusiz/Build/Intermediates.noindex/BarcodeScanner.build/Debug-iphoneos/BarcodeScanner.build/Objects-normal/armv7/BarcodeScanner

       

      Undefined symbols for architecture armv7:

        "_deflate", referenced from:

            _zipWriteInFileInZip in libsymbolbt-sdk.a(zip.o)

            _zipCloseFileInZipRaw64 in libsymbolbt-sdk.a(zip.o)

        "_deflateInit2_", referenced from:

            _zipOpenNewFileInZip4_64 in libsymbolbt-sdk.a(zip.o)

        "_inflate", referenced from:

            _unzReadCurrentFile in libsymbolbt-sdk.a(unzip.o)

        "_get_crc_table", referenced from:

            _unzOpenCurrentFile3 in libsymbolbt-sdk.a(unzip.o)

            _zipOpenNewFileInZip4_64 in libsymbolbt-sdk.a(zip.o)

        "_inflateEnd", referenced from:

            _unzCloseCurrentFile in libsymbolbt-sdk.a(unzip.o)

        "_crc32", referenced from:

            _unzReadCurrentFile in libsymbolbt-sdk.a(unzip.o)

            _zipWriteInFileInZip in libsymbolbt-sdk.a(zip.o)

        "_deflateEnd", referenced from:

            _zipCloseFileInZipRaw64 in libsymbolbt-sdk.a(zip.o)

        "_inflateInit2_", referenced from:

            _unzOpenCurrentFile3 in libsymbolbt-sdk.a(unzip.o)

      ld: symbol(s) not found for architecture armv7

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

       

       

      See my test project in the attachment file.

      How Can I fix the problem?