Log in or register to post comments

Unity 2014.4 LTS, iOS and Vuforia 8.3.8 compile problem

September 14, 2020 - 6:51am #1

Hi,

I'm using Unity 2018.4 LTS (26f1) in combination with Vuforia 8.3.8. Everything works fine as expected within the Android build.

 

Unfortunately, when compiling the project generated by Unity with xCode (10.2), I get an error:

ld: '[...]/PAE2020/Libraries/Plugins/iOS/libVuforia.a(libVuforia.a-arm64-master.o)' does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. for architecture arm64

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

 

When I turn off the bitcode (Build settings "Enable Bitcode" set to "no"), I get the error that :

duplicate symbol _OBJC_CLASS_$_VuforiaNativeRendererController in:

    [...]/Library/Developer/Xcode/DerivedData/Unity-iPhone-bwxijmqkttyeqpauxydluqhcyxqd/Build/Intermediates.noindex/Unity-iPhone.build/ReleaseForRunning-iphoneos/Unity-iPhone.build/Objects-normal/arm64/VuforiaNativeRendererController-40c1a1e27a35798f1bb4a6b1f040b89f69f53d466bc6fe0636fc67e87224ed15.o

    [...]/Library/Developer/Xcode/DerivedData/Unity-iPhone-bwxijmqkttyeqpauxydluqhcyxqd/Build/Intermediates.noindex/Unity-iPhone.build/ReleaseForRunning-iphoneos/Unity-iPhone.build/Objects-normal/arm64/VuforiaNativeRendererController-40c1a1e27a35798f1bb4a6b1f040b89fccc9bbd8eeabe33b0ffba4c86d536102.o

duplicate symbol _OBJC_METACLASS_$_VuforiaNativeRendererController in:

    [...]/Library/Developer/Xcode/DerivedData/Unity-iPhone-bwxijmqkttyeqpauxydluqhcyxqd/Build/Intermediates.noindex/Unity-iPhone.build/ReleaseForRunning-iphoneos/Unity-iPhone.build/Objects-normal/arm64/VuforiaNativeRendererController-40c1a1e27a35798f1bb4a6b1f040b89f69f53d466bc6fe0636fc67e87224ed15.o

    [...]/Library/Developer/Xcode/DerivedData/Unity-iPhone-bwxijmqkttyeqpauxydluqhcyxqd/Build/Intermediates.noindex/Unity-iPhone.build/ReleaseForRunning-iphoneos/Unity-iPhone.build/Objects-normal/arm64/VuforiaNativeRendererController-40c1a1e27a35798f1bb4a6b1f040b89fccc9bbd8eeabe33b0ffba4c86d536102.o

duplicate symbol _OBJC_CLASS_$_VuforiaRenderDelegate in:

    [...]/Library/Developer/Xcode/DerivedData/Unity-iPhone-bwxijmqkttyeqpauxydluqhcyxqd/Build/Intermediates.noindex/Unity-iPhone.build/ReleaseForRunning-iphoneos/Unity-iPhone.build/Objects-normal/arm64/VuforiaRenderDelegate-40c1a1e27a35798f1bb4a6b1f040b89f1d8174ef009aabe3388096edcd0e9b14.o

    [...]/Library/Developer/Xcode/DerivedData/Unity-iPhone-bwxijmqkttyeqpauxydluqhcyxqd/Build/Intermediates.noindex/Unity-iPhone.build/ReleaseForRunning-iphoneos/Unity-iPhone.build/Objects-normal/arm64/VuforiaRenderDelegate-40c1a1e27a35798f1bb4a6b1f040b89f052e3fc7b6ecae7b4946b4e20bcd2275.o

duplicate symbol _OBJC_METACLASS_$_VuforiaRenderDelegate in:

    [...]/Library/Developer/Xcode/DerivedData/Unity-iPhone-bwxijmqkttyeqpauxydluqhcyxqd/Build/Intermediates.noindex/Unity-iPhone.build/ReleaseForRunning-iphoneos/Unity-iPhone.build/Objects-normal/arm64/VuforiaRenderDelegate-40c1a1e27a35798f1bb4a6b1f040b89f1d8174ef009aabe3388096edcd0e9b14.o

    [...]/Library/Developer/Xcode/DerivedData/Unity-iPhone-bwxijmqkttyeqpauxydluqhcyxqd/Build/Intermediates.noindex/Unity-iPhone.build/ReleaseForRunning-iphoneos/Unity-iPhone.build/Objects-normal/arm64/VuforiaRenderDelegate-40c1a1e27a35798f1bb4a6b1f040b89f052e3fc7b6ecae7b4946b4e20bcd2275.o

ld: 4 duplicate symbols for architecture arm64

 

What can I do to make this work on iOS?

 

BTW: The minimum iOS version is 11.

 

Thanks for your help.

Unity 2014.4 LTS, iOS and Vuforia 8.3.8 compile problem

September 15, 2020 - 5:48am #2

No one?

Log in or register to post comments