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
Add support for building Realm & RealmSwift for tvOS #2506
Conversation
@@ -28,13 +28,16 @@ SWIFT_WHOLE_MODULE_OPTIMIZATION = YES; | |||
MACOSX_DEPLOYMENT_TARGET = 10.9; | |||
IPHONEOS_DEPLOYMENT_TARGET = 8.0; | |||
WATCHOS_DEPLOYMENT_TARGET = 2.0; | |||
TVOS_DEPLOYMENT_TARGET = 9.0; | |||
CODE_SIGN_IDENTITY[sdk=iphone*] = iPhone Developer; | |||
TARGETED_DEVICE_FAMILY = 1,2,4; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe you want to add 3
to TARGETED_DEVICE_FAMILY
as well. I've needed to in order to get everything to behave with other frameworks.
We also will need to add tvOS tests, I suppose... (unlike extensions / watchOS, it appears to allow test targets) |
2172b9e
to
80a8028
Compare
Just to note that in the new Beta 3 we couldn't get this build to work as a Dynamic Library. |
Thanks for the tip, @kishikawakatsumi could you update this PR to support Beta 3 when you get a chance? |
I'm getting the same issue as @mightyleader by using the beta 3, but switching to static libraries didn't solve the issue for me. Any news about beta 3 support? |
1. `Expression::get_table` is now `const`. 2. `File::AccessError` now carries the path with it. Update how we call its constructor, and provide an overload of `RLMMakeError` that exposes the path as `NSFilePathErrorKey`.
6e5807c
to
878b157
Compare
I've updated this PR to support Xcode Beta 3. Thank you for being patient.
|
Now Realm and RealmSwift framework for tvOS can be installed with CocoaPods.
|
Hey, We don't use cocoa pods so have to build manually. FYI |
@kishikawakatsumi this needs rebasing, would you have time to take care of that? |
I've just updated #2721 to use GM build of core/framework, change default directory to Library/Caches, encryption disabled, and inter-process notification is disabled. You can use pre-release version of Realm & RealmSwift for tvOS, like following:
|
Hey, Rob
|
@mightyleader We don't have the plan to provide binary release of this version of Realm, sorry. You can build from source. Checkout |
@kishikawakatsumi What am i missing here?
|
@pranavss11 You should also specify
|
Thanks! Do you know if there is a timeline for this to get merged into the main branch? i currently have a pod spec for my private framework and I want to use it for a tvos app as well. Unfortunately, I can only specify dependencies with the name and the version and not the branch in the pod spec file which blocks me from building the app :(
|
tvOS support is being continued in #2721. We need a new release of Realm's core before we can merge that PR into |
Note to Realm users: You may use this branch to begin preliminary tvOS development, but these builds are not suitable for production use. Expect this branch to be rebased at any time, and features could be added/removed at any point in time.
Depends upon realm/realm-core#1147.
Presumably closes #2504.