The xed - Xcode Text Editor Invocation Tool If you are in your Xcode project folder and your project has both a workspace( .xcworkspace) and a project(.xcodeproj) the file then you can use following command to open...
Where to find Project Build Settings Documentation? Do you know Xcode's project build setting has documentation? Just press ⌥ (option) + Double Click for complete documentation or open Quick Help Inspector....
How to Add Function Documentation in Xcode? You can use ⌥ + ⌘ + / (option + command + ) to add function documentation....
How to clean the iOS app launch screen cache? You might have noticed when you tried to change something in the launch screen on the iOS application, you still see the old launch screen. Because the system caches launch...
How to do Git Blame in Xcode? If you work with a team, do you ever need to know who added this horrible bug? There are two ways to do Git Blame in Xcode. 1. Check the...
How to Open a File in Specific Xcode Position? In Xcode, you can open a file in various ways, you can open a file in the standard editor, in a new or existing assistant editor, in a new or...
Xcode - How to Quick Jump on Specific Line Number? You might know, command + shift + o opens the "Open quickly" dialog, where you can quickly find and open files that contain the text you enter. But, If you...
How to Access Document Directory Content in Files App? From iOS 11, If you set LSSupportsOpeningDocumentsInPlace to YES and UIFileSharingEnabled to YES in your Info.plist, you can access your application Documents directory in the Files application. <key&...
How to set UserDefault Key Value from Launch Argument? This is the best hidden feature of UserDefaults. If you pass a UserDefault key and value as a launch argument this will set new value for that key. You can...
Test your localization string with NSDoubleLocalizedStrings You can use NSDoubleLocalizedStrings as a launch argument to double the length of all of your NSLocalizedStrings to easily test your UI for internationalization purposes. Here the side by side...
How to Clear Derived Data using Xcode Keyboard Shortcut? Do you know, you can clear derived data from Xcode with a custom keyboard shortcut? First, Create a new script file somewhere in your system with following command - rm...
Open Terminal for current Project using Xcode Keyboard Shortcut Do you know, you can open Terminal from Xcode at the project's path with a custom keyboard shortcut? First, Create a new script file in your project root...
How to Remove unavailable simulators from Xcode? This little command will remove all unavailable simulators from Xcode. Here "unavailable" means unavailable to xcode-select's version of Xcode. xcrun simctl delete unavailable...
Debug your AutoLayout constraints with Sound Notification And this is a great way to debug your AutoLayout constraints. Just pass UIConstraintBasedLayoutPlaySoundOnUnsatisfiable argument on launch and it’s plays sounds when constraints are screwed at runtime. -_UIConstraintBasedLayoutPlaySoundOnUnsatisfiable...
How to use your MacBook Pro fingerprint to sudo? If you want to use your fingerprint as your sudo password on Macbook Pro edit /etc/pam.d/sudo and add the following line to the top auth sufficient pam_...