Refresh devices in team provisioning profile managed by Xcode 7?

Here’s what worked for me on Xcode 8 & 9. Add your device to developer.apple.com. Go to your target’s General tab and tap the (i) next to “Xcode Managed Profile”, then drag the profile file icon in that popover to your desktop to get the filename of the provisioning profile. Go to ~/Library/MobileDevice/Provisioning Profiles and … Read more

Xcode 7 Library search path warning

This is how I fixed this problem Further to a migration of my Xcode project, from Xcode 6.4 to Xcode 7, I get the warning message below (after compilation) for the Test target : directory not found for option ‘-F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.0.sdk/Developer/Library/Frameworks’ Actually I found something when comparing a new project vs an older one… In the … Read more

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

Xcode 7 UI Testing: how to dismiss a series of system alerts in code

Xcode 7.1 Xcode 7.1 has finally fixed the issue with system alerts. There are, however, two small gotchas. First, you need to set up a “UI Interuption Handler” before presenting the alert. This is our way of telling the framework how to handle an alert when it appears. Second, after presenting the alert you must … 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

iOS 9 new feature Free Provisioning (Run your app on a device, just with your Apple ID, without Apple developer membership)

1. How it works? Apple Ref : How to use free provisioning As stated in above link under Launch Your App on Devices Using Free Provisioning point 6. “Xcode creates a free provisioning profile for you“ Update: Above point 6 is removed from link, but there is no change in the way it works and … Read more

tech