tech
- networking - Alamofire
- database - Realm
- html parse - HTMLDocument
tech 1 setup alamofire
embedded framework
- add alamofire as a
submodule
- open
terminal
cd
to top-level project dirgit submodule add https://github.com/Alamofire/Alamofire.git
- open
- open
Alamofire
folder dragAlamofire.xcodeproj
intofile navigator
- ensure
Deployment Target
ofAlamofire.framework
matches application target - open
Build phases
- select
Target Dependencies
group - add
Alamofire.framework
- select
- click
+
- select
New Copy File Phases
- rename this new phases to
Copy Frameworks
- set the
Destination
toFrameworks
- add
Alamofire.framework
- select
tech 2 setup Realm
- download the latest release
- drag
ios/Realm.framework
- into
file navigator
- checking
Copy items if needs
- into
- in
Build Phased
tab underLink Binary with Libraries
- add
libc++.dylib
- add
- drag
Swift/RLMSupport.swift
- into
file navigator
- checking
Copy items if needs
- into
tech 3 setup HTMLDocument
- add class files and the (option) category/extension to your project
- in
Build Phased
tab underLink Binary with Libraries
- add
libxml2.dylib
- add
- in
Build Settings
underHeader Search Pathes
- add
$SDKROOT/usr/include/libxml2
- add
- in
Build Settings
underother linker flags
- add
-lxml2
- add
- add
Bridging-Header.h
- in
Build Settings
underObjective-C Bridging Header
- enter
Bridging-Header.h
- enter