安装完毕Xcode后有报错这样!
/Applications/CLion.app/Contents/bin/cmake/bin/cmake --build /Users/james/Desktop/swoole/cmake-build-debug --target all -- -j 2
[ 3%] Linking C shared library ../lib/libswoole.dylib
[ 50%] Built target static
ld: library not found for -lrt
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [../lib/libswoole.1.9.5.dylib] Error 1
make[1]: *** [CMakeFiles/shared.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 51%] Linking C executable bin/test_server
ld: library not found for -lrt
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [bin/test_server] Error 1
make[1]: *** [CMakeFiles/test_server.dir/all] Error 2
make: *** [all] Error 2