RealmSwiftをCocoaPodsでインストールする場合はバージョン0.37.1以上で
CircleCIでアプリビルドしてるところでコケた。
error: no such module 'Realm.Private'
import Realm.Private
^--------------------------------------------------------------------------------
Realmのドキュメントによると
Install CocoaPods 0.37.1 or later.
CircleCIのpod install
してるとこのログには
$ pod install
Analyzing dependencies
[!] The version of CocoaPods used to generate the lockfile (0.38.2) is higher than the version of the current executable (0.36.4). Incompatibility issues may arise.
0.36.4なのでドキュメントにしたがってcircle.ymlでバージョンを指定してcocoapodsをインストールするように追記。
今回はローカルのCocoaPodsのバージョンに合わせた。
dependencies:
+ pre:
+ - sudo gem install cocoapods --version 0.38.2
+ - pod setup
override:
- pod install:
timeout: 300
$ pod install
Updating local specs repositories
Analyzing dependencies
Downloading dependencies
...
podの警告も出なくなって、
** BUILD SUCCEEDED ** (45676 ms)
ビルドも通った。めでたし。