【问题标题】:wipe ios build artifcats in react native clean project exit 65在 React Native Clean Project Exit 65 中擦除 iOS 构建工件
【发布时间】:2023-02-15 13:10:25
【问题描述】:

当运行 xcodebuild clean

或者

使用 react-native-clean-project ,其中包括一个命令以及 ios clean 命令...

  ```'rm -rf ios/build && (killall Xcode || true) && xcrun -k && cd ios && xcodebuild -alltargets clean && cd .. && rm -rf "$(getconf DARWIN_USER_CACHE_DIR)/org.llvm.clang/ModuleCache" && rm -rf "$(getconf DARWIN_USER_CACHE_DIR)/org.llvm.clang.$(whoami)/ModuleCache" && rm -fr ~/Library/Developer/Xcode/DerivedData/ && rm -fr ~/Library/Caches/com.apple.dt.Xcode/',```

ios 构建错误,azure devops 中的退出代码为 65,或者我无法删除构建文件夹,因为它不是由构建系统创建的?这是权限问题吗?我使用上面的包来清理或只是常规的 xcodebuild 清理。

    IDEPackageSupportUseBuiltinSCM = YES

error: Could not delete `/Users/me/repos/Mobile-App/ios/build` because it was not created by the build system.
    note: To mark this directory as deletable by the build system, run `xattr -w com.apple.xcode.CreatedByBuildSystem true /Users/me/repos/Mobile-App/ios/build` when it is created.```


Looking for how to prevent this failure to clean the iOS build with react native.





【问题讨论】:

    标签: ios react-native cocoapods


    【解决方案1】:

    就我而言,主要是代码 65来是因为

    • <your_app>/ios/build 仍然存在。

    解决方案

    1. rm -rf iod/build 再次运行
    2. 或者您可以复制并粘贴xattr -w com.apple.xcode.CreatedByBuildSystem true <your_app>/ios/build命令到错误消息上方

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-09-09
      • 2019-03-02
      • 2021-02-23
      • 2016-10-27
      • 2019-06-06
      • 2019-08-16
      • 2016-05-19
      • 1970-01-01
      相关资源
      最近更新 更多