1、sudo gem install cocoapods
20 gems installedが表示されるまで待つ
2、pod setup
Setup completedまで待つ
3、プロジェクトのルートフォルダに移動する
ルートってどこだ?
プロジェクトファイルの上のフォルダ?
4、pod init
5、Podfileにpod 'PebbleKit'を追加する
Podfileのどこに追加すればいいの?
最後の行?
6、pod install
pod installed.の後にウォーニングみたいなのが表示された。
一番上のはProfileに追加した'が違うと、後のやつはlink flagに設定しているのを消せと。
[!] Your Podfile has had smart quotes sanitised. To avoid issues in the future, you should not use TextEdit for editing it. If you are not using TextEdit, you should turn off smart quotes in your editor of choice.
[!] The `VibrationTimerForPebble [Debug]` target overrides the `OTHER_LDFLAGS` build setting defined in `Pods/Target Support Files/Pods/Pods.debug.xcconfig'. This can lead to problems with the CocoaPods installation
- Use the `$(inherited)` flag, or
- Remove the build settings from the target.
[!] The `VibrationTimerForPebble [Release]` target overrides the `OTHER_LDFLAGS` build setting defined in `Pods/Target Support Files/Pods/Pods.release.xcconfig'. This can lead to problems with the CocoaPods installation
- Use the `$(inherited)` flag, or
- Remove the build settings from the target.
[!] The `VibrationTimerForPebble [Debug]` target overrides the `OTHER_LDFLAGS` build setting defined in `Pods/Target Support Files/Pods-VibrationTimerForPebble/Pods-VibrationTimerForPebble.debug.xcconfig'. This can lead to problems with the CocoaPods installation
- Use the `$(inherited)` flag, or
- Remove the build settings from the target.
[!] The `VibrationTimerForPebble [Release]` target overrides the `OTHER_LDFLAGS` build setting defined in `Pods/Target Support Files/Pods-VibrationTimerForPebble/Pods-VibrationTimerForPebble.release.xcconfig'. This can lead to problems with the CocoaPods installation
- Use the `$(inherited)` flag, or
- Remove the build settings from the target.
そしてビルドすると
ld: library not found for -lPods
プロジェクトではなくワークスペースで起動すればビルドできた。
posted with sticky on 2015.11.23