【发布时间】: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