Xcode Preview @ symbol

Hey guys, my @-key works well, but in preview mode in Xcode (Version 14.2 (14C18)), the @-key doesn't work. It return that strange symbol (see screenshot) in textFields.

any Ideas?

Thank you, greetings from Germany. :)

Did you try to set a different font for the TextField ?

What is the one presently ?

Same here. Same Xcode Version, same problem. Simulator works fine. I have tried it with two different fonts and switched simulator from iPhone 13 to 14. Nothing works, just this strange symbol.

Seems to be connected to your Mac’s keyboard mapping. That’s a U+00AC NOT SIGN character (in Unicode terms) which is mapped to Option+L on the U.S. English keyboard layout. And I see that Option+L is how you type the @ sign on the German keyboard layout. Trying typing Shift+2 which is how to get the @ sign on U.S. English.

Could be a bug, or maybe there’s a setting to control this. The simulator does have a menu option for Use the Same Keyboard Language as macOS.

I have identified the problem yesterday. It's what Scott wrote. No Bug. The "problem" is, Xcode runs in English language and so does the Keyboard. Solution:

  1. Click on your App name in the top middle from the Xcode window next to the current simulator.
  2. A dropdown menu will appear --> click "Edit Scheme"
  3. Change the App Language & App Region to German and Germany. You have to do that in the sub-menu "Run" & "Test".
  4. profit!

OR Top Menu --> Product --> Scheme --> Edit Scheme --> Point 3 from above --> Profit!

Everything runs smoothly :-)

Xcode Preview @ symbol
 
 
Q