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