Reputation: 1206
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.
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).
Upvotes: 8
Views: 5620
Reputation: 1147
I had similiar problem in some Pod. In my case running pod deintegrate
and then pod install
fixed the problem.
Upvotes: 0
Reputation: 918
My problem was that I had a post install hook in my podfile setting deployment-target
Upvotes: 2
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:
Upvotes: 4