realm-swift: Realm.h not found via cocoapods
Goals
I’ve formatted my macbook and then I’ve made a fresh install of my development environment (latest XCode version, cocoapods 1.0.0). I’ve cloned an old Objective C project and downloaded all its dependencies using cocoapods. When i try to build it, it fails because of a missing Realm header. It’s imported in my project as
#import "Realm.h"
Expected Results
The project builds as usual
Actual Results
Build failing: Realm.h not found
Steps to Reproduce
- Include Realm 0.98.1
- Import as
#import "Realm.h" - Build the project
Realm version: 0.98.1
Xcode version: 7.3
iOS/OSX version: 8.4
Dependency manager + version: cocoapods 1.0.0,
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 15 (6 by maintainers)
@thegreatmichael faced with this issue by myself today 😃 My solution was to remove all Xcode’s Derived Data (or
alt+shift+cmd+Kin project). Glad to hear that you also resolved this issue 😃I also have the same issue, umbrella header not found. It seems like a bug of Cocoapods,
public headerstreat asprivate headers.Update Build success after setting
User Header Search Pathsto empty instead of${PODS_ROOT}thanks for checking in @stel, i am on 1.0.1 /-: My
User Header Search Pathsis$(PODS_ROOT)recursiveand$(PODS_ROOT)/ioniconsrecursive.update: so, i just started at the top of this thread again, I (have my project working fine on another machine, and so I) checked out my project again, did as in https://github.com/realm/realm-cocoa/issues/3735#issuecomment-226522681 and made sure my
User Header Search Pathsis empty, and doggonit, it works!!Hi! I have tried the first solution and the error persists: I’ll list what I’ve done to make sure that I haven’t missed anything:
First attempt
Result: I’m getting
Realm.h not foundI’ll try the second approach asap.