[英]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: 我刚刚从swift2.2迁移到swift 3,现在我收到以下错误:
XCUIApplication is only available on iOS 9.0 or newer XCUIApplication仅适用于iOS 9.0或更高版本
My iOS Deployment Target in Info is 9.0 (see image below) so I'm not sure what is causing this. 我在Info中的iOS部署目标是9.0(见下图),所以我不确定是什么导致了这一点。 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). 注意,我可以在模拟器模式和物理设备上构建和运行应用程序(我尝试在iPhone 6和6+上运行,它工作正常)。 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). 以下是与此错误相关联的Xcode中* UITests.swift的屏幕抓取(下方)(XCUIApplication仅适用于iOS 9.0或更高版本)。
我的问题是我在podfile设置deployment-target中有一个安装后挂钩
I had similiar problem in some Pod. 我在某些Pod中遇到类似的问题。 In my case running pod deintegrate
and then pod install
fixed the problem. 在我的情况下运行pod deintegrate
然后pod install
修复了问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.