marcuswestin / WebViewJavascriptBridge

An iOS/OSX bridge for sending messages between Obj-C and JavaScript in UIWebViews/WebViews
http://marcuswest.in
MIT License
14.27k stars 2.98k forks source link

mac #407

Open h242799999 opened 4 years ago

h242799999 commented 4 years ago

yld Error Message: Symbol not found: _objc_opt_class Referenced from: /Users/USER/Desktop/SSCodingOsx.app/Contents/MacOS/../Frameworks/WebViewJavascriptBridge.framework/Versions/A/WebViewJavascriptBridge (which was built for Mac OS X 10.15) Expected xcode11

housenkui commented 4 years ago

我已经重构了这个库. 如果您遇到麻烦,可以尝试使用它. 下载地址: https://github.com/housenkui/JavascriptBridge 它更轻,使用更简单. 只需要一个参数就能让Xcode输出js的console.log. 10分钟之内应该可以完成接入.

KarlZeo commented 3 years ago

yld Error Message: Symbol not found: _objc_opt_class Referenced from: /Users/USER/Desktop/SSCodingOsx.app/Contents/MacOS/../Frameworks/WebViewJavascriptBridge.framework/Versions/A/WebViewJavascriptBridge (which was built for Mac OS X 10.15) Expected xcode11

You can try import WebViewJavascriptBridge without cocoapods. I try to use Manual installation and fix this problem.