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
1
Question by Diomich · Jan 22, 2013 at 05:57 PM · iosunityeditorxcodecommand-line

How to get XCode project from Unity project?

Good day to all.

It is a bit strange, but I can't find any info about how to create an XCode project from unity project using command line. I want to write the shell script, that will create XCode project, then build it, archive, etc. The only thing I don't know is how to get XCode project. Maybe i'm just too tired, but it seems really strange and I don't want to believe that the only way is to do it manually from the unity editor.

I will be glad to get any advice or link about this.

Thanks.

Comment
Add comment
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

2 Replies

· Add your reply
  • Sort: 
avatar image
2
Best Answer

Answer by Bunny83 · Jan 22, 2013 at 06:09 PM

I would try to do something like that:

  • Create an editor script in your project which will contain a static function which uses BuildPipeline.BuildPlayer to build the player.

  • Run Unity with those commandline parameters: - -projectPath YourProjectPath - -batchmode - -quit - -executeMethod YourClassName.YourMethodName

You can use System.Environment.GetCommandLineArgs in your editor script to process any additional parameters

Comment
Add comment · Show 4 · Share
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 Diomich · Jan 22, 2013 at 06:42 PM 0
Share

thanks a lot for your answer. i'll try it tomorrow.

avatar image Diomich · Jan 25, 2013 at 12:40 PM 0
Share

Sry for late answer. I've tried what you say but it seems that something is wrong. I created .js script like this one, added it to Assets/Editor folder and run from the command line unity with parameter "-execute$$anonymous$$ethod $$anonymous$$yBuild" (do not post other parameters as they are standard) but do not see any result =( no build folder created, no errors in the ter$$anonymous$$al window =( do you have any thoughts about what i'm doing wrong? (if it is important, i have iOS license and can build ios project from unity editor manually without problems, also i've changed the build target and paths to my scenes in the .js file)

avatar image Bunny83 · Jan 27, 2013 at 03:54 AM 0
Share

Well you have to specify the classname and the function name seperated by a dot (.).

 -execute$$anonymous$$ethod ClassName.$$anonymous$$yBuild

Since it seems you use the sample script from the docs i can't tell you your classname since that's the file name you put the script in.

ps: Just in case you've missed that in the docs:

"To use -execute$$anonymous$$ethod you need to have a script in an Editor folder and a static function in the class."

avatar image Diomich · Jan 28, 2013 at 12:23 PM 0
Share

i'd added class name and now it works =) thanks a lot =)

avatar image
0

Answer by Maulik2208 · Jan 25, 2013 at 01:04 PM

Steps to be followed in unity: 1) Switch platform to Iphone 2)go to build setting----> player setting and fill the credentials there 4)now click on Build 5)you will be asked for the path and after few secs. you will get xcode proj of your unity project

Don't forget to mark the answer if Helped........

Comment
Add comment · Show 1 · Share
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 Diomich · Jan 25, 2013 at 01:15 PM 0
Share

it seems that you didn't read my question. i'd asked how to create build from the command line, not from the unity editor

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

11 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

Related Questions

Unity iOS CompileC error while building through Xcode 1 Answer

Not able to add iCloud to XCode project via PostProcessing script using the XCodeAPI 1 Answer

Error while building ios app using Unity3d ARFoundation 0 Answers

Unity edit UnityAppController.mm when build iOS 0 Answers

Unity 3D Scene loading Issue in iOS Build 2 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