How to format code in Xcode? 

Select first the text you want to format and then press Ctrl+I. Use Cmd+A first if you wish to format all text in the selected file. Note: this procedure only re-indents the lines, it does not do any advanced formatting. In XCode 12 beta: The new key binding to re-indent is control+I.

mailto link with HTML body

As you can see in RFC 6068, this is not possible at all: The special <hfname> “body” indicates that the associated <hfvalue> is the body of the message. The “body” field value is intended to contain the content for the first text/plain body part of the message. The “body” pseudo header field is primarily intended for the generation of short …

Read more

Alert”Developer tools access needs to take control of another process for debugging to continue.Type your password to allow this.”

The first time you launched XCode, it probably asked you if you wanted to enable Developer Mode on this mac. If you accepted, then it asked you for your password, and you stopped getting this kind of warning. Chances are good that you declined, and now it has to explicitly ask you for permission every …

Read more

Download Xcode simulator directly

Clicking on Download in Xcode didn’t do anything – the progress bar did not progress (does that make it a regress bar?). This is what worked for me: Open Xcode, open preferences, go to the Components section. Open the Console App, clear the console. Go back to the Xcode preferences. Start the simulator download, then …

Read more

Xcode: Could not locate device support files

Actually, there is a way. You just need to copy DeviceSupport folder for iOS 7.1 from Older Xcode to the new one. It’s located in: /Applications/ If you don’t have the 7.1 files anymore, you can download a previous version of XCode on, extract it, and then copy these files to following path /Applications/ Credit