如何更改 Xcode react-native run-ios 指向的版本? [英] How to change the version of Xcode react-native run-ios points to?
本文介绍了如何更改 Xcode react-native run-ios 指向的版本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
为了调试不同的 React Native 应用程序,我不得不在不同版本的 Xcode 之间来回切换.这是确保您的 $: react-native run-ios 指向正确位置的方法:
I've had to jump back and forth between different versions of Xcode in order to debug different React Native applications. Here's a way to make sure your $: react-native run-ios points to the right location:
$: sudo xcode-select --switch/Applications/[这里你想要的Xcode版本].app/
$: sudo xcode-select --switch /Applications/[The version of Xcode you want here].app/
推荐答案
Xcode -> Preferences -> Locations -> Choose Command Line Tools -> Close Xcode
Xcode -> Preferences -> Locations -> Choose Command Line Tools -> Close Xcode
react-native run-ios
react-native run-ios
这篇关于如何更改 Xcode react-native run-ios 指向的版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文