Incorrect path is returned from `PBXProject.GetPBXProjectPath`

Hi,

I came across an issue that PBXProject.GetPBXProjectPath method returns as “blabla/Unity-iPhone.xcodeproj/project.pbxproj” instead of “blabla/Unity-VisionOS.xcodeproj/project.pbxproj”

Hi there! This is indeed a known issue. You can instead just use the outputPath from BuildReport.outputPath and combine it with a hardcoded string:

var projectPath = Path.Combine(ouputPath, "Unity-VisionOS.xcodeproj/project.pbxproj");

Or something similar. Because this would have been a breaking change, we can’t modify the output of that API in an LTS version. For the time being, please avoid using PBXProject.GetPBXProjectPath on visionOS projects.

3 Likes

Thanks I did the same.