-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
SPM : 'realm/util/assert.hpp' file not found When building project #6312
Comments
I am seeing the same issue.
It builds fine for iOS, tvOS, or macOS apps, but if I add the libs to the watch target, the error occurs. If the error doesn't show, doing a clean build causes the error to show again. |
For me also |
Having the same issue. |
Any progress with it? I am use Watch target and can't use catalyst with installing realm with CocoaPods.
@mlenarto write step by step for reproduce it. |
No progress for the moment but a really ugly solution to create an Watch App and a Catalyst App on the same project with Realm :
I hope it helps you, Still waiting a fix for that annoying bug... |
@RomainPct great idea! |
➤ Lee Maguire commented: Hi, I cannot reproduce this issue with the latest version (Realm 4.3.2, RealmCore 5.23.8) Thanks |
This is still an issue with Realm 4.3.2, RealmCore 5.23.8. We had to change to CocoaPods for Realm for now in order to not block our builds... |
I'm getting this error too. I'll have to switch to Carthage until this is fixed. |
realm/realm-js#1449 The Watch app is irrelevant for me - I am experiencing this without a Watch app on a fresh project. It seems to me there are obvious longstanding issues with the podspec/cocopods with Realm and almost every user in these threads has to find a work around. |
Hi @darkheartfelt , which version of Realm you are using? |
I have also tried to reproduce this issue, here are my results: @RomainPct Using all the information provided by you I created @mlenarto Using all the information provided by you I created Where In all cases I am able to successfully build all targets on all commits. Additionally I created several other test projects to test this but could not reproduce it. @RomainPct @mlenarto @varabeis @anonrig @grEvenX @DaveAlton Would anyone of you be able to provide their repository (or a sample version of it) that shows the above error? Looking forward to hearing from you! |
@darkheartfelt The linked issues are RealmJS issues which seem to have been related to Cocoapods indeed. I understand though you get the same error with Cocoapods? Thank you! |
This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further. |
It's now impossible to build RealmSwift embedded via Swift Package Manager. Xcode produce an error
Goals
Build my app which embed Realm as a Swift Package.
Expected Results
Successful build
Actual Results
Steps to Reproduce
Import Realm-cocoa via SwiftPackageManager in your project and try to build the project. Xcode produce a "lexical or preprocessor issue" because it does not found "assert.hpp".
Version of Realm and Tooling
ProductName: Mac OS X
ProductVersion: 10.15
BuildVersion: 19A582a
/Applications/Xcode.app/Contents/Developer
Xcode 11.1
Build version 11A1027
/usr/local/bin/pod
1.8.4
Realm (3.19.0)
RealmSwift (3.19.0)
/bin/bash
GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin19)
/usr/local/bin/carthage
0.33.0
(not in use here)
/usr/bin/git
git version 2.21.0 (Apple Git-122)
The text was updated successfully, but these errors were encountered: