Vuforia Engine v10 DLL Issues on Mac

Platform

If you're receiving DLL issues while using a Mac for your app development and using Vuforia Engine v10.0 till 10.8 in your project, you might be affected by an unfortunate unforeseen expired certificate in the SDK.

What errors might I receive?

The errors that you might experience are:

  1. Unity pop-up error when opening your project: ""VuforiaEngine.bundle" will damage your computer. You should move it to the Bin."
  2. Unity error when pressing Play: "DllNotFoundException: VuforiaEngine.dll"

What causes these issues?

This issue is caused by an expired certificate in the SDK.

Which versions are affected?

You can experience these issues when using one of the following versions of Vuforia Engine in combination with a Mac device as development platform:

  • Vuforia Engine v10.8.4
  • Vuforia Engine v10.7.2
  • Vuforia Engine v10.6.3
  • Vuforia Engine v10.5.5
  • Vuforia Engine v10.4.4
  • Vuforia Engine v10.3.2
  • Vuforia Engine v10.2.5
  • Vuforia Engine v10.1.4
  • Vuforia Engine v10.0.12

How can I solve this problem?

You can find our workarounds underneath:

  • Upgrade your project from your current Vuforia Engine version to v10.9.3 or newer.

  • Re-sign the expired certificate in your project by using the attached .py patch script.

  • Optional: Re-sign the expired certificate in your .unitypackage by also using the attached .py script.

    • Using the resigned .unitypackage will solve the dll issue for any future projects if you decide to not upgrade to v10.9.3 or newer.

You can also find a video about how to solve this problem here: https://youtu.be/WAdEbGjk0hk

How do I use the patch-vuforia-extension.py script?

You can use the python script which allows you to both update the expired certificates in your projects and .unitypackage. The benefit of being able to re-sign the .unitypackage is that you can re-use this with new projects without having to re-sign every time using an older version then v10.9. 

Required: Python (should be already installed on every Mac device)

  • Download and unzip the "vuforia-bundle-patcher.zip" file
  • Locate the com.ptc.vuforia.engine.v10.x.x.tgz in "MyProject/Packages/" and copy its path name
    • Optional: Locate your add-vuforia-package-10-8-4.unitypackage and copy its path name
  • Open your Terminal
  • Change the current working directory to the location of your .py script with the cd command.
  • Call: python patch-vuforia-extension.py <path to Vuforia package *.tgz in a project, or the *.unitypackage>

A backup file will be added to the same directory as your .tgz or .unitypackage file. 

Example: python patch-vuforia-extension.py /Users/patrickscheper/Desktop/MyUnityProject/Packages/com.ptc.vuforia.engine-10.8.4.tgz

Objects Overlapping even with Single Image Target

Platform

Hi All,

I've made a very simple app for iOS 16.2 with Unity and XCode 14.2, where I'm making a tiny book with different Image Targets/Objects on each page.

However, I'm experiencing an issue where if I turn the page, both objects are still visible, even though there should only be 1 object shown for the 1 visible Image Target.

I've attached 3 images, one showing both objects visible, another showing the objects overlapping (despite only 1 Image Target being visible to the camera), and a third showing my Vuforia settings in Unity.

I suspect this has to do with some sort of world positioning related matter, but I can't quite figure out how to fix this.

I have rendering settings to show objects only when Tracked, and this occurs even when I have Max Simultaneous Tracked Images set to 1.

 

Any help is greatly appreciated.

Hey there,

 

I believe this is related to Engine trying to keep the target where it was last seen. I think that if you switch to "VISION_ONLY", you would not get into this issue. This can be done via Vuforia Fusion.

iphone cannot recognize image

Platform

Hi,

My project could be built successfully on Xcode, but it can not recognize the pre-set image while I open the Unity app on my Iphone. However, it could work well on my mac.

There are several reminders when I run it. Could you help me to check this problem? Which is the main problem that I have to tackle?

The version of my Unity is 2021.3.16f1.

Hey there,

 

I would suggest trying to build our Core Samples project and see if you experience the same issues: https://assetstore.unity.com/packages/templates/packs/vuforia-core-samples-99026/.

 

Kind regards,

Patrick Scheper

Attachment

Multiple commands produce

Platform

unity version 2019.4.5fc1

vforia 8.5.9

use object tracking  

 

error in xcode build ,maybe something woring unity projectSetting or xcode setting  , I'm a fool,  help

error build: Multiple commands produce '/Users/wynn/Library/Developer/Xcode/DerivedData/Unity-iPhone-hcwiiosbdvkomihlghvxoikemdyy/ArchiveIntermediates/Unity-iPhone/InstallationBuildProductsLocation/Applications/Vuforia.app/Vuforia'

