wipe ios build artifcats in react原生清洁项目退出65

bwleehnv  于 2023-02-16  发布在  React
关注(0)|答案(1)|浏览(267)

当运行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.
u4vypkhs

u4vypkhs1#

在我的情况下,大多数代码65是因为

  • <your_app>/ios/build仍然存在。
    • 解决方案**
  1. rm -rf iod/build并再次运行
    1.或者,您也可以复制并粘贴错误消息上方的xattr -w com.apple.xcode.CreatedByBuildSystem true <your_app>/ios/build命令

相关问题