NSPOSIXErrorDomain Code=1 "Operation not permitted"

note: Execution policy exception registration failed and was skipped: Error Domain=NSPOSIXErrorDomain Code=1 "Operation not permitted"

最近mink build 用
xcodebuild -configuration Release -arch x86_64 -project TTPluginsSource/TT_Calibration_Plguin/TT_Calibration_Plguin.xcodeproj -target TT_Calibration_Plguin DYLIB_CURRENT_VERSION={macos_major_version}" HEADER_SEARCH_PATHS="{lib_search}" FRAMEWORK_SEARCH_PATHS="{target_atlas2_plugin_home}" SKIP_INSTALL=NO install

这个命令老是报以上的错
Mac os版本是10.15.7
Xcode版本是11.3.1
最后的解决方案是,修改UseModernBuildSystem=NO
Xcode -> File -> Project Settings... -> Build System
将New Build System(default)改为Legacy Build System就可以解决问题了

image.png
image.png

也不知道为啥。
参考文档
Execution policy exception registration failed with Jenkins on Catalina

你可能感兴趣的:(NSPOSIXErrorDomain Code=1 "Operation not permitted")