Start a new topic

Build fails on Wikitude basic IOS integration

Hi, I am trying implement basic tutorial https://www.wikitude.com/external/doc/documentation/latest/ios/setupguideios.html#load-your-xcode-project   from documentation but my build fails with error 

Ld /Users/julia/Library/Developer/Xcode/DerivedData/wikitest-fkqskpyzyxkxsbfjqenybsnkjlet/Build/Products/Debug-iphoneos/wikitest.app/wikitest normal arm64 (in target 'wikitest' from project 'wikitest')
    cd /Users/julia/XcodeProjects/wikitest
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -target arm64-apple-ios9.0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.4.sdk -L/Users/julia/Library/Developer/Xcode/DerivedData/wikitest-fkqskpyzyxkxsbfjqenybsnkjlet/Build/Products/Debug-iphoneos -F/Users/julia/Library/Developer/Xcode/DerivedData/wikitest-fkqskpyzyxkxsbfjqenybsnkjlet/Build/Products/Debug-iphoneos -Fwikitest/Frameworks -Fwikitest/Frameworks -filelist /Users/julia/Library/Developer/Xcode/DerivedData/wikitest-fkqskpyzyxkxsbfjqenybsnkjlet/Build/Intermediates.noindex/wikitest.build/Debug-iphoneos/wikitest.build/Objects-normal/arm64/wikitest.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -dead_strip -Xlinker -object_path_lto -Xlinker /Users/julia/Library/Developer/Xcode/DerivedData/wikitest-fkqskpyzyxkxsbfjqenybsnkjlet/Build/Intermediates.noindex/wikitest.build/Debug-iphoneos/wikitest.build/Objects-normal/arm64/wikitest_lto.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -fembed-bitcode-marker -fobjc-arc -fobjc-link-runtime -framework WikitudeSDK -Xlinker -dependency_info -Xlinker /Users/julia/Library/Developer/Xcode/DerivedData/wikitest-fkqskpyzyxkxsbfjqenybsnkjlet/Build/Intermediates.noindex/wikitest.build/Debug-iphoneos/wikitest.build/Objects-normal/arm64/wikitest_dependency_info.dat -o /Users/julia/Library/Developer/Xcode/DerivedData/wikitest-fkqskpyzyxkxsbfjqenybsnkjlet/Build/Products/Debug-iphoneos/wikitest.app/wikitest

ld: warning: ignoring file wikitest/Frameworks/WikitudeSDK.framework/WikitudeSDK, building for iOS-arm64 but attempting to link with file built for unknown-unsupported file format ( 0x76 0x65 0x72 0x73 0x69 0x6F 0x6E 0x20 0x68 0x74 0x74 0x70 0x73 0x3A 0x2F 0x2F )
Undefined symbols for architecture arm64:
  "_OBJC_CLASS_$_WTArchitectView", referenced from:
      objc-class-ref in ViewController.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

 

My environment is

  • Xcode Version 11.4 
  • Wikitude framework 8.1
  • Device iPhone 6 (real device, not emulator)


Initially, I was trying to add React native module  

https://github.com/brave-digital/react-native-wikitude

and after all "Not found" issues have been fixed appeared error  

Undefined symbol: _OBJC_CLASS_$_WTArchitectView

After that, I decided to implement a native IOS app to test the framework but still get the same error.



Hi,


The error indicates, that there seems to be something wrong with the build setup and the architectures. Please ensure that everything is setup for 64 bit architecture. For a reference you can also find further details in iOS forums that might help.


Thx and greetings

Nicola

Hi Nicola,


well, I tried everything from the beginning. My advice for everyone who faced problem in the build just download SDK and run examples project (folder Examples )

https://support.wikitude.com/support/discussions/topics/5000091233

you can check any IDE settings by comparing your project with examples. So I added some run scripts and find additional settings according to example project and make my project build and run normally.

Hi,


Thx for your feedback. This sounds like the problem is solved for you. Thx for providing the details for other users as well.


Greetings

Nicola

Login or Signup to post a comment