Questions tagged [mac-catalyst]

An environment and build target for compiling iOS apps to macOS.

Mac Catalyst (previously referred to as and, unofficially, Marzipan) is an environment and build target used to compile an iPadOS app to a macOS app. This is different from running iOS apps on macs with the M1 chip (Apple Silicon macs), which is a more recent development and the iOS apps can run directly on M1 macs without porting.

As of November 2019, it can only port iPad apps. It automates the addition of desktop and windowing features needed by the desktop version of macOS. For example, tab bars on the iPad are automatically converted to toolbar segments on the Mac.

Catalyst is officially supported by Xcode 11 and macOS 10.15 and higher. With Xcode 12, it can port iPhone apps to MacOS as well.

Apple documentation is available here.


Getting Started with Catalyst

Theoretically things should be as simple as checking the "Mac" target in your iPad-compatible app target. However, some extra work usually needs to be done in order to successfully port an app.

One good way to start differentiating your iPad code-base is through the use of a Catalyst compile-time check:

#if targetEnvironment(macCatalyst)
  // Code for catalyst
#endif
538 questions
0
votes
1 answer

UIKit/UIKit.h not found for clang building Mac Catalyst

I'm building a static iOS/macOS library for Mac Catalyst, using the following flags: clang \ --target=x86_64-apple-ios13-macabi \ -isysroot…
tball
  • 1,984
  • 11
  • 21
0
votes
0 answers

Problem with Firebase in SwiftUI macos app. [Running InstanceID on a simulator doesn't have APNS. Use prod profile by default.]

I wanted to run my swiftui app on macos, unfortunately i can still see error That Running InstanceID on a simulator doesn't have APNS. Use prod profile by default. I used the code from firebase messaging docs to initialize firebase messaging…
0
votes
1 answer

Mac Catalyst textview first responder

I've strange interface behavior when I try to implement my notes app works on Mac with Catalyst. I made textview textView.becomeFirstResponder() But after I creating new notes Catalyst in some way moves focus to back button. And after creating…
alexsmith
  • 199
  • 2
  • 10
0
votes
1 answer

How to replacing bundle identifier generated by Xcode, How to test iPad app to mac catalyst on another mac, How to make live

I successfully build, run and convert iPad app to mac catalyst. I have problems in below questions to make live, testing mac catalyst app(iPad to mac catalyst app). does anyone have idea? please let me know if miss something. (1) How to replacing…
Ankur Patel
  • 477
  • 5
  • 19
0
votes
1 answer

Mac Catalyst resize window for screenshots

Mac Catalyst AppStore screenshots needs to be specific sizes and 16:10 aspect ratio. How can I easily resize the window to one of these sizes? I tried an Apple Script, but it says it can't set the bounds, even though the same script works for apps…
Johan Nordberg
  • 3,621
  • 4
  • 33
  • 58
0
votes
1 answer

Save/create folder that it to be treated as a file with FileManager

I have a iOS/CatalystMacOS-app that can create, save, open custom text-files (with my own file extension). This works fine. However, now I need more than text. I want to save optional files in this file as well. Apparently macOS (and iOS?) can treat…
Sunkas
  • 9,542
  • 6
  • 62
  • 102
0
votes
1 answer

Realm writes make NSColorPanel lag

In my Catalyst app, I'm spawning an NSColorPanel with a callback using code from the Mac Helpers repository. @interface IPDFMacColorPanel : NSObject + (void)showColorPanelWithColorChangeHandler:(void(^)(UIColor *color))colorChangeHandler; ///…
user4992124
  • 1,574
  • 1
  • 17
  • 35
0
votes
1 answer

Firebase permission denied for Catalyst app

The iOS app works perfectly and can access the firebase database, but the Catalyst app gives the following error: 6.11.0 - [Firebase/Database][I-RDB038012] Listener at /my_database/path failed: permission_denied I have created an app in firebase…
RawMean
  • 8,374
  • 6
  • 55
  • 82
0
votes
0 answers

macCatalyst: How to close the camera require For Mac version App?

I am very new to Mac development, and My catalyst app was reject for 4 times now. The reason is that my App in iOS require camera to take photo, but it's useless on Mac. However, I try to close the camera feature in …
Comex
  • 1
0
votes
1 answer

Detect key press without modifier

I'd like to capture a keypress in my Catalyst app. UIKeyCommand(input: "", modifierFlags: nil, action: #selector(singleShift)) Unfortunately modifierFlags can't be nil and NSEvent isn't supported on Catalyst. Is there a way to detect single press…
user11145365
  • 184
  • 9
0
votes
1 answer

Using Document Browser View Controller with Mac Catalyst

I have just started experimenting with Catalyst. My app is a document browser based app. The stock MacOS Finder dialog is indeed launched when the appropriate button is clicked. The main app window completely disappears when the Finder dialog…
0
votes
1 answer

iOS app to MacOS error: 'transactionReceipt' is unavailable: not available on macCatalyst

I have an iOS/iPadOS app already published and selling in the App Store. Now with the "automatic" port of Xcode 11.1 to MacOS 10.15 Catalina or higher, I just marked the "Mac" checkbox and tried to run the app on my Mac, but I got this compile…
Heitor
  • 683
  • 2
  • 12
  • 26
0
votes
1 answer

Mac Catalyst - Dragging to an inactive window

An iPad app that accepts UIImage objects as dragging items has been built for macOS via Catalyst in Xcode 11b6. When I drag images from Finder or Photos I am finding that my app must first be placed in the foreground to accept the drag. This…
Warren Burton
  • 17,451
  • 3
  • 53
  • 73
-1
votes
2 answers

UIMenu/UIAction not displaying image

I am having issues with UIContextMenus in iOS 16 and Catalyst. The following code displays the menus, but not the images. I'm confused. extension CapoButton: UIContextMenuInteractionDelegate { func contextMenuInteraction(_ interaction:…
polymerchm
  • 188
  • 1
  • 7
-1
votes
1 answer

Hiding dock icon when application is hidden

How can I hide the dock icon of my MacCatalyst app, developed using .net 7 MAUI, when the app is hidden by either minimizing it or using the "CMD+H" command? I have tried changing the info.plist by setting the LSUIElement key entry to String 1 as…
1 2 3
35
36