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.
Post
Replies
Boosts
Views
Activity
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!")
}
}
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?
WindowGroups have ids, like this: WindowGroup(id: "window_id"), but DocumentGroups do not have. So opening like this does not work: openWindow(id: "window_id").
The problem is that if the user dismisses the DocumentGroup, there is no way to reopen it again.
From the Apple visionOS ARKit scene reconstruction, we can get the geometry of the 3D objects: MeshAnchor.Geometry. I have tried calculating the bounding box of it but had no success.
How could we calculate the width, height and depth from the MeshAnchor.Geometry?
The documentation says that MeshAnchor should have a property with enum MeshAnchor.MeshClassification type to get the classification of the mesh (if it is a floor, furniture, table etc...)
Is there a way to access this property?
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.
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.
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
}
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,
From Xcode 14.1 beta 6, the widgets (both Home and Lock Screen) are not showing in the Widget Gallery. Has anyone else experienced this issue?
It is possible with SceneKit, but I haven’t found any way for RealityKit.
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?
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?
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.