I’m trying to build a project that contains CCD (but no Addressables) in UCB, but the builds keep failing with the following error (when building for Android, haven’t tested iOS yet)…
error CS0234: The type or namespace name ‘Ccd’ does not exist in the namespace ‘Unity.Services’ (are you missing an assembly reference?)
The cs file that is triggering the error has the following two using clauses…
using Unity.Services.Ccd.Management;
using Unity.Services.Ccd.Management.Models;
CCD 2.1.0 was installed as per the Unity instructions (for using it without Addressables) and it works fine in the player.
It looks like there are referenced assemblies that cannot be resolved. Can you validate that you have the unity services core package installed and what is the version that is installed?
And finally the com.unity.services.core@1.7.0 folder exists in the package cache, but not 1.3.1
So I wonder if the missing Core 1.3.1 package is causing this?
I’ve just uninstalled\reinstalled the CCD package (using Package Manager) but it still hasn’t updated. By that I mean adding the Core 1.3.1 entry to manifest.json or adding Core 1.3.1 into the package cache.
I’ve tried but can’t seem to find a way to install a dependant (only) package.
Re-installing the parent (CCD) package doesn’t appear to install dependant packages (well certainly if ones with higher versions exists). Dependant only packages (i.e. com.unity.services.core) aren’t listed in the package manager. And manually adding the package to the manifest doesn’t install the package or fix the issue either.
So I guess the question is, how can you install dependant only packages?
Update #1: I’ve tried deleting the lock file, but it still doesn’t install the Core 1.3.1 package when the project is opened (and the lock file re-created)
Looking at the dependencies in the package manager, Unity seems happy using Core 1.7.0 with CCD 2.1.0 (see attached screenshot)
So maybe the issue is UCB and not CCD or Editor package management?
The best way to get support on this issue would be to open up a support ticket with the cloud build customer service team. In the Unity Dashboard go to DevOps → Help & Support → File a Ticket.
Same issue. I opened up a support ticket but support team doesn’t help me.
Can anyone give me a example project that can build? Even CCD sample(include package) can’t build.
It looks like that [error] tag in front should not be in the logs for those import statements. My guess is that our log processing sees the ErrorMitigation and thinks that there was an error when in reality there wasn’t.
So that shouldn’t be the reason that you are getting issues with CCD.
Hey David,
Thanks for posting and asking great questions.
You are right the CcdManagement seems to only intended for editor use. However we have a ticket open ticket to resolve the error in question that you got at build time.
I had an internal discussion regarding this and it seems what you are looking for may be the CCD client
My only problem with this suggestion is our documentation is limited to this.
Additionally it is difficult to find the package you would need to add the following package by name com.unity.services.ccd-client in the package manager
Alternatively would using the API / CLI be something that can be used in your application?