question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support catalyst/UIKit for Mac

See original GitHub issue

Goals

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 :

67369890-16de6680-f57a-11e9-9c6e-a0ac2deac569

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:closed
  • Created 4 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
marcosrdzcommented, Aug 27, 2020

For Catalyst, I changed the Podspec:

s.ios.vendored_libraries = ‘vendor/realm-ios/librealm-maccatalyst.a’, ‘vendor/realm-ios/librealm-parser-maccatalyst.a’

1reaction
tgoynecommented, Dec 3, 2019

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found