需要将:
node_modules/react-native/local-cli/runIOS/findMatchingSimulator.js文件的:
//打开文件以后记得 搜索判断版本的注释,因为实际中,if语句并不一定是这句,但是注释是一样的
// Making sure the version of the simulator is an iOS or tvOS (Removes Apple Watch, etc)
if (!version.startsWith('iOS') && !version.startsWith('tvOS')) {(不一定是这句判断)
continue;
}
修改成:
// Making sure the version of the simulator is an iOS or tvOS (Removes Apple Watch, etc)
if (!version.startsWith('com.apple.CoreSimulator.SimRuntime.iOS') && !version.startsWith('com.apple.CoreSimulator.SimRuntime.tvOS')) {
continue;
}
网友评论