How to install iOS 7 and onwards simulators in Xcode 7 Beta 5?

Older Simulator runtimes are available for download through Xcode’s preferences. Goto Xcode -> Preferences -> Downloads to see the list of compatible legacy simulator runtimes. El Capitan supports iOS 8.1 and newer runtimes. Yosemite supports iOS 7.1 and newer runtimes. There is a known issue mentioned in the Xcode release notes which prevents the iOS … Read more

iOS9 – This application is modifying the autolayout engine from a background thread — where?

This code PSPDFUIKitMainThreadGuard causes assertions on UIKit access outside the main thread Steps to use: Add to project and compile this file without ARC Move PSPDFAssert definition to the first of the file Comment calling of PSPDFLogError as it is not defined import <UIKit/UIKit.h> Your app will crash and stop with any attemption to modify … Read more

Is there a way to reset the app between tests in Swift XCTest UI?

You can add a “Run Script” phase to build phases in your test target to uninstall the app before running unit tests against it, unfortunately this is not between test cases, though. /usr/bin/xcrun simctl uninstall booted com.mycompany.bundleId Update Between tests, you can delete the app via the Springboard in the tearDown phase. Although, this does … Read more