安装Xcode14.3.1后,Expo SDK52项目执行npm run ios遇pod install报错
问题:Expo SDK 52 结合 react-native-pytorch-core 运行
npm run ios 时 pod install 失败 我从苹果开发者网站安装了Xcode 14.3.1,正尝试创建使用Expo SDK 52和react-native-pytorch-core的应用。运行npm run ios时出现如下错误:
✔ Finished prebuild ⚠️ Something went wrong running `pod install` in the `ios` directory. Command `pod install` failed. └─ Cause: Invalid `Podfile` file: Please upgrade XCode. # from /Users/arushgarg/Downloads/mobile-ml/MobileML/ios/Podfile:39 # ------------------------------------------- # > use_react_native!( # :path => config[:reactNativePath], # ------------------------------------------- pod install --repo-update --ansi exited with non-zero code: 1
补充环境信息:
- Xcode 14.3.1 兼容至iOS 16.4
- Expo 52 要求iOS 15.1及以上
- Podfile 配置:
platform :ios, podfile_properties['ios.deploymentTarget'] || '15.1'
内容的提问来源于stack exchange,提问作者Arush
相关产品推荐
相关产品推荐

