Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PBXSourceTree type compilation errors when iOS Build Support module is not installed #41

Closed
rfadeev opened this issue Jan 10, 2020 · 0 comments · Fixed by #42
Closed

Comments

@rfadeev
Copy link
Contributor

rfadeev commented Jan 10, 2020

Hello,

When opening repository as Unity project with Unity installation which does not have iOS build support, following compilation errors are observed in the Unity console:

Assets\Stickers\Editor\PBXProjectData.cs(117,72): error CS0246: The type or namespace name 'PBXSourceTree' could not be found (are you missing a using directive or an assembly reference?)
Assets\Stickers\Editor\PBX\Objects.cs(357,69): error CS0246: The type or namespace name 'PBXSourceTree' could not be found (are you missing a using directive or an assembly reference?)
Assets\Stickers\Editor\PBXProjectData.cs(226,79): error CS0246: The type or namespace name 'PBXSourceTree' could not be found (are you missing a using directive or an assembly reference?)
...

Reproduced with Unity 2018.4.6f1 and 2019.2.11f1.

This is caused by PBXProject.cs having PBXSourceTree enum commented hence trying to find it in Unity namespaces and fails to do so.

Installing iOS build support fixes the issue, though I think it's better to have project compile without errors regardless of Unity installation configuration. Reason for that could be several people working on the same project with some of them not having iOS build support installed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant