- ERROR | [iOS] unknown: Encountered an unknown error (Could not find a `ios` simulator (valid values: ). Ensure that Xcode -> Window -> Devices has at least one `ios` simulator listed or otherwise add one.) during validation.
Cocoapod 遇到这个错误,让更新cocoapod
查看cocoapod gem list --local | grep cocoapods 1.检查当前安装版本列表
cocoapods (1.7.3, 1.5.3)
cocoapods-core (1.7.3, 1.5.3)
cocoapods-deintegrate (1.0.4, 1.0.2)
cocoapods-downloader (1.2.2, 1.2.1)
cocoapods-plugins (1.0.0)
cocoapods-repo-svn (2.1.0)
cocoapods-search (1.0.0)
cocoapods-stats (1.0.0)
cocoapods-trunk (1.3.1)
cocoapods-try (1.1.0)
2.卸载不用版本
sudo gem uninstall cocoapods 1.5.3
3.安装指定版本
sudo gem install cocoapods -v 1.6.1
Cocopods 遇到You don’t have write permissions for the /usr/bin directory.
执行此命令即可
sudo gem install cocoapods -n /usr/local/bin