开发者

How to debug Xcode apps in a specific locale (English, say)?

When I develop a Mac app with localized interface with Xcode, I tend to modify the English resources and have them localized/translated only when the rest of the development work is done. Being on a non-English system, when I ask Xcode to run the app, it uses the localization to my own language, when I would want to choose myself (and choose English, in most cases).

So, how do I tell Xcode what language I want the app in during 开发者_开发知识库debug sessions?


In current Xcode you can set the Application Language that you launch if you Edit the Scheme and go to the Run options.

How to debug Xcode apps in a specific locale (English, say)?


You are probably looking for an answer for Xcode 4.X but I hope that this will help.

In Xcode 3.2.6 in the Groups & Files section of the project window open up the Executable section. Select the executable you want to run in English, and do command I. Click on the "Arguments" tab and then click on the + at the bottom. Then add:

-AppleLanguages "English"

as an argument.

hth


If you are debugging on iOS Simulator:

  1. Run iOS Simulator
  2. Click Home Button
  3. Go into it's Settings.app
  4. General
  5. International
  6. Language -> chouse English or any other

If you are debugging on Device - repeat all steps from 2) till 6).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