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就可以解決問題了
也不知道為啥乓旗。
參考文檔
Execution policy exception registration failed with Jenkins on Catalina