Brian Bird
Brian Bird

Reputation: 1206

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

Upvotes: 8

Views: 5620

Answers (3)

saltwat5r
saltwat5r

Reputation: 1147

I had similiar problem in some Pod. In my case running pod deintegrate and then pod install fixed the problem.

Upvotes: 0

jalmaas
jalmaas

Reputation: 918

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

Upvotes: 2

brookinc
brookinc

Reputation: 619

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)

Upvotes: 4

Related Questions