- project名のディレクトを作成
- そのディレクトリで
git init
git submodule add https://github.com/PerfectlySoft/Perfect.git Perfect
- Xcodeを起動し、File -> New -> Workspace でworkspaceを追加
- Perfect/PerfectLib/PerfectLib.xcodeproj と Perfect/PerfectServer/PerfectServer.xcodeproj をworkspaceに追加
- File -> New -> Project -> OS X -> Framework & Library -> Cocoa Framework
- Target設定
- Linked Frameworks and Libraries -> add -> PerfectLib.framework from ‘PerfectLibOSX’
- Build Settings
- Basic を All に変更
- Deployment
- Deployment Location -> Yes
- Installation Build Products Location -> $(CONFIGURATION_BUILD_DIR)
- Installation Directory -> /PerfectLibraries
- Skip Install -> No
- Packaging
- Defines Module : NO
- File -> New -> File -> Swift File
- 先頭に
import PerfectLib
PerfectServerModuleInit()
を実装- Edit Scheme -> Run -> Info -> Executable -> PerfectServer HTTP.app