简体   繁体   English

XCode UI Automation不再使用模拟器

[英]XCode UI Automation no longer working on Simulators

I Hope someone can help me here. 我希望有人可以帮助我。

I'm using XCode for UI Automation testing. 我正在使用XCode进行UI自动化测试。 For some reason, I can't run my tests on any emulators anymore. 出于某种原因,我无法再在任何模拟器上运行测试。 If I set the device to Generic iOS Device my tests appear, but once I change this to an emulator, my tests are no longer available. 如果我将设备设置为Generic iOS Device我的测试会出现,但是一旦我将其更改为模拟器,我的测试就不再可用了。

I hope someone can help me. 我希望有一个人可以帮助我。 I have also tried deleting my current schemes and creating new ones, but then again, when I try to add my test folder to it, nothing is inside of it unless I select Genetic iOS Device first, and then the same issue occurs when I try to run my tests. 我也尝试删除我当前的方案并创建新方案,但是当我尝试将测试文件夹添加到其中时,除非我先选择Genetic iOS Device ,否则没有任何内容,然后当我尝试时出现同样的问题运行我的测试。

选择通用设备时 选择模拟器时

Make sure your test target has the appropriate platform and architectures. 确保您的测试目标具有适当的平台和体系结构。 Select your project, then select the test target. 选择您的项目,然后选择测试目标。 Under Build Settings, make sure Architectures is set to Standard and Supported Platforms to iOS (which should be iphonesimulator and iphoneos). 在Build Settings下,确保将Architectures设置为iOS的标准和支持平台(应该是iphonesimulator和iphoneos)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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