Debug WebKit with Xcode on iOS simulator

Dec 15, 2018 • 预计阅读时间 1 分钟

Debug WebKit with Xcode on iOS simulator

Build WebKit

git clone git://git.webkit.org/WebKit.git WebKit
cd WebKit
sudo Tools/Scripts/configure-xcode-for-ios-development
Tools/Scripts/build-webkit --debug --ios-simulator

It will take 1 hour.

Configure WebKit.xcworkspace

  • open WebKit.xcworkspace with Xcode
  • File - Workspace Settings
  • Advanced …
  • Custom - Relative to Workspace
  • Products: WebKitBuild
  • Intermediates: WebKitBuild
  • Done

Configure MobileMiniBrowser

  • open MobileMiniBrowser project in WebKit.xcworkspace
  • change TARGETS (both MobileMiniBrowser and MobileMiniBrowser.framework) Build Settings - Base SDK: iOS
  • change Architectures: Standard architectures
  • (optional) Edit Info.plist of MobileMiniBrowser, add NSAppTransportSecurity settings for access http site.

Configure Scheme of AllSource

  • All Source - Edit Scheme …
  • Run - Executable: MobileMiniBrower.app

All done.

版权声明:如果转发请带上本文链接和注明来源。

lvv.me

iOS/macOS Developer

Calc NSAttributedString size correctly with NSLayoutManager