Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
2
Question by VFe · Aug 29, 2013 at 10:59 PM · errorbuildfileosxdirectory

Error building OSX only.

I'm trying to make an editor script that will build several versions and then place them in corresponding folders, it works fine for the WIN/NIX builds but always fails for OSX, building on a Windows Machine(win 8).

     [MenuItem("Build ALL")]
     public static void Build_All()
     {
         string deployPath = ppUtility.pgBuildAllDeployPath;
         
         PlayerSettings.productName = "pw";
         string appPath = deployPath + "builds" + "/" + "/" + "dist" + "/" + "pw" + "/" + "win" + "/" + "32" + "/" + "pw32.exe";
         BuildPipeline.BuildPlayer(new string[] { "Assets/pp/pw/main.unity" }, appPath, BuildTarget.StandaloneWindows, BuildOptions.None);
         Debug.Log("pw (WIN32) build " + DateTime.Now.ToString("dd MMM HH:mm:ss"));
 PlayerSettings.productName = "pw";    
         string appPath5 = deployPath + "builds" + "/" + "/" + "dist" + "/" + "pw" + "/" + "nix" + "/" + "32" + "/" + "pw.x86";    
         BuildPipeline.BuildPlayer(new string[] { "Assets/pp/pw/main.unity" }, appPath5, BuildTarget.StandaloneLinux, BuildOptions.None);
         Debug.Log("pw (NIX32) build " + DateTime.Now.ToString("dd MMM HH:mm:ss"));
 PlayerSettings.productName = "pw";
         string appPath2 = deployPath + "builds" + "/" + "/" + "dist" + "/" + "pw" + "/" + "mac" + "/" + "32" + "/" + "pw32.app" + "/";        
         BuildPipeline.BuildPlayer(new string[] { "Assets/pp/pw/main.unity" }, appPath2, BuildTarget.StandaloneOSXIntel, BuildOptions.None);
         Debug.Log("pw (MAC32) build " + DateTime.Now.ToString("dd MMM HH:mm:ss"));

deployPath just being a reference to "/../../" to go up several folders.

This will build the win and linux versions fine and put them in the appropriate folder. OSX will always result in.

 Error building Player: IOException: Failed to Move File / Directory from 'Temp/StagingArea/UnityPlayer.app' to 'C:/unitypp/pw/Assets/../../pw/mac/32/pw.app'.

I tried tons of things, launching with admin, restarting unity, computer, putting extra /s or removing them, changing them to \, anything I could think of.

The issue, as I've discovered, is that ONLY when building the OSX version, Unity cannot create new folders automatically(which works fine with win/nix). If I create the target folder before building, it works fine.

Any ideas why this is this is an issue only with building the OSX version? and thoughts on ways to over-come it?

Comment
Add comment · Show 1
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image lvictorino · Apr 02, 2014 at 02:59 PM 0
Share

Have you found a solution to this problem? I have the exact same one and tried a lot of things... but it only happens with OSX build.

0 Replies

· Add your reply
  • Sort: 

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

17 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Distribute terrain in zones 3 Answers

Build Problem (Mac) 1 Answer

errors on IL2CPP build 0 Answers

Android Build problem? 2 Answers

Game not working after build 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges