-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build error "Header 'Realm/RLMDictionary_Private.h' not found" in module.modulemap #7344
Comments
Hi @nicolas255 I cannot reproduce your issue, have you cleaned your build, derived data and reset package caches? |
Hi @leemaguire, I tested all of that but no luck there… In the meantime, I also tried to upgrade from 10.7.4 to 10.10.0 in an existing project where packages are managed by Xcode (it's an iOS app project) and I have the same two issues. Then I tried to replicate them in a fresh iOS project and same issues again. One thing that could be relevant (?) is that I am trying this on a case sensitive file system. At first I thought it could be that but I don't see any issue with the file names. |
Another update: we managed to try on two additional macs. One of them (Intel) is also on a case sensitive FS and has the same issues. The other one (M1) is not on a case sensitive FS and it builds successfully… Both tries were done with Xcode 12.5.1. I tried to see why that error could occur but I don't have any experience with packages that include anything other than Swift. Edit: third mac (Intel) with case sensitive FS has the same issues. |
I ran into the same issue with SPM and for what its worth the apps realm is being upgraded from |
As soon as I have a little more time I will try to narrow down to the changes that cause this. Or at least to a specific commit… |
So I found the issue, it's in the symlink there: https://github.com/realm/realm-cocoa/blob/267531b38c710f5a7f3352b34eb95ece53773093/include/Realm/RLMDictionary_Private.h which links to a I made a fork with a fix for it https://github.com/nicolas255/realm-cocoa/commit/5893c464fe2ffbcbed15c4bcb6574f999dcc3e15 And then it builds (after cleaning up the derived data)! |
Could someone else look into this ? I'm kind of stuck with that question mark issue… 😟 |
@nicolas255 we'll take a look at your PR today and try to get a release out later tonight. |
Closed via #7360 |
Goals
I am trying to use version of Realm in a SPM package.
Expected Results
Xcode should resolve the dependencies successfully and then the package should build successfully.
Actual Results
The dependency is resolved successfully but then the build fails with two errors :
Steps for others to Reproduce
realm-cocoa
as a dependency.Code Sample
This is the
Package.swift
file :Version of Realm and Tooling
Realm framework version:
From
10.8.0
to10.10.0
.Build succeeds with
10.7.7
or earlier.Xcode version:
12.5.1
iOS/OSX version:
I tried targeting an iPhone running on iOS 14.6 and simulator running iOS 14.3.
Dependency manager + version:
SPM, bundled with Xcode
The text was updated successfully, but these errors were encountered: