AFNetworking required by Podfile AFNetworking (= 2.6.0) required by Podfile.lock

本文介绍了如何解决由Podfile和Podfile.lock文件中指定的不同版本的AFNetworking导致的冲突问题。提供了具体的步骤来确保所有依赖项使用相同的AFNetworking版本。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

AFNetworking required by Podfile
AFNetworking (= 2.6.0) required by Podfile.lock

solution: remove or rename Podfile.lock and run pod install again
if AFNetworking (= 2.6.0) required by other library, make they use same version of AFNetworking and run pod install again

the following is from
http://blog.youkuaiyun.com/timtian008/article/details/50773257
pod ‘AFNetworking’ //不显式指定依赖库版本,表示每次都获取最新版本
pod ‘AFNetworking’, ‘2.0’ //只使用2.0版本
pod ‘AFNetworking’, ‘>2.0′ //使用高于2.0的版本
pod ‘AFNetworking’, ‘>=2.0′ //使用大于或等于2.0的版本
pod ‘AFNetworking’, ‘<2.0′ //使用小于2.0的版本
pod ‘AFNetworking’, ‘<=2.0′ //使用小于或等于2.0的版本
pod ‘AFNetworking’, ‘~>0.1.2′ //使用大于等于0.1.2但小于0.2的版本,相当于>=0.1.2并且<0.2.0
pod ‘AFNetworking’, ‘~>0.1′ //使用大于等于0.1但小于1.0的版本
pod ‘AFNetworking’, ‘~>0′ //高于0的版本,写这个限制和什么都不写是一个效果,都表示使用最新版本

npm warn ERESOLVE overriding peer dependency npm warn While resolving: vite-plugin-inspect@0.8.9 npm warn Found: vite@7.0.0 npm warn node_modules/vite npm warn peer vite@"^5.0.0 || ^6.0.0 || ^7.0.0" from @vitejs/plugin-vue@6.0.0 npm warn node_modules/@vitejs/plugin-vue npm warn dev @vitejs/plugin-vue@"^6.0.0" from the root project npm warn 4 more (vite-hot-client, vite-plugin-vue-devtools, ...) npm warn npm warn Could not resolve dependency: npm warn peer vite@"^3.1.0 || ^4.0.0 || ^5.0.0-0 || ^6.0.1" from vite-plugin-inspect@0.8.9 npm warn node_modules/vite-plugin-vue-devtools/node_modules/vite-plugin-inspect npm warn vite-plugin-inspect@"0.8.9" from vite-plugin-vue-devtools@7.7.7 npm warn node_modules/vite-plugin-vue-devtools npm warn npm warn Conflicting peer dependency: vite@6.3.5 npm warn node_modules/vite npm warn peer vite@"^3.1.0 || ^4.0.0 || ^5.0.0-0 || ^6.0.1" from vite-plugin-inspect@0.8.9 npm warn node_modules/vite-plugin-vue-devtools/node_modules/vite-plugin-inspect npm warn vite-plugin-inspect@"0.8.9" from vite-plugin-vue-devtools@7.7.7 npm warn node_modules/vite-plugin-vue-devtools npm warn EBADENGINE Unsupported engine { npm warn EBADENGINE package: &#39;@vitejs/plugin-vue@6.0.0&#39;, npm warn EBADENGINE required: { node: &#39;^20.19.0 || >=22.12.0&#39; }, npm warn EBADENGINE current: { node: &#39;v18.20.8&#39;, npm: &#39;10.8.2&#39; } npm warn EBADENGINE } npm warn EBADENGINE Unsupported engine { npm warn EBADENGINE package: &#39;vite@7.0.0&#39;, npm warn EBADENGINE required: { node: &#39;^20.19.0 || >=22.12.0&#39; }, npm warn EBADENGINE current: { node: &#39;v18.20.8&#39;, npm: &#39;10.8.2&#39; } npm warn EBADENGINE }解释错误
最新发布
06-30
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值