简体   繁体   English

XCUIApplication仅适用于iOS 9.0或更高版本的swift3

[英]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或更高版本)。

在此输入图像描述

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: 如果清理项目不起作用,您可能需要确保在项目中设置正确的目标iOS版本: Xcode部署目标iOS版本(项目)

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

我的问题是我在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.

相关问题 centerXAnchor仅在iOS 9.0或更高版本中可用? - centerXAnchor is only available in iOS 9.0 or newer? “ NSBatchDeleteRequest”仅在iOS 9.0或更高版本上可用 - 'NSBatchDeleteRequest' is only available on iOS 9.0 or newer 'setNewsstandIconImage'仅在iOS 9.0或更高版本上可用 - 'setNewsstandIconImage' is only available on iOS 9.0 or newer Xcode UI测试:lldb错误“仅适用于iOS 9.0或更高版本” - Xcode UI Testing: lldb error “only available on iOS 9.0 or newer” “ SFSafariViewController”仅在iOS 9.0或更高版本(React Native Build)上可用 - 'SFSafariViewController' is only available on iOS 9.0 or newer (React Native Build) Swift 3-“ NSPersistentContainer仅在ios 10和更高版本上可用” - Swift 3 - “NSPersistentContainer is only available on ios 10 and newer” self.locationManager.requestAlwaysAuthorization()仅在iOS 8.0或更高版本上可用-Swift - self.locationManager.requestAlwaysAuthorization() is only available on iOS 8.0 or newer - Swift Swift 编译器错误 (Xcode):Concurrency is only available in iOS 15.0.0 or newer - Swift Compiler Error (Xcode): Concurrency is only available in iOS 15.0.0 or newer Swift 3核心数据 - init(context :)仅适用于iOS 10或更高版本 - Swift 3 Core Data - init(context:) is only available on iOS 10 or newer 'LABiometryType'仅适用于iOS 11.0.1或更高版本 - 'LABiometryType' is only available on iOS 11.0.1 or newer
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM