Search code examples
iosxcodeios-simulatorright-to-leftappcode

AppCode ignores "Right to Left Pseudolanguage" setting from Schema Configuration


I'm writing app that supports right-to-left languages. To test the app in simulator I set up "Right to Left Pseudolanguage" in Schema Configuration in xCode:

enter image description here

When run the app from xCode everything goes as expected and system draw ui elemnts in right-to-left manner. The problem is when I try run app from AppCode, because it seems to ignore this settings and app looks like as common.

After every change in AppCode I have to switch to xCode to run simulator. It's annoying. Can somebody help me?


Solution

  • I've debugged which parameters are given to input when xCode start the process in simulator. The final answer should be:

    -AppleTextDirection YES 
    -NSForceRightToLeftWritingDirection YES
    

    Don't forget about dash in the beginning of the parameter name.