Encountered an unknown error (Could not find a `ios` simulator (valid values: )

通过pod spec lint 检查命令报这个错误。
原因是:我的电脑是128G的,硬盘不足,我把/Users/jiaguoshang/Library/Developer/CoreSimulator/Devices文件夹下的所有模拟器文件都给宰了(当然你把/Users/jiaguoshang/Library/Developer/Xcode/Archives文件夹下的所有文件删除也能增加很多空间,我把这个文件下的文件删除了还是不空间不足。把/Users/jiaguoshang/Library/Developer/Xcode/DerivedData文件夹下的文件都删除。空间增加不少。重新联调真机就比较慢了,需要重新生成对应的设备文件),这样能省很多空间。你的xcode工程没有一个模拟器。
解决方案:下载一个模拟器。然后重新检查。
不到空间极度紧张,别删除/Users/jiaguoshang/Library/Developer/CoreSimulator/Devices文件夹下的所有模拟器文件。不然会遇到你就是下载最新的模拟器,但是部分最新模拟器也找不到。若真出现了这种找不到你期望的最新模拟器,只有删除/Users/jiaguoshang/Library/Developer所有文件,删除xcode应用,重新下载安装了。当然你想重新下载xcode,可以通过这种方案增加空间。
报错信息如下:

w1:BITCrypto jiaguoshang$ pod spec lint BITCrypto.podspec --sources='http://192.168.1.136:8788/bitinfo_tech_ios/Spec1.git,https://github.com/CocoaPods/Specs1.git' --allow-warnings   --use-libraries

 -> BITCrypto (0.0.11)
    - 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.

Analyzed 1 podspec.

[!] The spec did not pass validation, due to 1 error.

在这里插入图片描述
选择设备,点击Download Simulators,进入模拟器下载列表,点击下载按钮,输入电脑的登录密码。
在这里插入图片描述

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Jupyter error: could not install packages due to an EnvironmentError: [WinError] is commonly encountered when trying to install packages using Jupyter Notebook on a Windows operating system. This error indicates that there is an issue with the environment or the system's permissions. One possible cause of this error is that the package being installed requires administrative privileges to be installed correctly. In this case, you can try running the Jupyter Notebook as an administrator by right-clicking on the Jupyter shortcut and selecting the "Run as administrator" option. This may resolve the permissions issue and allow the packages to be installed successfully. Another possible cause is that there might be a conflict between different Python versions or dependencies. In such cases, it is recommended to create a new virtual environment using a tool like Anaconda, which helps manage different Python environments and their dependencies. This can help resolve any conflicts and ensure a clean installation of packages without encountering environment errors. It is also possible that the error is related to the local network configuration or proxy settings. In this case, it might be helpful to check the network connection, firewall settings, and proxy configurations. Disabling the firewall temporarily or configuring the proxy settings correctly can sometimes resolve the installation issue. In some cases, this error can also occur due to insufficient storage space. Make sure that there is enough disk space available for installing the packages. If the issue persists, it is recommended to search for specific error messages or codes encountered during the installation process. This can provide more specific insights into the root cause of the problem and guide towards a more targeted solution. Overall, this error usually occurs due to permission, dependency, network, or storage issues. By following the above suggestions and troubleshooting steps, you should be able to resolve the environment error and successfully install packages in Jupyter Notebook.

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值