-
Notifications
You must be signed in to change notification settings - Fork 17
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
type alias redefinition for Realm_Config #113
Comments
The error went away for a while, and now it's back. Not sure what is causing it. Any clues? |
It seems to be caused by this block of CMake settings, that set the build to be universal x86_64 and arm64:
|
@adamski I see your issue, it's trying to compile a universal binary, and that is something our bridging code that talks to RealmCore is not handling correctly. You should be able to build successfully by setting your target architecture on your machine for now while we look into this. E.g |
Yes it works correctly after removing the universal binary settings. |
@adamski the minimum macOS version we support is 12. |
Just FYI (and forgive me if I'm stating the obvious) this issue also blocks iOS simulator builds, with the same error as above:
Device-only builds are not affected. |
@leemaguire thanks for adding the Just to let you know I'm still getting the above error:
|
@adamski cleaning your build folder should resolve that as the fresh build won't generate a The fix here on my side is to group all of the type definitions by architecture inside of |
Thanks @leemaguire - it seems that both with the flag set and without I'm still getting the error, also after cleaning the build folder. This is the contents of my
|
I can archive successfully with Did you delete your |
Ok thanks @leemaguire it looks like I was setting the definition in the wrong place. Setting it in the cmake command line works, I'm now figuring out where to set it in the CMakeLists.txt so it sticks.. |
@leemaguire do you have any tips on how to add this to a CMakeLists.txt? If I add
If I add it to the cmake command, it works. Ideally I would keep it in the CMakeLists.txt only. |
@adamski add |
SDK: 0.4.0-preview
macOS 13.4
I'm getting the following build error when integrating Realm into an existing C++ CMake project:
The text was updated successfully, but these errors were encountered: