0
点赞
收藏
分享

微信扫一扫

iOS The run destination iPhone X is not valid for tests you have chosen to perform.


0x00 跑个单元测试,这么难了?

对方向你扔出了一个警告⚠️,并不想理你:
​​​The run destination iPhone X is not valid for tests you have chosen to perform.​​​​Please select a run destination which supports the tests that you wish to perform.​

iOS The run destination iPhone X is not valid for tests you have chosen to perform._iphone


目前为止(2020-07-30 20:32:42)

只看到一篇关于这个的:​​传送门​​

由于没图
无力吐槽
还是得自力更生

0x01 尴尬😓

由于新创建的项目
Deployment Info 的 Target 是 13.2
然后把 Target 调低到 10.0
选择个模拟器 iPhone X

跑个单元测试
怎么都跑不起来!?

所以要怎么改配置呢?
TARGETS -> ​​​XXXTests(单元测试)​​​ -> Build Settings -> iOS Deployment Target -> iOS 10.0
这里的 Target 要跟 模拟器匹配才行!

iOS The run destination iPhone X is not valid for tests you have chosen to perform._单元测试_02

Okidoki

​​什么是Okidoki ?​​


举报

相关推荐

0 条评论