iOS simulator “Error returned in reply: Connection invalid”

今天在网上下了个不错的小demo,想运行看下什么效果,结果build成功后出现了这个提示:


iOS simulator “Error returned in reply: Connection invalid”_第1张图片
error.png

好吧,没见过,跑stackoverflow上看看吧,就找到了这个:[stackoverflow链接](https://stackoverflow.com/questions/39722524/xcode-8-ios-10-simulator-error-returned-in-reply-connection-invalid)

大概意思是说,你开启了多个xcode版本,运行的时候不知道该选择哪个版本的模拟器,所以会run报错(当时我mac上装了并同时开启了xcode8.3.2和xcode9.0beta):


iOS simulator “Error returned in reply: Connection invalid”_第2张图片
solve01.png


iOS simulator “Error returned in reply: Connection invalid”_第3张图片
solve02.png

OK,原因找到,退出所有xcode和模拟器,重新只打开一个,run,bingo,搞定!

你可能感兴趣的:(iOS simulator “Error returned in reply: Connection invalid”)