我在 Mac 上开发,并尝试通过 Google 或 Facebook 提供商进行签名。我打开浏览器来执行此操作并打开一个 http 侦听器来侦听结果。但它在浏览器打开后立即崩溃并出现异常“boost::wrapexcept:bind: Operation not allowed”
如果我在由 Cmake 生成后构建 Xcode 项目,一切运行正常,但如果我只使用 Xcode,则会崩溃。我已经安装了 cpprestsdk。
_listener = new http_listener(U("http://localhost:8889"));
_listener->support([this](http::http_request request) {
//some other code
});
_listener->open().wait();//it crashes here
请帮忙