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 due to OS update. ** UPDATED for Ventura and updated apple dev download page ** After opening the terminal after a restart, I tried to go to my code, and do a git status, and I got an error and prompt for command line … Read more

Relative Paths Not Working in Xcode C++

Took me about 5 hours of Google and trying different things to FINALLY find the answer! #ifdef __APPLE__ #include “CoreFoundation/CoreFoundation.h” #endif // —————————————————————————- // This makes relative paths work in C++ in Xcode by changing directory to the Resources folder inside the .app bundle #ifdef __APPLE__ CFBundleRef mainBundle = CFBundleGetMainBundle(); CFURLRef resourcesURL = CFBundleCopyResourcesDirectoryURL(mainBundle); char … Read more

Give warning when [super method] is not called

Recent versions of llvm have added an attribute that indicates that subclasses must call super: @interface Barn:NSObject – (void)openDoor NS_REQUIRES_SUPER; @end @implementation Barn – (void) openDoor { ; } @end @interface HorseBarn:Barn @end @implementation HorseBarn – (void) openDoor { ; } @end Compiling the above produces the warning: Method possibly missing a [super openDoor] call

Xcode freezes on startup while loading project

Check out this: (quoted from here) Restore sanity by not restoring Thanks to Lion’s Restore feature, all the windows you left open in a given application remain open when you relaunch it. That’s awesomely helpful in a Web browser or a text editor. In certain apps, however—particularly those where you rarely need to revisit the … Read more

How to Install Older iOS Simulators in XCode 4.2.1 (SDK5.0)

X-Code 4.2 will have iOS 5 simulator and library only. If you want lower version simulator and library with X-Code just goto X-Code->Prefrences-> Downloads Tab. In downloads tab you’ll have two tabs: 1) Components – Here you will have option to download iOS 4.3 simulator(~600 Mb), iOS 4.0-4.1(~670 MB) Device debugging support, iOS 3.0-3.2.2(686.3 MB) … Read more

iOS11 photo library access is possible even if settings are set to “never”

Okay, you can sort of piece this together from answers and comments already, but to try to tell a more complete story… In iOS 11, UIImagePickerController runs as a separate process from your app. That means: Your app can’t see the user’s whole Photos library — it gets read-only access just for whichever asset(s) the … Read more