taro-native-shell icon indicating copy to clipboard operation
taro-native-shell copied to clipboard

壳工程打包iOS报错

Open smile678 opened this issue 2 years ago • 7 comments

壳工程打包iOS报错,执行命令yarn upgradePeerdeps报下面的错误

image

smile678 avatar Jul 06 '23 02:07 smile678

https://stackoverflow.com/questions/75414034/invalid-podfile-file-undefined-method-exists-for-fileclass

zhiqingchen avatar Jul 06 '23 03:07 zhiqingchen

应该是新版 cocoapods 的问题

zhiqingchen avatar Jul 06 '23 03:07 zhiqingchen

应该是新版 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版本,还是会报这个错

smile678 avatar Jul 11 '23 07:07 smile678

image

我在执行yarn upgradePeerdeps时也会遇到相同的问题。

有解决方案了吗?

bosenger avatar Nov 24 '23 08:11 bosenger

expo这个包有在node_modules中吗

zhiqingchen avatar Nov 24 '23 14:11 zhiqingchen

最终我是通过rvm重新安装ruby2.7.5版本解决。

解决过程记录在了博客中:

https://www.baozipm.com/archives/1701061112330

bosenger avatar Nov 30 '23 06:11 bosenger

问题在于0.70.0的依赖expo的版本没适配ruby3.2,不过0.73.0版本解决该问题了,请看package.json。不过这个版本后续问题也比较多,大部分还是因为依赖包在xcode15下报错,需要自己修改版本。

rocona avatar Jul 05 '24 01:07 rocona