Support catalyst/UIKit for Mac
See original GitHub issueGoals
Compile and use Realm for iOS in a Project Catalyst (iPad app for macOS) project.
➡️https://github.com/realm/realm-cocoa/issues/6163
Expected Results
A successful build.
Actual Results
ld: in /Users/xxx/Documents/xxx/node_modules/realm/vendor/realm-ios/librealm-ios.a(placeholder.o), building for Mac Catalyst, but linking in object file built for iOS Simulator, file '/Users/xxx/Documents/xxx/node_modules/realm/vendor/realm-ios/librealm-ios.a' for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Steps to Reproduce
Create a RN project with realm
and select the Mac target :
Version of Realm and Tooling
- Realm JS SDK Version:
4.0.0-alpha.2
- Node or React Native:
0.61.5
- Client OS & Version:
Xcode 11.2.1
- Which debugger for React Native: ?/None
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Mac Catalyst | Apple Developer Documentation
Improve your iPadOS app with Mac Catalyst by supporting native controls, multiple windows, sharing, printing, menus and keyboard shortcuts.
Read more >Mac Catalyst (UIKit for Mac) - Elements Docs
Mac Catalyst is not a separate SDK or project type on its own, rather, it is an option on iOS project that can...
Read more >Mac Catalyst: Interfacing Between UIKit and AppKit without ...
A UINSWindow instance conveniently inherits from NSWindow , so it supports all the functionality that a standard AppKit window supports. This ...
Read more >Mac Catalyst | Build macOS Apps Using UIKit | iOS Tech Talk
Build fully functional Mac apps using your existing UIKit knowledge. With Xcode 11 and later, you can create a Mac version of your...
Read more >Project Catalyst Support (aka UIKit on macOS) #8877 - GitHub
Project Catalyst Support (aka UIKit on macOS) #8877. Open. 1 of 2 tasks. chrisballinger opened this issue on Jun 5, 2019 · 26...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
For Catalyst, I changed the Podspec:
s.ios.vendored_libraries = ‘vendor/realm-ios/librealm-maccatalyst.a’, ‘vendor/realm-ios/librealm-parser-maccatalyst.a’
CocoaPods does not support prebuilt libraries with catalyst yet. https://github.com/CocoaPods/CocoaPods/pull/9334 is a PR which will add the required functionality.