EAS构建遇RNGestureHandler.podspec报错,咨询Expo兼容新版本时间
Expo EAS 本地构建失败及兼容问题
最近执行yarn eas build构建Expo项目时失败,报错信息如下:
[INSTALL_PODS] Using Expo modules [INSTALL_PODS] [Expo] Enabling modular headers for pod ExpoModulesCore ... [INSTALL_PODS] [!] Invalid `Podfile` file: [INSTALL_PODS] [!] Invalid `RNGestureHandler.podspec` file: undefined method `exists?' for File:Class. ... [INSTALL_PODS] # ------------------------------------------- [INSTALL_PODS] # [INSTALL_PODS] > isUserApp = File.exists?(File.join(__dir__, "..", "..", "node_modules", "react-native", "package.json")) [INSTALL_PODS] # if isUserApp [INSTALL_PODS] # -------------------------------------------
我很少做本地构建(Expo远程服务器构建正常),过去几周可能有多种因素触发该问题,包括从Intel MBP迁移到M2 MBA,但想知道是否有已知的常见原因。错误提示podfile使用了未定义的方法,我找到的解决方案都太复杂,超出我的认知范围。我使用Expo/EAS的经验仅局限于执行brew install cocoapods fastlane,希望避免调整特殊gem安装这类临时修复。
最初的问题
这是否只是podfile中使用废弃方法的bug,后续会被修复?
更新内容
目前看来答案是“是”,将受影响的包更新到新版本后可解决问题,但这些版本未获得Expo官方兼容。更新后执行构建会收到警告:
[RUN_EXPO_DOCTOR] [16:17:37] Some dependencies are incompatible with the installed expo package version: [RUN_EXPO_DOCTOR] [16:17:37] - react-native-gesture-handler - expected version: ~2.8.0 - actual version installed: 2.9.0 [RUN_EXPO_DOCTOR] [16:17:37] - react-native-reanimated - expected version: ~2.12.0 - actual version installed: 2.14.4
当前问题
Expo何时会正式支持可成功构建所需的包版本?
内容的提问来源于stack exchange,提问作者orome
相关产品推荐
相关产品推荐

