Mac Catalyst

RSS for tag

Start building a native Mac app from your current iPad app using Mac Catalyst.

Mac Catalyst Documentation

Posts under Mac Catalyst tag

175 results found
Sort by:
Post marked as solved
46 Views

MacCatalyst App Sandbox Not Enabled

I can't figure out how to get past this error message when I try uploading my Mac Catalyst app using Xcode Organiser. App sandbox not enabled. The following executables must include the "com.apple.security.app-sandbox" entitlement with a Boolean value of true in the entitlements property list I have the .entitlements file correctly configured with the boolean, I have the entitlements path correctly setup in Build Settings, when I start the upload process the boolean appears there with the correct value: Even when I try the command codesign -d --entitlements :- I get back the correct value. This started appearing when I added a Share Extension to the existing Mac Catalyst app (the app is already in the Mac App Store). I did the same steps and verifications and still got the same error, so I decided to go a step back and remove the Share Extension and try to get it working again. From here I keep getting the same error over and over. I have tried regenerating all provisioning profiles manually, using automatic code signing... Please help! Any ideas will be appreciated.
Asked
by Aramusss.
Last updated
.
Post not yet marked as solved
42 Views

Mac Catalyst target does not build on M1 with this error: Could not read serialized diagnostics file: error("Invalid diagnostics signature")

I have a project with a Mac Catalyst target that I can not build on my m1 mac (it works fine on my older intel mac). This is the error message: Could not read serialized diagnostics file: error("Invalid diagnostics signature") (in target 'LifeViewerMac' from project 'NoRegrets') Command CompileSwift failed with a nonzero exit code Here's the xcode screenshot:
Asked Last updated
.
Post not yet marked as solved
159 Views

WKWebview paste with keyboard paste text twice.

In my WKWebview, if I right click (macCatalyst) or long press (ios) paste, it only paste text once. But if I Cmd-V to paste, it will paste text twice with a space between the 2 copied text. This is my log (canPerform action always return true): -canPerformAction() action : paste: -canPerformAction() action : paste: -canPerformAction() action : paste: -canPerformAction() action : paste: -canPerformAction() action : newWindowForTab: -2021-12-17 09:50:17.101763-0500 myApp[18815:1434268] *** Assertion failure in -[UINSResponderProxy _initWithWrappedResponder:orMenuProxy:forAction:sender:], UINSResponderProxy.m:250 -[UINSResponderProxy _initWithWrappedResponder:orMenuProxy:forAction:sender:]: UINSResponderProxy is improperly wrapping a responder that does not respond to the action. -canPerformAction() action : paste: -canPerformAction() action : paste: -canPerformAction() action : paste:
Asked
by ShaddamIV.
Last updated
.
Post not yet marked as solved
691 Views

UIPrinterPickerController, UIPrintInteractionController, UIPrinter do not work on macOS Catalyst

On iOS emulator :I can select a printer from the UIPrinterPickerController dialog and retrieve the printer I can connect to that printer with UIPrinter.contactPrinter I can send multiple jobs to that printer silently (no dialog) with UIPrintInteractionController Same code or any similar code on macOS Catalyst :Absolutely nothing is working. I see nothing, no dialog, no errors in the log.
Asked Last updated
.
Post not yet marked as solved
53 Views

Mac Catalyst WKWebview cannot click twice on http dropdown on macOS.

If we click on a simple html dropdown list on a WKWebview and choose an item in the list, after that we will never be able to click it ever again on that same dropdown (it will never open again), unless we click elsewhere on the webpage (removing the focus that was on the dropdown). That only happens on Mac, on iOS it works fine. This is another Mac Catalyst problem on Mac.
Asked
by ShaddamIV.
Last updated
.
Post not yet marked as solved
64 Views

Removing iOS style Keychain items on macOS which were created by Mac App (Mac App is enabled with macCatalyst)

We have an iOS app and toggled xcode setting and enabled Mac support (macCatalyst), so the same iOS App is running successfully on macOS environment. My iOS App uses keychain Local Items creation and the same followed  when we run macCatalyst. Now on simply deleting the macCatalyst app from /Applications in macOS computer, it is leaving the keychain items created in Local Items keychain. Our objective is to remove those keychain items using an external uninstaller (.sh or .app) after the app has been deleted from the computer. Any inputs on the approach would be highly appreciated. The iOS app currently have the below capabilities enabled. appGroups Sandbox Data protection Keychain sharing
Asked
by Sital.
Last updated
.
Post not yet marked as solved
1k Views

How are IAP receipts supposed to work when an iOS app runs on an Arm Mac?

Does anyone know how IAPs and receipt validation is supposed to work when an iOS app is run on a new Arm Mac? I have an iOS app which I'm pleased to discover runs well on my new Arm Mac mini. The app has non-consumable IAPs. At startup it parses the app receipt. A receipt is present, but my existing receipt validation code decides that it has the wrong hash. (This is with the app installed from the App Store, not a local build.) I'm aware that receipt validation is different for native Mac apps, including catalyst apps (e.g. getting a device GUID from the ethernet MAC addresses etc.) But what is supposed to happen in the case of a regular iOS app running on macOS? Is this documented anywhere? Has anyone got IAPs working, with local receipt validation?
Asked
by endecotp.
Last updated
.
Post not yet marked as solved
144 Views

Get file path from .onDrop on macOS SwiftUI app

