Realm-cocoa: 'Realm/RLMArray.h' file not found

Created on 7 Jun 2016  路  5Comments  路  Source: realm/realm-cocoa

Goals

I'd like to install realm-cocoa from Cocapods 1.0.1

Expected Results

I expect to install the pod and be able to compile.

Actual Results

'Realm/RLMArray.h' file not found

<module-includes>:1:9: note: in file included from <module-includes>:1:
#import "Headers/Realm.h"
        ^
/Users/jleach/Library/Developer/Xcode/DerivedData/Rocky-dkcjsjndgvthaeflrhmhoiwhidgu/Build/Products/Debug-iphoneos/Realm/Realm.framework/Headers/Realm.h:21:9: error: 'Realm/RLMArray.h' file not found
#import <Realm/RLMArray.h>
        ^
<unknown>:0: error: could not build Objective-C module 'Realm'
<module-includes>:2:9: note: in file included from <module-includes>:2:
#import "Headers/RealmSwift-Swift.h"

Steps to Reproduce

I just run pod install.

Code Sample

none, install issue.

Version of Realm and Tooling

Realm version: ?

1.0

Xcode version: ?

7.3

iOS/OSX version: ?

n/a

Dependency manager + version: ?

n/a

T-Help

Most helpful comment

I tried those. Turns out I also (or maybe it was the only problem) needed to delete my derived data folder; normal clean was not good enough for me:

This is what worked for me:

  gem cleanup cocoapods
  gem uninstall cocoapods
  gem install cocoapods
  pod install
pod cache clean Realm
pod cache clean RealmSwift
pod deintegrate || rm -rf Pods
pod install --verbose
cd /Users/`whoami`/Library/Developer/Xcode/DerivedData
rm -rf YourProject-*

All 5 comments

Have you tried following the troubleshooting steps listed in the Reinstalling Via Dependency Managers section of our docs?

pod cache clean Realm
pod cache clean RealmSwift
pod deintegrate || rm -rf Pods
pod install --verbose

I tried those. Turns out I also (or maybe it was the only problem) needed to delete my derived data folder; normal clean was not good enough for me:

This is what worked for me:

  gem cleanup cocoapods
  gem uninstall cocoapods
  gem install cocoapods
  pod install
pod cache clean Realm
pod cache clean RealmSwift
pod deintegrate || rm -rf Pods
pod install --verbose
cd /Users/`whoami`/Library/Developer/Xcode/DerivedData
rm -rf YourProject-*

Glad to hear that you fixed this after all. I'll update that troubleshooting section of our docs to recommend clearing derived data.

@jleach you're awesome. I had this same problem and it was driving me insane. Your process worked perfect.

I ran into the same issue, but while manually importing the static framework. Cleaning the derived data seems to have worked.

Was this page helpful?
0 / 5 - 0 ratings