Help us understand the problem. What is going on with this article?

Realm/RLMArray.h file not found

More than 3 years have passed since last update.

何が起きたか

CocoaPodsのバージョンを1.0.1にしてプロジェクトをビルドしたら、Realm/RLMArray.h file not foundになった。
スクリーンショット 2016-07-30 20.47.46.png

Error on line 21 of Realm.h Realm/RLMArray.h file not found and Could not build Objective-C module 'Realm'

環境

  • OS X El Capitan 10.11.6
  • Xcode 7.3.1
  • CocoaPods 1.0.1
  • Realm 1.0.1
  • RealmSwift 1.0.1

解決方法

1. コマンドラインからCocoaPodsのcacheをクリアする。

$ pod cache clean Realm
$ pod cache clean RealmSwift

2. XcodeでClean Build Folder...を実行する。

EMpDB.png

3. コマンドラインからpod installする。

$ pod install
Analyzing dependencies
Downloading dependencies
Installing BEMCheckBox (1.2.1)
Installing FlatUIKit (1.6.2)
Installing Nimble (3.0.0)
Installing Quick (0.9.1)
Installing Realm (1.0.1)
Installing RealmSwift (1.0.1)
Generating Pods project
Integrating client project
Sending stats
Pod installation complete!

4. XcodeでBuildする。Build Succeededしました。

スクリーンショット 2016-07-30 21.12.20.png

なぜ起きたか

不明。
CocoaPodのバージョンに起因しているのではと当たりをつけているが、詳細までは突っ込んでいない。

参考

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした