Post

Replies

Boosts

Views

Activity

DocumentGroup Fails to Display Document Content in Mac Catalyst App
When running a Mac Catalyst app that uses DocumentGroup, the app fails to display the document content. The document picker works as expected, but creating a new document or opening an existing one results in an empty window. This issue occurs regardless of whether “Optimize for Mac” or “Scale iPad” is selected. Steps to Reproduce: 1. Download the sample project provided by Apple for building a document-based app in SwiftUI. 2. Delete the macOS version of the project. 3. Add a Mac Catalyst version of the app. 4. In the Mac Catalyst settings, select “Optimize for Mac” (the bug also appears if it is “Scale iPad”). 5. Run the project on macOS. Expected Result: The app should correctly display the content of the document when creating or opening it. Actual Result: The app opens an empty window when a new document is created or an existing one is opened. Impact: We have received multiple 1-star reviews, and our retention has dropped by two-thirds due to this issue. Environment: Xcode 16.1; macOS 15.1 & 15.2 (on 15.0 it works fine) Has anyone experienced the same issue? I filed multiple reports so far.
1
0
126
5d
DocumentGroup opens an empty document on Mac Catalyst when the "Optimize for Mac" is checked
I am using a Mac Catalyst with SwiftUI for our document-based app with DocumentGroup. The issue is that when we create a new document or open an existing one, the opened view is completely blank. It is only blank/empty when the "Optimzie for Mac" is checked. If it is "Scaled t oMatch iPad", then it works well. Xcode 16.1 macOS 15.1 struct DocumentGroupTestApp: App { var body: some Scene { DocumentGroup(newDocument: WritingAppDocument()) { file in TestView() // it is empty when it gets opened. It does not work if the option "Optimize for Mac" is checked. If it is scale iPad, then it works. } } } struct TestView: View { var body: some View { Text("Hello, World!") } }
2
1
245
Nov ’24
Crash on launch from all TestFlight builds, but when loading the app from Xcode
We are preparing a launch for iOS 18, and we experienced crashes from iOS 17 devices. If I load the app right from Xcode 16 RC to the iOS 17 device, then it works fine, but if I download it from TestFlight, the nit crashes. The app crashes immediately upon launch due to a missing symbol in the Foundation framework. I'm hoping someone can provide insights or suggestions on how to resolve this. Error Message CopySymbol not found: _$s10Foundation14NSDecimalRoundyySpySo0B0aG_SPyADGSiSo14NSRoundingModeVtF Referenced from: <C1ABDA48-29EE-3674-8554-669220A76F81> /Volumes/VOLUME/*/CamPlan.app/CamPlan Expected in: <D92E19C1-6299-3E94-8614-C505D5ABCCDB> /System/Library/Frameworks/Foundation.framework/Foundation What I've Tried Verified that the app is compiled with the latest Xcode version Checked for any usage of private APIs (none found) Reviewed usage of Foundation framework methods, especially those related to NSDecimalRound Questions What could be causing this symbol to be missing? Are there any known issues with NSDecimalRound or related functions in recent iOS versions? How can I identify which part of my code is trying to use this missing symbol?
6
1
998
Sep ’24
SwiftU Document-based app error: "The document could not be opened"
I am building a document-based app with SwiftUI, but whenever I want to create a document in the app, the app shows an alert with the following title: "The document could not be opened" I hit the same problem with Apple's sample project: https://developer.apple.com/documentation/swiftui/building_a_document-based_app_with_swiftui The interesting part is that I only get this error message when I am creating a new file from the "Recents" tab, but when I am creating it from the "Browse" tab, then it works. The beta testers from my app are also experiencing this issue, and they use multiple types of OS versions, and they have enough storage to create the files.
2
0
1.2k
Apr ’23
AppShortcuts are not showing up when using CustomIntentMigratedAppIntent with Xcode 14.1 beta 3.
I am using CustomIntentMigratedAppIntent shortcuts actions. When I want to show them in a SiriTipView, then it does not show up. I get two messages in the console: "[Metadata] Couldn't read autoShortcutProviderMangledName key from metadata." "Provided AppIntent does not match an App Shortcut, SiriTipView will not display." In the previous Xcode it worked well.
3
2
2.7k
Oct ’22
Removing title bar on Catalyst doesn't work on Ventura
I would like to remove the title bar of the catalyst version of my app, but it does not work on Ventura. It used to work on Monterey. I am using AppDelegate lifecycle. I am following the official documentation: https://developer.apple.com/documentation/uikit/mac_catalyst/removing_the_title_bar_in_your_mac_app_built_with_mac_catalyst The code: func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) { guard let windowScene = (scene as? UIWindowScene) else { return } #if targetEnvironment(macCatalyst) if let titlebar = windowScene.titlebar { titlebar.titleVisibility = .hidden titlebar.toolbar = nil } #endif }
11
2
4.2k
Sep ’22
"Cannot find 'GroupActivitySharingController' in scope" even when the documentation says that it is available on macCatalyst.
I would like to use the GroupActivitySharingController, but it seems it is not available for macCatalyst. On the iOS version, it works. The documentation says that it should be available for catalyst: https://developer.apple.com/documentation/groupactivities/groupactivitysharingcontroller Error message: "Cannot find 'GroupActivitySharingController' in scope" Is there anything I have missed? Thanks,
0
0
1.1k
Sep ’22
Is it possible to play RealityKit animation on iOS14 using the latest Xcode?
I cannot use entity's playAnimation() (https://developer.apple.com/documentation/realitykit/entity/3335123-playanimation), and I get an error message: 'playAnimation()' is only available in iOS 15.0 or newer. With the previous Xcode I could use this function for iOS14, but now I can only use it for iOS15 or newer. Is there any way I can support this feature for iOS14?
1
0
1.1k
Oct ’21
How can I create a note-taking app that supports SharePlay?
I would like to create a custom experience using Group Activities. It would be a simple note-taking app in which the users can create a shared note using SharePlay. The tricky part: I would like to save the created note persistently (using CoreData) on all of the user's devices. Is it possible to save the data on all of the devices using Core Data or any other technology?
0
0
1.1k
Jul ’21
How to get only the Object mode of AR Quick Look using USDZ file?
I would like to present a 3D USDZ animation (rotatable, scalable) to the users. The USDZ file contains a rigged 3D character doing push ups. I can open the file in AR Quick Look without a problem, but could not find a way to present it only as a 3D object and not in the real world. I have tried using SceneView but the animation did not load. However when I tried a static USDZ file then it worked, but for a USDZ animation it did not.
1
0
1.5k
Jun ’20