XCODE auto save code when build and run?

2019-02-13 02:48发布

问题:

How to tell Xcode to save the source code automatically without prompting, each time I hit on the build and run?

回答1:

  1. Xcode preferences
  2. Pick 'Building' tab
  3. Lower right corner "For unsaved files:" pick "Always save".


回答2:

Xcode Preferences → Building → Build Options → For Unsaved Files → Always Save?



回答3:

it seems this is the default behaviour in the current xcode 5. hopefully it will return so we can turn it OFF and dont have this painfully slow rebuild.