iOS2012. 8. 7. 14:55



1. install XCode

2. install command line tools

  4.3이상에서는 아래 수행

  xcode-select -switch /Applications/Xcode.app 

3. install java developer package 

   https://developer.apple.com/downloads.

4. checkout webkit source

  svn checkout http://svn.webkit.org/repository/webkit/trunk WebKit

  or download http://nightly.webkit.org/files/WebKit-SVN-source.tar.bz2

5. update-webkit script 실행

 - 소스트리를 업데이트한다, 윈도우의 경우 추가적으로 필요한 라이브러리들을 업데이트한다.

6. build-webkit script 실행

$ cd WebkitSrc/Tools/Scripts

$ ./build-webkit

7. run-safari로 빌드된 webkit으로 safari실행

$ ./run-safari


디버깅 방법

xcode에서 디버기하려면 WebKit workspace를 이용한다. Product와 Intermediates위치를 빌드한 webkit과 일치시키려면 File->Workspace Settings -> Advanced button -> Custom -> Relative to Workspace 에 WebKitBuild를 Product와 Intermediates에 입력. Xcode preference의 custom build location을 지정하였다면 할필요 없구.


UIProcess디버깅

- WebKit2 Xcode project를 오픈

- Build Product Path설정

- Scheme 선택

- Edit Scheme -> Run -> Info pane -> Executable popup -> Other -> select /Applications/Safari.app

- Run



WebProcess디버깅

- Xcode에서는 WebKit workspace -> All Source(target WebProcess)를 선택하고, Run

- Commandline에서는 debug-safari 또는 debug-minibrowser script를 실행 --target-webprocess옵션을 붙여서 타겟지정. Safari나 mini browser상에서 실행이 됨.

Posted by 삼스