maccatalyst

Can't distribute Mac Catalyst extension

有些话、适合烂在心里 提交于 2020-06-16 04:36:27
问题 I successfully uploaded to the Appstore for iOS an app with several extensions, but when I try to upload the same app for Mac AppStore ( a Mac Catalyst App ) I get the following error from Xcode on two extensions ERROR ITMS-90355: "Missing Info.plist value. No value for NSExtensionPrincipalClass found in extension Info.plist for MyApp.app/Contents/PlugIns/MyExtension.appex" These extensions are a Share Extension and an Action Extension that have a storyboard file, so if I set the

EXC_BAD_INSTRUCTION from com.apple.xpc.activity.com.apple.cloudkit.scheduler.com.apple.coredata.cloudkit.activity.export

久未见 提交于 2020-05-25 06:25:32
问题 I have an app that runs fine on iOS, but when running with catalyst, it gives me this crash intermittently if I swipe to another virtual Desktop on macOS, and then back, for about 10 times. It mostly happens on a UICollectionViewController This is the backtrace: (lldb) bt * thread #5, queue = 'com.apple.xpc.activity.com.apple.cloudkit.scheduler.com.apple.coredata.cloudkit.activity.export', stop reason = EXC_BAD_INSTRUCTION (code=EXC_I386_INVOP, subcode=0x0) * frame #0: 0x00007fff68c373ae

Catalyst 'SwiftUI.AccessibilityNode' is not a known serializable element

a 夏天 提交于 2020-03-18 03:19:53
问题 I created a fresh iOS Single Page App (including SwiftUI) with Xcode 11.1 and enabled Mac Catalyst. After running the fresh Project on my Mac (macOS 10.15 of course) I get the following errors after tapping once on the window. 2019-10-18 12:59:48.479186+0200 test[3130:122148] Metal API Validation Enabled 2019-10-18 12:59:50.960734+0200 test[3130:122148] [AXRuntimeCommon] Unknown client: test 2019-10-18 12:59:50.962261+0200 test[3130:122148] [AXRuntimeCommon] This class 'SwiftUI

Catalyst 'SwiftUI.AccessibilityNode' is not a known serializable element

折月煮酒 提交于 2020-03-18 03:19:14
问题 I created a fresh iOS Single Page App (including SwiftUI) with Xcode 11.1 and enabled Mac Catalyst. After running the fresh Project on my Mac (macOS 10.15 of course) I get the following errors after tapping once on the window. 2019-10-18 12:59:48.479186+0200 test[3130:122148] Metal API Validation Enabled 2019-10-18 12:59:50.960734+0200 test[3130:122148] [AXRuntimeCommon] Unknown client: test 2019-10-18 12:59:50.962261+0200 test[3130:122148] [AXRuntimeCommon] This class 'SwiftUI

Bug Check: CloudKit MacCatalyst didReceiveRemoteNotification

ぐ巨炮叔叔 提交于 2020-02-04 22:56:58
问题 I am using MacCatalyst to port an iOS/iPadOS app to MacOS. The app uses CloudKit and functions in all ways except one: the UIApplicationDelegate method, didReceiveRemoteNotification , is not called on the MacOS version when a CloudKit update is submitted from another device Things that do work in the app: Submitting CKDatabaseOperation s including updates and subscriptions to CloudKit Manually retrieving database updates from CloudKit UIApplicationDelegate method

Is it possible to use full screen in Mac Catalyst?

柔情痞子 提交于 2020-01-24 05:20:06
问题 Porting a game to Mac Catalyst - but window is quite small. Is it possible to start in full screen? 回答1: There's no simple setting that says "start full screen". But you can set the window's frame on startup. func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) { guard let _ = (scene as? UIWindowScene) else { return } #if targetEnvironment(macCatalyst) window?.frame = CGRect(origin: .zero, size: CGSize(width: 1600, height:

How to use NSSharingService in Catalyst?

落爺英雄遲暮 提交于 2020-01-13 05:44:11
问题 I try to use NSSharingService to add my catalyst app to share actions sheet on macOS but get error NSSharingService is unavailable in Mac Catalyst . #if targetEnvironment(macCatalyst) extension NSSharingService { //Error: 'NSSharingService' is unavailable in Mac Catalyst class func shareContent ( content: [AnyObject], button: NSButton ) { let sharingServicePicker = NSSharingServicePicker (items: content ) sharingServicePicker.showRelativeToRect(button.bounds, ofView: button, preferredEdge:

Exclude pod when porting to mac with catalyst

别说谁变了你拦得住时间么 提交于 2020-01-01 02:46:35
问题 Porting apps to mac is finally possible thanks to Catalyst , problem is, numerous pods don't support AppKit. Most common one would be Crashlytics / Firebase. In [...]/Pods/Crashlytics/iOS/Crashlytics.framework/Crashlytics(CLSInternalReport.o), building for Mac Catalyst, but linking in object file built for iOS Simulator, file '[...]/Pods/Crashlytics/iOS/Crashlytics.framework/Crashlytics' for architecture x86_64 Since it's a recent topic, I couldn't find doc on how to remove a pod from my

Xcode 11 not recognizing static library's architecture: MacCatalyst (aka UIKitForMac)

帅比萌擦擦* 提交于 2019-12-22 04:49:06
问题 After getting excited about 2019's WWDC announcements, I tried compiling my existing iOS app against the MacOS using Xcode 11.0 beta. Unfortunately, it didn't go as expected. Xcode says my static library is built for < unknown > architecture: Building for UIKit for Mac, but the linked library 'libssl.a' was built for < unknown >. You may need to restrict the platforms for which this library should be linked in the target editor. But when I check my static libs, I can see they do contain the

How to assign a shortcut on a button in SwiftUI on MacOS for iOS Project(Catalyst enabled)?

十年热恋 提交于 2019-12-11 17:58:31
问题 I have a button on my view and I want to handle key events to perform something. How to do it? #if os(macOS) is false cause the project is mobile with enabled MacOS via Catalyst. #if os(macOS) extension Command { static let voiceSelectedText = Command(Selector("voiceSelectedText:")) } #endif var body: some View { let button = Button(action: { }) { Text("Voice (Space)") } #if os(macOS) return button.onCommand(.voiceSelectedText) { } #else return button #endif } Update #if targetEnvironment