Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
451 views
in Technique[技术] by (71.8m points)

unity3d - Debugging Unity code on iOS seems really clunky

I have been working on my first Unity project. I need to do some debugging on iOS and it seems like the process is extremely clunky. I wondered if I was missing something that would streamline it. Right now it takes me about 2.5 minutes from making a code change to testing it in the debugger.

Note: this is when developing on a Mac.

Here is what I'm doing.

  1. In the Unity Editor, type Cmd-B to set off a "Build And Run". I have previously set the build platform to be iOS. It then takes about 1.5 minutes to create iPhone Player Xcode project.

  2. In Xcode, I press the Run button. This compiles the iPhone Player code, installs it on my iOS device, and runs it. I get a message saying "You can attach a managed debugger now if you want". This takes about 20-30 seconds.

  3. Now I go to Rider (which I use rather than Visual Studio) and choose the Run > Atttach To Unity Process menu item. This bring up a panel where I need to choose the correct process to debug. This adds maybe 10 seconds.

  4. Click the OK button on iOS where it is waiting to have a debugger connected and wait a few seconds for the app to complete launching.

Is the process really this clunky? When debugging something and doing iterative changes, this 2.5 minute turn around time is really painful. Is that just the way it is?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...