XCode 5.0.1 and iOS 5.1 simulator issue

Unfortunately, iOS Simulator 5.0 and 5.1 don’t work on Mavericks. The reason for this is best explained by gparker on the developer forums (https://devforums.apple.com/message/911139#911139): The iOS simulator does not duplicate some of the low-level parts of iOS. For example, it uses the host OS X’s kernel instead of trying to virtualize the iOS kernel. The … Read more

In Xcode, is there a way to disable the timestamps that appear in the debugger console when calling NSLog?

NSLog() is what is doing that, not the debugger console. The easiest way to avoid it is to not use NSLog at all. You could use fprintf(), but that is a pain in that it doesn’t support %@ format types. I generally write a function for this: void MyLog(NSString *format, …) { va_list args; va_start(args, … Read more

How do you get to the XCode Provisioning Organizer?

In Xcode, select Organizer from the Window menu, and you will get a window that give you all sorts of information about your devices and provisioning profiles. Also, there is an application called iPhone Configuration Utility (on my computer, it is in the /Applications/Utilities folder), which has pretty much the same information as the Xcode … Read more

NSTextView with Smart Quotes disabled, still replaces quotes

You can disable smart quotes for your NSTextView with: self.textView.automaticQuoteSubstitutionEnabled = NO; Not setting the checkmark in the interface builder doesn’t seem to work since OS X 10.9 Mavericks. See NSTextView setAutomaticQuoteSubstitutionEnabled: Also you can use this for a more detailed control over the text replacement. self.textView.enabledTextCheckingTypes = 0; See NSTextView setEnabledTextCheckingTypes: Also in Mavericks … Read more

Xcode easily add multiple files to a target

I though’t i’d return to this with an improved answer. It’s still difficult to do this via Xcode main interface, as if you filter for .m and try and do CMD-A to select all, it selects the folders too, so you can’t add these to the target. However, if you go to Project Settings > … Read more

AVURLAsset getting video size

Resolution in Swift 3: func resolutionSizeForLocalVideo(url:NSURL) -> CGSize? { guard let track = AVAsset(URL: url).tracksWithMediaType(AVMediaTypeVideo).first else { return nil } let size = CGSizeApplyAffineTransform(track.naturalSize, track.preferredTransform) return CGSize(width: fabs(size.width), height: fabs(size.height)) } For Swift 4: func resolutionSizeForLocalVideo(url:NSURL) -> CGSize? { guard let track = AVAsset(url: url as URL).tracks(withMediaType: AVMediaType.video).first else { return nil } let size … Read more