Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

XCUIApplication is only available on iOS 9.0 or newer, swift3

This app worked great, I published and updated this app multiple times. I just migrated over to swift 3 from swift2.2 and now I get the following error:

XCUIApplication is only available on iOS 9.0 or newer

My iOS Deployment Target in Info is 9.0 (see image below) so I'm not sure what is causing this. Note, I can build and run the app in simulator mode and on a physical device (I tried running on iPhone 6 & 6+ and it works fine). I am concerned going forward without addressing this issue. Any help/suggestions would be greatly appreciated.

enter image description here

Here is a screen grab (below) from *UITests.swift in Xcode of the line associated with this error (XCUIApplication is only available on iOS 9.0 or newer).

enter image description here

like image 683
Brian Avatar asked Oct 04 '16 17:10

Brian


2 Answers

If cleaning the project doesn't work, you might need to make sure you're setting the right target iOS version on both the project: Xcode deployment target iOS version (project)

...and the target(s): Xcode deployment target iOS version (target)

like image 141
brookinc Avatar answered Oct 24 '22 13:10

brookinc


My problem was that I had a post install hook in my podfile setting deployment-target

like image 27
jalmaas Avatar answered Oct 24 '22 12:10

jalmaas