I'm building an app to manage and edit some files. To do that, I want to open the files in place dropping them into a view. I cannot find a way to obtain the file URL after the drop operation. If I constrain the file types to .fileURL, the drop frame doesn't activate. If I use .data, I get the file and not the path, which is what I want. Any way to do this the SwiftUI way? .onDrop(of: [.fileURL], isTargeted: $dragOver) { providers -> Bool in providers.first?.loadDataRepresentation(forTypeIdentifier: "public.file-url", completionHandler: { (data, error) in                             if let data = data {                                 print(data.description)                             }                         })                         return true }
Asked
by airbolt.
Last updated
.
Post not yet marked as solved
733 Views

macOS Catalyst App Crashes During App Review

I've created an iOS app that works fine. I ticked the box in Xcode for Catalyst and its works fine on my machine, my wife's MacBook, and also a friends iMac. However, during the App Review process it got rejected as it crashed. Is anyone good at crash reports please? It seems to crash on Thread 8 - Core Location. I've just shown that portion of the report but if you need it all just let me know (didn't want to just dump a load of text that all): Thread 8 Crashed:: Dispatch queue: com.apple.CoreLocation.0x7fd60de16fa0 0 libsystemkernel.dylib 0x00007fff6f3aa33a pthreadkill + 10 1 libsystempthread.dylib 0x00007fff6f466e60 pthreadkill + 430 2 libsystemc.dylib 0x00007fff6f331808 abort + 120 3 com.apple.corelocation 0x00007fff36298273 0x7fff36290000 + 33395 4 com.apple.locationsupport 0x00007fff5aa1383c 0x7fff5aa04000 + 63548 5 com.apple.locationsupport 0x00007fff5aa1379b 0x7fff5aa04000 + 63387 6 com.apple.locationsupport 0x00007fff5aa0716c CLConnection::handleMessage(std::1::sharedptr<CLConnectionMessage>) + 156 7 com.apple.locationsupport 0x00007fff5aa0f321 0x7fff5aa04000 + 45857 8 com.apple.locationsupport 0x00007fff5aa104eb 0x7fff5aa04000 + 50411 9 libxpc.dylib 0x00007fff6f4a72bc xpcconnectioncalleventhandler + 56 10 libxpc.dylib 0x00007fff6f4a61cb xpcconnectionmachevent + 934 11 libdispatch.dylib 0x00007fff6f2096f8 dispatchclientcallout4 + 9 12 libdispatch.dylib 0x00007fff6f21ebc9 dispatchmachmsginvoke + 435 13 libdispatch.dylib 0x00007fff6f20eaf6 dispatchlaneserialdrain + 263 14 libdispatch.dylib 0x00007fff6f21f71c dispatchmachinvoke + 481 15 libdispatch.dylib 0x00007fff6f20eaf6 dispatchlaneserialdrain + 263 16 libdispatch.dylib 0x00007fff6f20f5d6 dispatchlaneinvoke + 363 17 libdispatch.dylib 0x00007fff6f218c09 dispatchworkloopworkerthread + 596 18 libsystempthread.dylib 0x00007fff6f463a3d pthreadwqthread + 290 19 libsystempthread.dylib 0x00007fff6f462b77 start_wqthread + 15
Asked
by drfunk.
Last updated
.
Post not yet marked as solved
244 Views

Arrow keys don't seem to be working in UITextView embed in UICollectionViewCell

When a UITextView (or UITextField) is inside a UICollectionViewCell, arrow keys don't seem to be working, pressing up/down/left/right won't move the cursor. However, arrow keys with a modifier key (alt/cmd) do work, for example, cmd + left would go to beginning of the line.
Asked
by shumin.
Last updated
.
Post not yet marked as solved
564 Views

How to code sign unit tests in a Swift Package for Mac Catalyst?

It appears that on an Apple Silicon Macs, we cannot do unit tests for Swift Packages using Mac Catalyst. Steps to produce: 0. Get an Apple Silicon Mac. Go to an empty folder, create a new Swift Package using swift package init. Open the created Package.swift, select the running destination to be My Mac (Mac Catalyst). Run the tests. I was getting the following error: code signature in [generated test path] not valid for use in process using Library Validation: Trying to load an unsigned library. I did not get this issue on my Intel Mac. On Apple Silicon Macs, set the destination to an iOS simulator or a “pure” Mac destination also works. How to bypass this issue, or is this a bug from Xcode? I am running the latest Xcode 12.3.
Asked
by selveskii.
Last updated
.
Post not yet marked as solved
532 Views

Custom About window with Mac Catalyst

I wan´t to create a custom "About" window and connect it to the "About Application" Menu Item. How is this done with Mac Catalyst?
Asked Last updated
.
Post not yet marked as solved
791 Views

Can't obtain the user's Apple Music token on macOS (Catalyst)

On a macOS app generated with Catalyst, the method SKCloudServiceController.requestUserToken(forDeveloperToken:completionHandler:) returns a SKErrorDomain. The error is: Error Domain=SKErrorDomain Code=0 "Ocorreu um erro desconhecido" UserInfo={NSLocalizedDescription=Ocorreu um erro desconhecido} Has something changed regarding this method on macOS or is this a bug?
Asked Last updated
.
Post marked as solved
416 Views

Catalyst document folder does not exist

Hey, on iOS we always access the document folder assuming it exists, but on Catalyst we ran into issues caused by the fact that the document folder does not exist, so we had to create it first. Is it normal behaviour on catalyst ?
Asked
by yass5.
Last updated
.