dcariola / XCodeEditor-for-Unity

XCode 4 project editor for Unity3D postprocess.
MIT License
217 stars 101 forks source link

UriFormatException with BuildPipeline.BuildPlayer #10

Open kyubuns opened 10 years ago

kyubuns commented 10 years ago
BuildPipeline.BuildPlayer(levels, "xcode_project", BuildTarget.iPhone, BuildOptions.None);

This code causes the following error:

UriFormatException: Invalid URI: The format of the URI could not be determined: xcode_project/.
System.Uri rootURI = new System.Uri( ( projectRootPath + "/." ) );
in XCodeEditor/XCProject.cs

check this: https://github.com/Everyplay/everyplay-ios-sdk/issues/20

Unity 4.5.0f6 OS X 10.9.2 XCode 5.1.1

kyubuns commented 10 years ago
string dstPath = Application.dataPath.Substring(0, Application.dataPath.IndexOf("Assets"));
dstPath = System.IO.Path.Combine(dstPath, "xcode_project");
BuildPipeline.BuildPlayer(levels, dstPath, BuildTarget.iPhone, BuildOptions.None);

This code succeeds.