Post

Replies

Boosts

Views

Activity

Reply to Shared modelContainer between DocumentGroup and WindowGroup
I'm also looking for a way to do this. I assume that it's not possible with the currently released version of SwiftData/SwiftUI, and that you'd need to drop back to manually sharing a model container somehow, or present the content that should have been in a separate window in a sheet, meaning you can't present more than one at a time. It's quite limiting.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Oct ’25
Reply to Failed to emit precompiled module in Xcode 26b1
After turning on SWIFT_ENABLE_EXPLICIT_MODULES, it gets a little further, and then spits out a very similar error: Showing Recent Issues /Users/tonyarnold/Documents/Reveal/<unknown>:1:1: error reading '/Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/17/include/module.modulemap': No such file or directory /Users/tonyarnold/Documents/Reveal/<unknown>:1:1: failed to emit precompiled module '/Users/tonyarnold/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/ptrcheck-4LS9E3I68COI6XN5HHO8H5O7N.pcm' for module map '/Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/17/include/module.modulemap'
Jun ’25
Reply to Codesigning is skipping bundled dylibs in a binary framework
It's all done via a script, but the basic gist is: xcrun xcodebuild archive -archivePath MyFramework.xcarchive -scheme MyFramework xcrun xcodebuild -create-xcframework \ -framework MyFramework.xcarchive/Products/@rpath/MyFramework.framework \ -debug-symbols MyFramework.xcarchive/dSYMs/MyFramework.framework \ -output MyFramework.xcframework ditto -c -k --rsrc --keepParent MyFramework.xcframework MyFramework.xcframework.zip The zip file is attached to a GitHub release, and I download it in the app project, expand it and link to it as normal. I can see looking at this how the signing might be a bit "off" by reaching into the xcarchive directly, rather than exporting the framework first. I might try using xcodebuild -exportArchive prior to creating the XCFramework, and see if that helps.
Aug ’21
Reply to Shared modelContainer between DocumentGroup and WindowGroup
I'm also looking for a way to do this. I assume that it's not possible with the currently released version of SwiftData/SwiftUI, and that you'd need to drop back to manually sharing a model container somehow, or present the content that should have been in a separate window in a sheet, meaning you can't present more than one at a time. It's quite limiting.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Oct ’25
Reply to Xcode 26 RC unable to compile asset catalogs on CI
I ended up updating my CI nodes to run macOS 26 Tahoe, and this error doesn't occur anymore.
Replies
Boosts
Views
Activity
Sep ’25
Reply to Failed to emit precompiled module in Xcode 26b1
I'll do my best to create a small reproducer, but this is part of a very large, somewhat complex workspace. Turning off the new Compilation Caching option in Workspace Settings gets me past this error.
Replies
Boosts
Views
Activity
Jun ’25
Reply to Failed to emit precompiled module in Xcode 26b1
After turning on SWIFT_ENABLE_EXPLICIT_MODULES, it gets a little further, and then spits out a very similar error: Showing Recent Issues /Users/tonyarnold/Documents/Reveal/<unknown>:1:1: error reading '/Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/17/include/module.modulemap': No such file or directory /Users/tonyarnold/Documents/Reveal/<unknown>:1:1: failed to emit precompiled module '/Users/tonyarnold/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/ptrcheck-4LS9E3I68COI6XN5HHO8H5O7N.pcm' for module map '/Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/17/include/module.modulemap'
Replies
Boosts
Views
Activity
Jun ’25
Reply to NWBrowser with bonjour returning PolicyDenied(-65570)
I'm seeing the same issue affect my app, Reveal (http://revealapp.com). Even setting up the appropriate NSBonjourServices and NSLocalNetworkUsageDescription entries in an iOS app's property list doesn't allow us to use DNSServiceRegister(…) — all we get is an error: kDNSServiceErr_PolicyDenied. If anyone has a workaround, I'd love to hear it!
Replies
Boosts
Views
Activity
Apr ’25
Reply to URLSession: The network connection was lost.
Quinn, do you feel like I'd be able to gain more insight by opening a TSI for this? Would you recommend that if I needed more help working out why the initial situation is occurring?
Replies
Boosts
Views
Activity
Dec ’24
Reply to Xcode Cloud macOS won't run test scheme - "Failed to load the test bundle"
I've filed FB13786010. It's frustrating that this is still happening over a year later.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
May ’24
Reply to SwiftData/DataUtilities.swift:1093: Fatal error: Unable to parse keypath for non-PersistentModel Type
This happened for me with Xcode 15.3 beta 1 and beta 2, and I've just tested and it's still happening with Xcode 15.3 beta 3. I've reported this as FB13620516.
Replies
Boosts
Views
Activity
Feb ’24
Reply to Unable to test macOS apps after updating to Sonoma
Thanks, Quinn! That's very informative. For CI, someone also suggested separately that using ephemeral CI environments would also prevent this situation from triggering.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Oct ’23
Reply to Codesigning is skipping bundled dylibs in a binary framework
It's all done via a script, but the basic gist is: xcrun xcodebuild archive -archivePath MyFramework.xcarchive -scheme MyFramework xcrun xcodebuild -create-xcframework \ -framework MyFramework.xcarchive/Products/@rpath/MyFramework.framework \ -debug-symbols MyFramework.xcarchive/dSYMs/MyFramework.framework \ -output MyFramework.xcframework ditto -c -k --rsrc --keepParent MyFramework.xcframework MyFramework.xcframework.zip The zip file is attached to a GitHub release, and I download it in the app project, expand it and link to it as normal. I can see looking at this how the signing might be a bit "off" by reaching into the xcarchive directly, rather than exporting the framework first. I might try using xcodebuild -exportArchive prior to creating the XCFramework, and see if that helps.
Replies
Boosts
Views
Activity
Aug ’21
Reply to Drag & Drop with NSTableViewDiffableDataSource
You'll need to annotate any methods from NSTableViewDataSource that you implement with @objc. For what it's worth, I don't believe any of the drag and drop protocol methods are implemented in the base NSTableViewDiffableDataSource type.
Topic: UI Frameworks SubTopic: AppKit Tags:
Replies
Boosts
Views
Activity
Jul ’21