ios-ntp導入手順

ゲットする
$git clone https://github.com/jbenet/ios-ntp.git

ios-ntpプロジェクトをXCodeでビルドする
ここで、Build SettingsのValid Architecturesにarmv7sを追加する。


スタティックライブラリをリンクして、ユニバーサル化するところでエラーが出る。
framework: creating universal lib /Users/akinori_adachi/Library/Developer/Xcode/DerivedData/ios-ntp-fizitzcmivjjjgetxxzfmshjurtr/Build/Products/Debug-framework/ios-ntp.framework/ios-ntp

lipo: can't open input file: /Users/akinori_adachi/Library/Developer/Xcode/DerivedData/ios-ntp-fizitzcmivjjjgetxxzfmshjurtr/Build/Products/Debug-iphonesimulator/ios-ntp.framework/ios-ntp (No such file or directory)
Command /bin/sh failed with exit code 1

ターゲットをiPhone Simulatorでビルドしたあと、iOS deviceでビルドする。
そしたら、
Library/Developer/Xcode/DerivedData/ios-ntp-fizitzcmivjjjgetxxzfmshjurtr/Build/Products/Debug-iphoneos/

ios-ntp.frameworkがあるので、これをインポートしたいプロジェクトにコピーする。

UDPAsyncSocketが必要なので、ゲットしてインポートしたいプロジェクトにコピーする。