Target 'Unity-iPhone' (project 'Unity-iPhone') has copy command from '/Users/wynn/Desktop/IOS/Data/Raw/Vuforia' to '/Users/wynn/Library/Developer/Xcode/DerivedData/Unity-iPhone-hcwiiosbdvkomihlghvxoikemdyy/ArchiveIntermediates/Unity-iPhone/InstallationBuildProductsLocation/Applications/Vuforia.app/Vuforia'

Target 'Unity-iPhone' (project 'Unity-iPhone') has link command with output '/Users/wynn/Library/Developer/Xcode/DerivedData/Unity-iPhone-hcwiiosbdvkomihlghvxoikemdyy/ArchiveIntermediates/Unity-iPhone/InstallationBuildProductsLocation/Applications/Vuforia.app/Vuforia'

 

katjastrophal

Sun, 01/08/2023 - 18:27

In my project was the solution to rename it, because I named my project Vuforia as well.

Vuforia Crashes on iOS

Platform

Hi

the framework crashes on the iOS. ( iOS 15.5 and more)

DTSDKVersion: iphoneos11.3 crash detail is : ----

Crashed: Thread #1 EXC_BAD_ACCESS KERN_INVALID_ADDRESS 0x0000000000000000 Crashed: Thread 0  Vuforia                        0xce4a6c Vuforia::init() + 13235424 1  Vuforia                        0xce6b80 Vuforia::init() + 13243892 2  Vuforia                        0xca8c0c Vuforia::init() + 12990080 3  Vuforia                        0xcaa870 Vuforia::init() + 12997348 4  Vuforia                        0x5dfa8 Vuforia::init() + 100892 5  libsystem_pthread.dylib        0x16cc _pthread_start + 148 6  libsystem_pthread.dylib        0xba4 thread_start + 8 -----

Migrating from Vuforia 8 to 10

Platform

Hi Everyone,

 

I have a very complicated problem which is related to migration. I recently migrated a project from Vuforia 8 to Vuforia 10. The previous version was on Unity 2018 and with the upgrade to Vuforia 10 I upgraded the Unity version to 2020.2.25f. Following the migration guide on the vuforia website I was able to modify the code and it is working fine on Android. But when trying to build for IOS I am getting the following errors in Xcode. 

Undefined symbols for architecture arm64:   "OBJC_METACLASS$_VuforiaNativeRendererController", referenced from:       OBJC_METACLASS$_VXWebViewAppController in VXWebViewAppController.o   "OBJC_CLASS$_VuforiaNativeRendererController", referenced from:       OBJC_CLASS$_VXWebViewAppController in VXWebViewAppController.o ld: symbol(s) not found for architecture arm64

 

I did some digging and as per my understanding the VuforiaNativeRendererController.mm file is not used anymore by vuforia on ios. But one of the plugins in the project is using vuforia's app controller and is probably looking for this file. Please see the link:

https://support.vuplex.com/articles/ios-graphics-plugin-conflict

Can someone please tell me that what should I do to resolve this?

Hey there,

 

Happy to help, sorry for the delay.

Does that mean that you're using both Vuforia Engine and the 3D WebView Plugin?

 

Kind regards,

Patrick Scheper

Vuforia Engine Product Manager

ModelTarget as a prefab work weird in IOS

Platform

I am new to vuforia and unity.

I make a ModelTarget as a prefab. use `Resource.Load()` and add it to the scene.

In editor, It works very well !

But, I build and run on the ios via Unity .  ARCamera looks weird  after I load the ModelTarget and add it to the scene like two.jpeg

Once ARCamera tracked the target , it resumes like one.png

 

After I make some tests. When `ModelTargetBehaviour`  script enable which make it like two.jpeg.

 

How can I solve this  problem???

Attachment

arm64 architectures VuforiaEngine error in IOS(xcode)

Platform

Given below when trying to publish my application in apple store these error arises

"Command PhaseScriptExecution failed with a nonzero exit code" at the end

 

Executable is /Users/faiyazahmed/Library/Developer/Xcode/DerivedData/Sharelook-fptczznnhrnqvbcgunjjxbsueigy/Build/Intermediates.noindex/ArchiveIntermediates/Sharelook/InstallationBuildProductsLocation/Applications/Sharelook.app/Frameworks/UnityDriver.framework/UnityDriver

