Post

Replies

Boosts

Views

Activity

Reply to SwiftData in-memory ModelContainer causes DefaultStore validation errors on consecutive xcodebuild test runs
Hi Ziqiao, Yes — I spent a full day isolating this into a standalone Swift package: https://github.com/mesqueeb/SwiftDataContainerPollutionInTests git clone https://github.com/mesqueeb/SwiftDataContainerPollutionInTests.git cd SwiftDataContainerPollutionInTests ./test.sh 20 The script runs xcodebuild test in a loop (also reproduces with swift test). It was tricky to minimize — the bug triggers roughly 1 in 15–20 runs with these simplified schemas, but in my real project with more complex Codable types and more schema versions it triggers ~5 out of 6 runs. The more I stripped away to isolate the reproduction, the lower the trigger rate got, but the core issue is the same. Regarding erase(): I tried it in my real project and it didn't help. Each in-memory container already uses a unique ModelConfiguration name (UUID().uuidString), so they shouldn't be sharing any state — the pollution seems to come from the process-global schema registry rather than from any individual container's store.
Topic: UI Frameworks SubTopic: General Tags:
May ’26
Reply to Xcode 26.4 rc
Happened to me after just signing in this morning, around 12h later it already got that error: Failed to authenticate. API Error: 401 {"type":"error","error":{"type":"authentication_error","message":"OAuth token has expired. Please obtain a new token or refresh your existing token."},"request_id":"req_0xxxxxx"} Signing out of Claude.ai account in the "Agent" settings and back in worked.
Apr ’26
Reply to Example code for fading in / out RealityKit spotlights
@Vision Pro Engineer thank you for the sample and suggestion to use an ECS system to do so. I was hoping for an action similar to the fromToByAction: https://developer.apple.com/documentation/realitykit/fromtobyaction that we can apply to the intensity, just like we can with other properties like position etc. Do you know if this is possible?
Topic: Spatial Computing SubTopic: General Tags:
Aug ’24
Reply to VisionOS IBL (ImageBasedLighting) BW only or Coloured? File formats? Shadows?
To answer my own post with my current understanding on things: 1- Does IBL need to be BW or will colour work? It can be in colour. As an example you can use Reality Converter to test multiple different IBLs, some b/w some coloured: 2- What is the best file format for IBL? Any pros/cons? Or should we just test out each format and check visually. From my tests: PNG, OpenEXR (.exr), Radiance HDR (.hdr) all work. But which format is recommended? It "depends". Just test and see until you have the ambience you are looking for. 3- Will IBL on visionOS create shadows for us? In Blender an HDRI gives shadows. No. There is currently no clear information what the best way is to approach adding shadows to a scene in RealityKit. 4 Looking at a scene in Blender which uses HDRI as global lighting, how can we best "prep" the IBL image that will give the closest light similar to Blender's Cycles rendering engine? Just test and see until you have the ambience you are looking for.
Topic: Graphics & Games SubTopic: RealityKit Tags:
Feb ’24
Reply to VisionOS IBL (ImageBasedLighting) BW only or Coloured? File formats? Shadows?
@Wittmason with "shadow baking" I meant "light baking". What I really mean is that in the Blender renderer (the screenshots at the bottom) you can see beautiful shadows. They are not generated when running on the  Vision Pro. An IBL will "tint" our assets' colour, but it will not add shadows. I think the only solution to have shadows is to replace the textures with textures that have those shadows baked in. I guess they call this "light baking" in Unity/Unreal, but Blender doesn't have a good workflow for this. My current understanding: an asset texture as a JPG is sometimes a smaller image used in repeated pattern on an asset other times an asset texture is just colour/texture data, not using any jpg In consideration of the above, what I understand the limitations of light baking to be: When baking light onto a JPG texture (so you can see a shadow as part of that texture), then you basically need one big texture jpg per asset and cannot use any "repeated pattern" any more. When baking light onto a texture that doesn't use any JPG but instead colour/texture data, then a newly JPG will need to be generated for that. The above 1 & 2 makes it so the usdz file size will grow tremendously because of the new and large sizes texture JPGs... I believe that Unity/Unreal therefore don't "bake light onto a texture" but instead they create a "lightmap" which is another layer that can be added on top of an asset with data on which parts need to be lightened/darkened. I am guessing this is a more economical method to do so, but I have no idea how these lightmaps are supported by RealityKit /  Vision Pro.
Topic: Graphics & Games SubTopic: RealityKit Tags:
Feb ’24
Reply to Setting massProperties on a USDZ-loaded entity corrupts its transform (position/scale → NaN)
I hope to get back to properly test this soon, but someone pointed out it might be orientation: .init() it creates an invalid simd_quatf instead of a non-rotated valid one. 🤦🏼‍♂️ That's probably it....
Replies
Boosts
Views
Activity
4w
Reply to Orphaned 9GB Simulator Runtime in /System/Library/AssetsV2 - Cannot Delete (SIP protected)
Did anyone test on macOS v27 beta?
Replies
Boosts
Views
Activity
Jun ’26
Reply to SwiftData in-memory ModelContainer causes DefaultStore validation errors on consecutive xcodebuild test runs
Reported via FB22755700
Topic: UI Frameworks SubTopic: General Tags:
Replies
Boosts
Views
Activity
May ’26
Reply to SwiftData in-memory ModelContainer causes DefaultStore validation errors on consecutive xcodebuild test runs
Hi Ziqiao, Yes — I spent a full day isolating this into a standalone Swift package: https://github.com/mesqueeb/SwiftDataContainerPollutionInTests git clone https://github.com/mesqueeb/SwiftDataContainerPollutionInTests.git cd SwiftDataContainerPollutionInTests ./test.sh 20 The script runs xcodebuild test in a loop (also reproduces with swift test). It was tricky to minimize — the bug triggers roughly 1 in 15–20 runs with these simplified schemas, but in my real project with more complex Codable types and more schema versions it triggers ~5 out of 6 runs. The more I stripped away to isolate the reproduction, the lower the trigger rate got, but the core issue is the same. Regarding erase(): I tried it in my real project and it didn't help. Each in-memory container already uses a unique ModelConfiguration name (UUID().uuidString), so they shouldn't be sharing any state — the pollution seems to come from the process-global schema registry rather than from any individual container's store.
Topic: UI Frameworks SubTopic: General Tags:
Replies
Boosts
Views
Activity
May ’26
Reply to RealityKit custom component: `has()` returns `true` but typed subscript returns `nil` in SwiftPM test runner
To clarify i'm on macOS 26.3.1 (a) the reported environment was wrong, but I cannot edit the OP.
Topic: Graphics & Games SubTopic: RealityKit Tags:
Replies
Boosts
Views
Activity
May ’26
Reply to Xcode 26.4 rc
Happened to me after just signing in this morning, around 12h later it already got that error: Failed to authenticate. API Error: 401 {"type":"error","error":{"type":"authentication_error","message":"OAuth token has expired. Please obtain a new token or refresh your existing token."},"request_id":"req_0xxxxxx"} Signing out of Claude.ai account in the "Agent" settings and back in worked.
Replies
Boosts
Views
Activity
Apr ’26
Reply to Manipulation stops working when changing rooms
@JosephSimpson Did you notice any change in behaviour since last year? Or any further communication from Apple via your feedback tickets?
Topic: Spatial Computing SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jan ’26
Reply to Example code for fading in / out RealityKit spotlights
@Vision Pro Engineer thank you for the sample and suggestion to use an ECS system to do so. I was hoping for an action similar to the fromToByAction: https://developer.apple.com/documentation/realitykit/fromtobyaction that we can apply to the intensity, just like we can with other properties like position etc. Do you know if this is possible?
Topic: Spatial Computing SubTopic: General Tags:
Replies
Boosts
Views
Activity
Aug ’24
Reply to Merge or Split a String Catalog
@isomoon @rakesha @steve23 Take a look at my article here: https://fatbobman.com/en/posts/merging-swift-string-catalogs-in-a-multi-package-monorepo/
Replies
Boosts
Views
Activity
Jul ’24
Reply to Command compileSkybox failed with a nonzero exit code
I have the same issue. Does this mean that any visionOS apps cannot use Xcode Cloud?
Replies
Boosts
Views
Activity
Jun ’24
Reply to .refreshable on macOS?
@Lucky7 Did you figure it out? I was wondering the same thing.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Mar ’24
Reply to VisionOS IBL (ImageBasedLighting) BW only or Coloured? File formats? Shadows?
To answer my own post with my current understanding on things: 1- Does IBL need to be BW or will colour work? It can be in colour. As an example you can use Reality Converter to test multiple different IBLs, some b/w some coloured: 2- What is the best file format for IBL? Any pros/cons? Or should we just test out each format and check visually. From my tests: PNG, OpenEXR (.exr), Radiance HDR (.hdr) all work. But which format is recommended? It "depends". Just test and see until you have the ambience you are looking for. 3- Will IBL on visionOS create shadows for us? In Blender an HDRI gives shadows. No. There is currently no clear information what the best way is to approach adding shadows to a scene in RealityKit. 4 Looking at a scene in Blender which uses HDRI as global lighting, how can we best "prep" the IBL image that will give the closest light similar to Blender's Cycles rendering engine? Just test and see until you have the ambience you are looking for.
Topic: Graphics & Games SubTopic: RealityKit Tags:
Replies
Boosts
Views
Activity
Feb ’24
Reply to VisionOS IBL (ImageBasedLighting) BW only or Coloured? File formats? Shadows?
@Wittmason with "shadow baking" I meant "light baking". What I really mean is that in the Blender renderer (the screenshots at the bottom) you can see beautiful shadows. They are not generated when running on the  Vision Pro. An IBL will "tint" our assets' colour, but it will not add shadows. I think the only solution to have shadows is to replace the textures with textures that have those shadows baked in. I guess they call this "light baking" in Unity/Unreal, but Blender doesn't have a good workflow for this. My current understanding: an asset texture as a JPG is sometimes a smaller image used in repeated pattern on an asset other times an asset texture is just colour/texture data, not using any jpg In consideration of the above, what I understand the limitations of light baking to be: When baking light onto a JPG texture (so you can see a shadow as part of that texture), then you basically need one big texture jpg per asset and cannot use any "repeated pattern" any more. When baking light onto a texture that doesn't use any JPG but instead colour/texture data, then a newly JPG will need to be generated for that. The above 1 & 2 makes it so the usdz file size will grow tremendously because of the new and large sizes texture JPGs... I believe that Unity/Unreal therefore don't "bake light onto a texture" but instead they create a "lightmap" which is another layer that can be added on top of an asset with data on which parts need to be lightened/darkened. I am guessing this is a more economical method to do so, but I have no idea how these lightmaps are supported by RealityKit /  Vision Pro.
Topic: Graphics & Games SubTopic: RealityKit Tags:
Replies
Boosts
Views
Activity
Feb ’24
Reply to Entity not reacting to light and not casting shadow in VIsionOS Simulator
GroundingShadowComponent(castsShadow: true) needs to be applied to the first layer you have that actually has the mesh. In Apple language sometimes called the ModelEntity. Probably bigDonut has an extra /Root layer, so you need to dig into the children, find the ModelEntity and apply the shadow there.
Topic: Graphics & Games SubTopic: RealityKit Tags:
Replies
Boosts
Views
Activity
Jan ’24
Reply to Add light to a RealityView on visionOS
@mzoob Can you please share the image you used for "shiwai_a" ? I'm having difficulties creating the correct .exr/.hdr/.png System IBL Texture to achieve the same lighting as I see it in Blender in my room & garden. :sweat_smile:
Topic: Graphics & Games SubTopic: RealityKit Tags:
Replies
Boosts
Views
Activity
Dec ’23