Xcode pod工程重建

1、清空缓存

  • rm -rf ~/Library/Developer/Xcode/DerivedData/
  • rm -rf ~/Library/Caches/CocoaPods/
  • pod deintegrate
  • pod cache clean --all && rm Podfile.lock

2、重新初使化依赖、工程

  • pod install
  • xcodebuild -workspace xxxx.xcworkspace -scheme xxxx-mobile -configuration Release

  xxxx项目名称

posted @ 2026-09-14 09:37  风别鹤  阅读(14)  评论(0)    收藏  举报