(/ xxxxx)中的代码签名无效,无法在使用库验证的过程中使用

dai*_*isy 16 validation macos codesign

我正在尝试使用xcode 8构建代理链.当我运行程序时,我得到了:

/usr/local/homebrew/Cellar/proxychains-ng/4.11/lib/libproxychains4.dylib: code signing blocked mmap() of '/usr/local/homebrew/Cellar/proxychains-ng/4.11/lib/libproxychains4.dylib'
Run Code Online (Sandbox Code Playgroud)

当我签署程序和库时:

codesign -s "Mac Developer: xxxx" `which proxychains` 
codesign -s "Mac Developer: xxxx" /usr/local/homebrew/Cellar/proxychains-ng/4.11/lib/libproxychains4.dylib
Run Code Online (Sandbox Code Playgroud)

没有错误,但当我再次运行时,它说

/usr/local/homebrew/Cellar/proxychains-ng/4.11/lib/libproxychains4.dylib: code signature in (/usr/local/homebrew/Cellar/proxychains-ng/4.11/lib/libproxychains4.dylib) not valid for use in process using Library Validation: mapping process is a platform binary, but mapped file is not
Run Code Online (Sandbox Code Playgroud)

我现在应该怎么做?我需要某种权利吗?

小智 1

我认为您需要使用 Xcode 7.x 版本来构建它。brew uninstall proxychains-ng因此,尝试使用(如果使用自制程序)卸载它。然后,您需要选择 Xcode 版本 7,xcode-select并通过重新安装 proxychains 来完成brew install proxychains-ng。我希望这有帮助!