Log in or register to post comments

Unity Package won't install

April 3, 2021 - 10:47pm #1

I'm getting error when trying to install the package in Unity per this link:

https://library.vuforia.com/articles/Training/getting-started-with-vuforia-in-unity.html

 

I download the package and attempt to import and I get error of:

Project has invalid dependencies:

    com.ptc.vuforia.engine: Error when executing git command. fatal: update_ref failed for ref 'HEAD': cannot update ref 'refs/heads/master': trying to write non-commit object 2aa4b218a1eefc116d8bef718e26f3a08d2e5f02 to branch 'refs/heads/master'



A re-import of the project may be required to fix the issue or a manual modification of AR/Packages/manifest.json file.

 

I've tried to start new clean project and still get same error. I'm on Mac OSX Big Sur 11.2.3 and Unity 2021.1.1f1

I've tried all the suggestions in this thread already...

https://developer.vuforia.com/forum/issues-and-bugs/unable-import-vuforia-964-unity

...as well including the manual download as shown in the YT video in the thread.

I have Git installed and PATH variable is set.

Ideas? 

Unity Package won't install

April 29, 2021 - 10:23am #7

Super Quick Solution:



1. Open your Unity project folder, 

2. Go to Package, open packages-lock.json file with text editor,

3. Inside the json entity of com.ptc.vuforia.engine, inside the its json tree,

Change the hash

from 2aa4b218a1eefc116d8bef718e26f3a08d2e5f02

to 28847b1d9fcf851fa7717711a3b07d2441cf25b1

4. Go to your Unity Editor and you would see it would load the dependency and it will work like normal again.

 

Unity Package won't install

April 8, 2021 - 12:45am #6

Hi @xebuddha,

The comand should reference the package as in the below example:

xattr -r -d com.apple.quarantine /Users/mcotora/UnityProjects/TestManualInstall/Packages/com.ptc.vuforia.engine

@Emercab,

Please see this thread: https://developer.vuforia.com/forum/unity/know-issue-installing-vuforia-engine-unity-202032-or-202111

Thank you.

Vuforia Engine Support

Unity Package won't install

April 7, 2021 - 4:41pm #5

I have same error in Windows, Have someone solved it?

Quote:

An error occurred while resolving packages: Project has invalid dependencies: com.ptc.vuforia.engine: Error when executing git command. fatal: update_ref failed for ref 'HEAD': cannot update ref 'refs/heads/master': trying to write non-commit object 2aa4b218a1eefc116d8bef718e26f3a08d2e5f02 to branch 'refs/heads/master'

I haveGit correctly installed and added into path variable.

Unity Package won't install

April 7, 2021 - 10:35am #4

Hi, when i write mymac@Username-iMac ~ % xattr -r -d com.apple.quarantine </Users/MyMac/Desktop/MyGame/Packages/packages-lock.json> in terminal it gives this error:

zsh: parse error near `\n'

mymac@Username-iMac ~ % is written default when i open terminal then i write your code xattr -r -d com.apple.quarantine </Users/MyMac/Desktop/MyGame/Packages/packages-lock.json>

I open my game folder > packages folder and copied path for /packages-lock.json

Am i doing something wrong?

Unity Package won't install

April 7, 2021 - 6:34am #3

Hi @ mminnovations @xebuddha,

I was able to reproduce the issue with 2020.3.2 LTS. R&D team is looking into this currently.

The issue seems to occur when using the script as an alternative please use the method to manually download the SDK described here: https://library.vuforia.com/articles/Solution/vuforia-engine-package-hosting-for-unity.html

MacOs will try and quarantine the package:

To resolve this, an additional step is necessary.

To approve the VuforiaWrapper as a trusted source, add the following in the Terminal Command Line Tool and replace the. <package directory>  with the folder in which the  package.json file is located.

xattr -r -d com.apple.quarantine <package directory>

Thank you for your understanding.

Vuforia Engine Support

Unity Package won't install

April 6, 2021 - 1:10pm #2

I have exactly the same problem with 2020.3.2 editor in Mac Big Sur

Log in or register to post comments