Apple Live Photo file format

A live photo has two resources. They are tied together with an asset identifier (a UUID as a string). A JPEG; this must have a metadata entry for kCGImagePropertyMakerAppleDictionary with [17 : assetIdentifier] (17 is the Apple Maker Note Asset Identifier key). A Quicktime MOV encoded with H.264 at the appropriate framerate (12-15fps) and size … Read more

iOS9: Try to open app via scheme if possible, or redirect to app store otherwise

The iframe trick no longer works — my guess is that Apple knows it will encourage more developers to implement Universal Links, more quickly. You can still set window.location=’your-uri-scheme://’; and fallback to the App Store after 500ms. There is a “dance” between popups if you take this approach, as we do at Branch (we do … Read more

How can I figure out which URL is being blocked by App Transport Security?

Editor Note: @jessedc points out in the comments below the link to the official Apple documentation on how to do this: https://developer.apple.com/library/content/qa/qa1887/_index.html Okay, I have an answer I don’t like! I still very much want a better one. In my application:didFinishLaunchingWithOptions: method I added the line setenv(“CFNETWORK_DIAGNOSTICS”, “3”, 1); When I ran the app then, … Read more

UIAlertController:supportedInterfaceOrientations was invoked recursively

This is a bug in iOS 9 that it failed to retrieve the supportedInterfaceOrientations for UIAlertController. And it seems it dropped to an infinite recursion loop in looking for the supportedInterfaceOrientations for UIAlertController (e.g., it tracks back to UIAlertControler -> UIViewController -> UINavigationController -> UITabBarController -> UIAlertController -> …), while the call to UIAlertController:supportedInterfaceOrientations actually … Read more

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

iOS 9 app download from Amazon S3 SSL error: TLS 1.2 support

Edit 2016-01-03: The renewed certificate for s3.amazonaws.com uses the SHA256 algorithm and complies with ATS requirements. Original answer: s3.amazonaws.com uses a SHA1 cerificate that does not meet ATS requirements, resulting in a hard failure. Per the App Transport Security Technote, ATS in iOS9 has the following requirements: The server must support at least Transport Layer … Read more