React Native- Xcode -派生数据-Pod-ExpoModule

k5hmc34c  于 2022-12-24  发布在  React
关注(0)|答案(1)|浏览(138)

xcode或xcode pod究竟是如何缓存的?
我已经做了一些修改来更新本地的react,或者每次我做expo的修改,或者某些包。我的项目不是expo项目,但是我正在使用expo SDK。
Expo 44-45,React原生67.3尝试更新到68.5
我的pod install命令安装了所有错误的依赖项。
我得到CompileC --〉DerivedData或iPhone部署目标错误或模拟器缓存问题。
我删除了衍生数据和所有内容,但pod仍然安装了所有错误的pod。
我知道错误的原因,但是我不确定为什么如果我运行npm i和pod install,它会安装所有以前缓存的pod。
现在我得到:

Error: Command failed: xcrun simctl list --json devices
xcrun: error: unable to find utility "simctl", not a developer tool or in PATH

    at checkExecSyncError (node:child_process:885:11)
    at Object.execFileSync (node:child_process:921:15)
    at runOnSimulator (/Users/me/repos/MobileApp/node_modules/@react-native-community/cli-platform-ios/build/commands/runIOS/index.js:167:54)
    at Object.runIOS [as func] (/Users/me/repos/MobileApp/node_modules/@react-native-community/cli-platform-ios/build/commands/runIOS/index.js:121:12)
    at Command.handleAction (/Users/me/repos/MobileApp/node_modules/@react-native-community/cli/build/index.js:192:23)
    at Command.listener (/Users/me/repos/MobileApp/node_modules/commander/index.js:315:8)
    at Command.emit (node:events:513:28)
    at Command.parseArgs (/Users/me/repos/MobileApp/node_modules/commander/index.js:651:12)
    at Command.parse (/Users/me/repos/MobileApp/node_modules/commander/index.js:474:21)```
guz6ccqo

guz6ccqo1#

1.删除iOS文件夹中的pod文件夹podfile.lock文件
1.运行此命令pod install

相关问题