- Home /
Invalid PBX project Unity 5
Hey everyone,
Since uprgrading to Unity 5, I'm having difficulty in building and running my project for Xcode. During the last phase of the build and run process, the task fails and throws the following error:
Exception: Invalid PBX project (parsing line 18) UnityEditor.iOS.Xcode.Lexer.ScanOne (UnityEditor.iOS.Xcode.Token tok) UnityEditor.iOS.Xcode.Lexer.ScanAll () UnityEditor.iOS.Xcode.Lexer.Tokenize (System.String text) UnityEditor.iOS.Xcode.PBXProject.ParseContent (System.String content) UnityEditor.iOS.Xcode.PBXProject.ReadFromStream (System.IO.TextReader sr) UnityEditor.iOS.Xcode.PBXProject.ReadFromString (System.String src) UnityEditor.iOS.Xcode.PBXProject.ReadFromFile (System.String path) UnityEditor.iOS.PostProcessiPhonePlayer.BuildXCodeProject (UnityEditor.iOS.ProjectPaths paths, UnityEditor.iOS.IncludedFileList includedFiles, System.Collections.Generic.List1 frameworks, System.String sdkVersion, System.String targetOS, System.String productName, Boolean useIl2Cpp, Boolean installInBuildFolder, Boolean dontCopyToBuildDir) UnityEditor.iOS.PostProcessiPhonePlayer.PostProcess (UnityEditor.iOS.iOSBuildPostprocessor pp, BuildTarget target, System.String stagingAreaData, System.String stagingArea, System.String stagingAreaDataManaged, System.String playerPackage, System.String installPath, System.String companyName, System.String productName, BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry) UnityEditor.iOS.iOSBuildPostprocessor.PostProcess (BuildPostProcessArgs args) UnityEditor.PostprocessBuildPlayer.Postprocess (BuildTarget target, System.String installPath, System.String companyName, System.String productName, Int32 width, Int32 height, System.String downloadWebplayerUrl, System.String manualDownloadWebplayerUrl, BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/PostprocessBuildPlayer.cs:316) UnityEditor.BuildPlayerWindow:BuildPlayerAndRun()
Now I assume that this has something to do with the new Unity cloud build feature, and to be clear, I do not want to use cloud build. If anyone has experienced this same issue or can point me in the right direction, your help would be greatly appreciated!
Thanks
I have similar issue.
Exception: Invalid PBX project (parsing line 254) UnityEditor.iOS.Xcode.Lexer.ScanOne (UnityEditor.iOS.Xcode.Token tok) UnityEditor.iOS.Xcode.Lexer.ScanAll () UnityEditor.iOS.Xcode.Lexer.Tokenize (System.String text) UnityEditor.iOS.Xcode.PBXProject.ParseContent (System.String content) UnityEditor.iOS.Xcode.PBXProject.ReadFromStream (System.IO.TextReader sr) UnityEditor.iOS.Xcode.PBXProject.ReadFromString (System.String src) UnityEditor.iOS.Xcode.PBXProject.ReadFromFile (System.String path) UnityEditor.iOS.PostProcessiPhonePlayer.BuildXCodeProject (UnityEditor.iOS.ProjectPaths paths, UnityEditor.iOS.IncludedFileList includedFiles, System.Collections.Generic.List`1 frameworks, System.String sdkVersion, System.String targetOS, System.String productName, Boolean useIl2Cpp, Boolean installInBuildFolder, Boolean dontCopyToBuildDir) UnityEditor.iOS.PostProcessiPhonePlayer.PostProcess (UnityEditor.iOS.iOSBuildPostprocessor pp, BuildTarget target, System.String stagingAreaData, System.String stagingArea, System.String stagingAreaData$$anonymous$$anaged, System.String playerPackage, System.String installPath, System.String companyName, System.String productName, BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry) UnityEditor.iOS.iOSBuildPostprocessor.PostProcess (BuildPostProcessArgs args) UnityEditor.PostprocessBuildPlayer.Postprocess (BuildTarget target, System.String installPath, System.String companyName, System.String productName, Int32 width, Int32 height, System.String downloadWebplayerUrl, System.String manualDownloadWebplayerUrl, BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry) (at /Users/builduser/buildslave/unity/build/Editor/$$anonymous$$ono/BuildPipeline/PostprocessBuildPlayer.cs:316) UnityEditor.BuildPlayerWindow:BuildPlaye
Any idea how to solve it
i think it might be related to stripping the byte code.. you could look at that
I haven't found anything yet. I've submitted a bug report to Unity for now, but will continue looking for options.
For the most part I found that to be true. Although yesterday, even when simply building and replacing an existing project, without running it, it would also throw the exception. I think I may have found a fix though... Delete your entire xcode project and recreate it from Unity.
**Edit: that does not fix the problem permanently.