mirror of
https://github.com/socketio/socket.io-client-cpp.git
synced 2026-06-10 20:36:14 +00:00
34 lines
928 B
Markdown
34 lines
928 B
Markdown
## iOS
|
|
|
|
### Option 1: Cocoapods
|
|
|
|
```
|
|
pod 'SocketIO-Client-CPP'
|
|
```
|
|
|
|
### Option 2: Create a static library
|
|
|
|
1. Create a static library
|
|
1. Copy the header files into xcode
|
|
|
|
Use the static libraries generated by the example project [iOS example project](examples/iOS)
|
|
|
|
Create one for
|
|
- release iphoneos
|
|
- release simulator
|
|
- debug iphoneos
|
|
- debug simulator
|
|
|
|
Join the debug libraries and the release libraries with e.g.
|
|
```
|
|
libtool -static -o libUniversalRelease.a Release-iphoneos/libsioclient.a Release-iphonesimulator/libsioclient.a
|
|
libtool -static -o libUniversalDebug.a Debug-iphoneos/libsioclient.a Debug-iphonesimulator/libsioclient.a
|
|
```
|
|
|
|
|
|
### Option 3: Manual integration
|
|
|
|
Use this [shell](https://gist.github.com/melode11/a90114a2abf009ca22ea) to download and build boost completely automattically. It installs boost to `<shell folder>/prefix`.
|
|
|
|
See the [iOS example project](examples/iOS) for how to integrate the rest.
|