EAS iOS 构建 Fastlane 时无法读取未定义的属性(读取“绑定”)”错误

问题描述 投票:0回答:1

我遇到了一个无法解决的问题。我正在使用 Expo,即使在使用

--no-dev --minify
运行时,一切都在本地运行得很好。然而,当我尝试使用 EAS (
eas build --platform ios
) 构建 iOS 时,我在 Fastlane Expo 阶段,特别是在捆绑阶段,始终收到此错误:

❌ error: Cannot read properties of undefined (reading 'bind') ▸ ** ARCHIVE FAILED ** ▸ The following build commands failed: ▸ PhaseScriptExecution Bundle\ React\ Native\ code\ and\ images /Users/expo/Library/Developer/Xcode/DerivedData/343Football-ctjmsizzoghufiftziocteygetsx/Build/Intermediates.noindex/ArchiveIntermediates/343Football/IntermediateBuildFilesPath/343Football.build/Release-iphoneos/343Football.build/Script-00DD1BFF1BD5951E006B06BC.sh (in target '343Football' from project '343Football') ▸ (1 failure)

在本地,我在代码库中搜索了 .bind() 的任何用法,但只在 node_modules 中找到了它,所以我不确定错误来自哪里。我尝试过清除缓存(

expo start -c
eas build --clear-cache
),但问题仅在 EAS 构建期间仍然存在。

有人遇到过类似的问题或对如何缩小此错误的来源有任何建议吗?鉴于我无法在本地重现错误,我是否可以采取其他步骤来调试此问题?

expo fastlane
1个回答
0
投票

我最终运行了

npx expo-doctor@latest
,这揭示了一些与地铁分辨率和覆盖相关的问题。我修复了它们并且能够构建而不再出现任何错误

© www.soinside.com 2019 - 2024. All rights reserved.