Extracting arm64 from UnityDriver fatal error: lipo: input file (/Users/faiyazahmed/Library/Developer/Xcode/DerivedData/Sharelook-fptczznnhrnqvbcgunjjxbsueigy/Build/Intermediates.noindex/ArchiveIntermediates/Sharelook/InstallationBuildProductsLocation/Applications/Sharelook.app/Frameworks/UnityDriver.framework/UnityDriver) must be a fat file when the -extract option is specified Merging extracted architectures: arm64 fatal error: lipo: can't open input file: /Users/faiyazahmed/Library/Developer/Xcode/DerivedData/Sharelook-fptczznnhrnqvbcgunjjxbsueigy/Build/Intermediates.noindex/ArchiveIntermediates/Sharelook/InstallationBuildProductsLocation/Applications/Sharelook.app/Frameworks/UnityDriver.framework/UnityDriver-arm64 (No such file or directory) rm: /Users/faiyazahmed/Library/Developer/Xcode/DerivedData/Sharelook-fptczznnhrnqvbcgunjjxbsueigy/Build/Intermediates.noindex/ArchiveIntermediates/Sharelook/InstallationBuildProductsLocation/Applications/Sharelook.app/Frameworks/UnityDriver.framework/UnityDriver-arm64: No such file or directory Replacing original executable with thinned version mv: rename /Users/faiyazahmed/Library/Developer/Xcode/DerivedData/Sharelook-fptczznnhrnqvbcgunjjxbsueigy/Build/Intermediates.noindex/ArchiveIntermediates/Sharelook/InstallationBuildProductsLocation/Applications/Sharelook.app/Frameworks/UnityDriver.framework/UnityDriver-merged to /Users/faiyazahmed/Library/Developer/Xcode/DerivedData/Sharelook-fptczznnhrnqvbcgunjjxbsueigy/Build/Intermediates.noindex/ArchiveIntermediates/Sharelook/InstallationBuildProductsLocation/Applications/Sharelook.app/Frameworks/UnityDriver.framework/UnityDriver: No such file or directory Executable is /Users/faiyazahmed/Library/Developer/Xcode/DerivedData/Sharelook-fptczznnhrnqvbcgunjjxbsueigy/Build/Intermediates.noindex/ArchiveIntermediates/Sharelook/InstallationBuildProductsLocation/Applications/Sharelook.app/Frameworks/WebRTC.framework/WebRTC Extracting arm64 from WebRTC Merging extracted architectures: arm64 Replacing original executable with thinned version Executable is /Users/faiyazahmed/Library/Developer/Xcode/DerivedData/Sharelook-fptczznnhrnqvbcgunjjxbsueigy/Build/Intermediates.noindex/ArchiveIntermediates/Sharelook/InstallationBuildProductsLocation/Applications/Sharelook.app/Frameworks/AmazonChimeSDK.framework/AmazonChimeSDK Extracting arm64 from AmazonChimeSDK Merging extracted architectures: arm64 Replacing original executable with thinned version Executable is /Users/faiyazahmed/Library/Developer/Xcode/DerivedData/Sharelook-fptczznnhrnqvbcgunjjxbsueigy/Build/Intermediates.noindex/ArchiveIntermediates/Sharelook/InstallationBuildProductsLocation/Applications/Sharelook.app/Frameworks/AmazonChimeSDKMedia.framework/AmazonChimeSDKMedia Extracting arm64 from AmazonChimeSDKMedia Merging extracted architectures: arm64 Replacing original executable with thinned version Executable is /Users/faiyazahmed/Library/Developer/Xcode/DerivedData/Sharelook-fptczznnhrnqvbcgunjjxbsueigy/Build/Intermediates.noindex/ArchiveIntermediates/Sharelook/InstallationBuildProductsLocation/Applications/Sharelook.app/Frameworks/UnityFramework.framework/UnityFramework Extracting arm64 from UnityFramework fatal error: lipo: input file (/Users/faiyazahmed/Library/Developer/Xcode/DerivedData/Sharelook-fptczznnhrnqvbcgunjjxbsueigy/Build/Intermediates.noindex/ArchiveIntermediates/Sharelook/InstallationBuildProductsLocation/Applications/Sharelook.app/Frameworks/UnityFramework.framework/UnityFramework) must be a fat file when the -extract option is specified Merging extracted architectures: arm64 fatal error: lipo: can't open input file: /Users/faiyazahmed/Library/Developer/Xcode/DerivedData/Sharelook-fptczznnhrnqvbcgunjjxbsueigy/Build/Intermediates.noindex/ArchiveIntermediates/Sharelook/InstallationBuildProductsLocation/Applications/Sharelook.app/Frameworks/UnityFramework.framework/UnityFramework-arm64 (No such file or directory) rm: /Users/faiyazahmed/Library/Developer/Xcode/DerivedData/Sharelook-fptczznnhrnqvbcgunjjxbsueigy/Build/Intermediates.noindex/ArchiveIntermediates/Sharelook/InstallationBuildProductsLocation/Applications/Sharelook.app/Frameworks/UnityFramework.framework/UnityFramework-arm64: No such file or directory Replacing original executable with thinned version mv: rename /Users/faiyazahmed/Library/Developer/Xcode/DerivedData/Sharelook-fptczznnhrnqvbcgunjjxbsueigy/Build/Intermediates.noindex/ArchiveIntermediates/Sharelook/InstallationBuildProductsLocation/Applications/Sharelook.app/Frameworks/UnityFramework.framework/UnityFramework-merged to /Users/faiyazahmed/Library/Developer/Xcode/DerivedData/Sharelook-fptczznnhrnqvbcgunjjxbsueigy/Build/Intermediates.noindex/ArchiveIntermediates/Sharelook/InstallationBuildProductsLocation/Applications/Sharelook.app/Frameworks/UnityFramework.framework/UnityFramework: No such file or directory Executable is /Users/faiyazahmed/Library/Developer/Xcode/DerivedData/Sharelook-fptczznnhrnqvbcgunjjxbsueigy/Build/Intermediates.noindex/ArchiveIntermediates/Sharelook/InstallationBuildProductsLocation/Applications/Sharelook.app/Frameworks/VuforiaEngine.framework/VuforiaEngine Extracting arm64 from VuforiaEngine fatal error: lipo: input file (/Users/faiyazahmed/Library/Developer/Xcode/DerivedData/Sharelook-fptczznnhrnqvbcgunjjxbsueigy/Build/Intermediates.noindex/ArchiveIntermediates/Sharelook/InstallationBuildProductsLocation/Applications/Sharelook.app/Frameworks/VuforiaEngine.framework/VuforiaEngine) must be a fat file when the -extract option is specified Merging extracted architectures: arm64 fatal error: lipo: can't open input file: /Users/faiyazahmed/Library/Developer/Xcode/DerivedData/Sharelook-fptczznnhrnqvbcgunjjxbsueigy/Build/Intermediates.noindex/ArchiveIntermediates/Sharelook/InstallationBuildProductsLocation/Applications/Sharelook.app/Frameworks/VuforiaEngine.framework/VuforiaEngine-arm64 (No such file or directory) rm: /Users/faiyazahmed/Library/Developer/Xcode/DerivedData/Sharelook-fptczznnhrnqvbcgunjjxbsueigy/Build/Intermediates.noindex/ArchiveIntermediates/Sharelook/InstallationBuildProductsLocation/Applications/Sharelook.app/Frameworks/VuforiaEngine.framework/VuforiaEngine-arm64: No such file or directory Replacing original executable with thinned version mv: rename /Users/faiyazahmed/Library/Developer/Xcode/DerivedData/Sharelook-fptczznnhrnqvbcgunjjxbsueigy/Build/Intermediates.noindex/ArchiveIntermediates/Sharelook/InstallationBuildProductsLocation/Applications/Sharelook.app/Frameworks/VuforiaEngine.framework/VuforiaEngine-merged to /Users/faiyazahmed/Library/Developer/Xcode/DerivedData/Sharelook-fptczznnhrnqvbcgunjjxbsueigy/Build/Intermediates.noindex/ArchiveIntermediates/Sharelook/InstallationBuildProductsLocation/Applications/Sharelook.app/Frameworks/VuforiaEngine.framework/VuforiaEngine: No such file or directory Command PhaseScriptExecution failed with a nonzero exit code

