It is very difficult for a C/C ++ cainiao to study some excellent frameworks, but if they can be imported into xcode projects, compilation and debugging on xode will make it easier to learn this matter. xcode is indeed a powerful tool for developers. Recently, we have been engaged in WebKit, V8, and nodejs. As a result, we have found a way to turn these three frameworks into xcode projects, which is summarized as follows:
WebKit
WebKit has already said that the source code contains the xcodeproj file, which can be opened directly with xcode, which is very convenient.
V8
- SVN checkout http://v8.googlecode.com/svn/trunk/ V8
- /V8 Root/Make Dependencies
- /V8 Root/Build/gyp_v8
- Open/V8 Root/Build/all. xcodeproj
- Select scheme as shell (this is a sample to verify whether the compilation is OK)
- Run
Nodejs
- Git clone https://github.com/joyent/node.git
- Export cc =/applications/xcode. APP/contents/developer/toolchains/xcodedefault. xctoolchain/usr/bin/clang
Export cxx =/applications/xcode. APP/contents/developer/toolchains/xcodedefault. xctoolchain/usr/bin/clang ++
- ./Configure
- /Nodejs Root/Tools/gyp_node
- Open/Nodejs root/Node. xcodeproj
- Select scheme as node
- Edit Scheme
- Add arguments:
An executable nodejs code path
- Run
A few very simple steps can make the research work easy and enjoy it.