LoginSignup
4
1

More than 5 years have passed since last update.

error: no such module 'Realm.Private' と言われてビルドできない時

Posted at

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)

ビルドも通った。めでたし。

4
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
1