Failed to create ImageTargetObserver: DATABASE_LOAD_ERROR

Platform

Xcode 13.2

MacOS Big Sur 11.6.5

IOS Device: Phone 6 (12.5.5)

Unity version: 2020.3.26f1

Vuforia Engine AR: 10.4.4

 

It's working ok when I directly build and run from Unity Editor

But currently we have the requirement for it to be plugged into IOS native app

 

I managed to launch the scene following this article

https://medium.com/mop-developers/launch-a-unity-game-from-a-swiftui-ios-app-11a5652ce476

 

The camera is working but this error shows (in the screenshot attached) when initialising the scene.

Wonder if it's related to info.plist.

 

Appreciate if anyone can help or give a hint. Meanwhile will try to work this out

 

Thanks

Seng Yong

iOS Xcode build failing with 'Can't write output file' error

Platform

As title states, Xcode build fails with following error message:

ld: can't write output file to '/Users/[myname]/Library/Developer/Xcode/DerivedData/Unity-iPhone-hddigxyqkdblsufqrkpvwgyphujp/Build/Products/ReleaseForRunning-iphoneos/vuforia.app/vuforia' because that path is a directory

note I removed my user folder name for privacy and replaced with [myname] in this post.

Any help is appreciated.

 

Running Xcode 13.2.1 on M1 Mac Mini running macOS 12.2.1