-
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
Unable to compile Realm when targetting watchOS #7623
Comments
Hi @mwoollard. I still cannot reproduce your issue even with the sample project. Are you using macOS Monterey? |
Yes, using Monterey, am also seeing this both on my dev laptop (M1) within Xcode and CI scripted builds (Intel). |
Additional, FWIW, if I change the compile time condition @ line 171 to
Code compiles |
Thanks for the suggestion, I created a PR for it on core. You can keep track of the issue here and on the PR realm/realm-core#5188. |
This has been fixed on core and will be available shortly. |
This is still happening using SPM and |
@streamblayiOS Are you still getting the same error? |
yes |
I think this is now only issue when targeting M1 simulator. I created new issue in realm-core here. Could you confirm you are using M1 Mac? |
I'm able to build on our Intel CI system with the latest release where I wasn't before, but still can't on my M1 laptop, so must be something more subtle. |
I have a core PR for this, where I'm trying to cover all issues where thread_local is not supported, this is the branch, if you want to test out. @ding-stephen |
@dianaafanador3 Facing the same issue, I can confirm that your branch fixed the issue for me (on WatchOS). Any plans to merge these changes? |
How frequently does the bug occur?
All the time
Description
Am using Realm integrated in a pure SPM library project that targets iOS, tvOS macOS and watchOS. With latest update of packages can no longer build for watchOS. The error is:
Stacktrace & log output
No response
Can you reproduce the bug?
Yes, always
Reproduction Steps
Sample project is available here
clone project
from project root directory
$ open Package.swift
In xcode select watchOS as run target
Build
Version
10.21.1
What SDK flavour are you using?
Local Database only
Are you using encryption?
Yes, using encryption
Platform OS and version(s)
watchOS 7.4. up
Build environment
Xcode version: 13.2.1
Dependency manager and version: Xcode SPM (swift 5.5.2)
The text was updated successfully, but these errors were encountered: