简体   繁体   中英

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.

在此输入图像描述

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).

在此输入图像描述

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部署目标iOS版本(项目)

...and the target(s): Xcode部署目标iOS版本(目标)

我的问题是我在podfile设置deployment-target中有一个安装后挂钩

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM