Post

Replies

Boosts

Views

Activity

Reply to Xcode 15 beta 1 failed to preview SwiftUI view in watchOS target
@yellow8 No, the issue persists. I'm truly disappointed with the Xcode Previews team. It's not about the bugs, but their response to them. Every time I report a bug in Previews, they respond with a standard template asking for a diagnostic file. As you can see in this post, even when I provide detailed steps that reproduce the issue 100% of the time, they simply ignore them and continue to request the diagnostic file. They might even tell you it's a known issue, but still, they ask for a diagnostic file. So, I've given up.
Topic: Programming Languages SubTopic: Swift Tags:
Sep ’23
Reply to Conditionally Migrate WatchOS 10 users ONLY to WidgetKit
Crash log from my widget extension on watchOS 9 (but the extension deployment target is watchOS 10). The missing symbol is _$s21DeveloperToolsSupport13ColorResourceV4name6bundleACSS_So8NSBundleCtcfC. Exception Type: EXC_CRASH (SIGABRT) Exception Codes: 0x0000000000000000, 0x0000000000000000 Termination Reason: DYLD 4 Symbol missing Symbol not found: _$s21DeveloperToolsSupport13ColorResourceV4name6bundleACSS_So8NSBundleCtcfC Referenced from: <D018EC5D-C49D-387D-8E1D-52FBA6099567> /***.app/PlugIns/WatchComplications.appex/WatchComplications (built for watchOS 10.0 which is newer than running OS) Expected in: <3DEFD17C-9665-3448-964C-B3218FDE4DF9> /System/Library/Frameworks/DeveloperToolsSupport.framework/DeveloperToolsSupport (terminated at launch; ignore backtrace) Triggered by Thread: 0 Thread 0 Crashed: 0 dyld 0x000000006954ec5c __abort_with_payload + 8 1 dyld 0x000000006955a31c abort_with_payload_wrapper_internal + 100 (terminate_with_reason.c:102) 2 dyld 0x000000006955a34c abort_with_payload + 12 (terminate_with_reason.c:124) 3 dyld 0x00000000694f4740 dyld4::halt(char const*) + 332 (DyldProcessConfig.cpp:2758) 4 dyld 0x00000000694f2be0 dyld4::prepare(dyld4::APIs&, dyld3::MachOAnalyzer const*) + 3484 (dyldMain.cpp:0) 5 dyld 0x00000000694f176c start + 1872 (dyldMain.cpp:1107)
Topic: App & System Services SubTopic: General Tags:
Sep ’23
Reply to where to apply "grounding shadow" in Reality Composer Pro?
Thanks to https://developer.apple.com/forums/thread/733918 (I tested this snippet in Vision Pro lab and it worked.) extension Entity { public func setGroundingShadow(_ castsShadow: Bool) { self.enumerateHierarchy { entity, stop in if entity is ModelEntity { entity.components.set(GroundingShadowComponent(castsShadow: castsShadow)) } } } private func enumerateHierarchy(_ body: (Entity, UnsafeMutablePointer<Bool>) -> ()) { var stop = false func enumerate(_ body: (Entity, UnsafeMutablePointer<Bool>) -> ()) { guard !stop else { return } body(self, &stop) for child in children { guard !stop else { break } child.enumerateHierarchy(body) } } enumerate(body) } }
Topic: Graphics & Games SubTopic: RealityKit Tags:
Sep ’23