taro-native-shell
taro-native-shell copied to clipboard
壳工程打包iOS报错
壳工程打包iOS报错,执行命令yarn upgradePeerdeps报下面的错误
https://stackoverflow.com/questions/75414034/invalid-podfile-file-undefined-method-exists-for-fileclass
应该是新版 cocoapods 的问题
应该是新版 cocoapods 的问题
➜ taro-native-shell pod --version 1.10.0 ➜ taro-native-shell ruby -v ruby 3.2.2 (2023-03-30 revision e51014f9c0) [x86_64-darwin22]
你好,我现在的pod版本已经不是最新版的了,用的是1.10.0版本,ruby用的3.2.2版本,还是会报这个错
我在执行yarn upgradePeerdeps时也会遇到相同的问题。
有解决方案了吗?
expo这个包有在node_modules中吗
最终我是通过rvm重新安装ruby2.7.5版本解决。
解决过程记录在了博客中:
https://www.baozipm.com/archives/1701061112330
问题在于0.70.0的依赖expo的版本没适配ruby3.2,不过0.73.0版本解决该问题了,请看package.json。不过这个版本后续问题也比较多,大部分还是因为依赖包在xcode15下报错,需要自己修改版本。