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.

How to download Xcode DMG or XIP file?

You can find the DMGs or XIPs for Xcode and other development tools on https://developer.apple.com/download/more/ (requires Apple ID to login). You must login to have a valid session before downloading anything below. *(Newest on top. For each minor version (6.3, 5.1, etc.) only the latest revision is kept in the list.) Xcode 13 13.2.1 13.1 … Read more

Failed to create provisioning profile

Check the schemes menu at the top of the Xcode project window. Look at the destination you’re trying to run in. If you run in the simulator, you don’t need to sign your project. If you run in a device, you need to attach the actual device. It must not say “generic device”.

Code signing is required for product type ‘Application’ in SDK ‘iOS 10.0’ – StickerPackExtension requires a development team error

I am facing the below issue and am unable to build the application. XXX has conflicting provisioning settings. XXX is automatically provisioned, but provisioning profile WildCard has been manually specified. Set the provisioning profile value to “Automatic” in the build settings editor, or switch to manual provisioning in the target editor. Code signing is required … Read more

ld: warning: directory not found for option’

You need to do this: Click on your project (targets) Click on Build Settings if your error includes the -L flag, then delete the values in Library Search Paths if your error includes the -F flag, then delete the values in Framework Search Paths And regarding the second error, sorry i can’t help you out with that one. Hope someone else can help you … Read more

Xcode 10 Error: Multiple commands produce

The issue might be occurring because of multiple Plist or other files within App- Solution -> Open target -> Build phases > Copy Bundle Resources and remove info.plist from there. Note: If you have developed a watch app too then you will have to remove the plist from the watch and watch-extension too.

UIStackView before iOS 9.0

Check inProject Targets-> Deployment info -> Deployment Target.If it’s not 9.0 change it to 9.0. You need to change the deployment target of your application’s target to iOS 9. Otherwise the app supports down to whatever OS that your deployment target is set to. Not solved?? Check out for other reason??? Check this: If your … Read more

Thread 1: EXC_BAD_ACCESS (code=1, address=0x0) standard C memory issue

Check the return value of strtok. In your code here strtok is returning a NULL pointer and according to documentation, A null pointer is returned if there are no tokens left to retrieve. which matches my original guess that because the address code is 0x0 there’s a NULL pointer deference somewhere. Obviously, the following call to atoi is expecting a non-NULL pointer … Read more

How to update Xcode from command line

What you are actually using is the command to install the Xcode command line tools – xcode-select –install. Hence the error message you got – the tools are already installed. The command you need to update Xcode is softwareupdate command [args …]. You can use softwareupdate –list to see what’s available and then softwareupdate –install -a to install all updates or softwareupdate … Read more

Git is not working after macOS Update (xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools)

The problem is that Xcode Command-line Tools needs to be updated. Solution #1 Go back to your terminal and enter: You’ll then receive the following output: You will then be prompted in a window to update Xcode Command Line tools. (which may take a while) Open a new terminal window and your development tools should … Read more