Loading of older .reality files is broken on iOS 15 (works on iOS 14)

Hello,

in our app we are downloading some user generated content (.reality files and USDZs) and displaying it within the app. This worked without issues in iOS 14 but with iOS 15 (release version) there have been a lot of issues with certain .reality files. As far as I can see USDZ files still work. I've created a little test project and the error message log is not really helpful.

2021-10-01 19:42:30.207645+0100 RealityKitAssetTest-iOS15[3239:827718] [Assets] Failed to load asset of type 'RealityFileAsset', error:Could not find archive entry named assets/Scéna17_9dfa3d0.compiledscene.

2021-10-01 19:42:30.208097+0100 RealityKitAssetTest-iOS15[3239:827598] [Assets] Failed to load asset path '#18094855536753608259'

2021-10-01 19:42:30.208117+0100 RealityKitAssetTest-iOS15[3239:827598] [Assets] AssetLoadRequest failed because asset failed to load '#18094855536753608259'

2021-10-01 19:42:30.307040+0100 RealityKitAssetTest-iOS15[3239:827598] throwing -10878

2021-10-01 19:42:30.307608+0100 RealityKitAssetTest-iOS15[3239:827598] throwing -10878

2021-10-01 19:42:30.307712+0100 RealityKitAssetTest-iOS15[3239:827598] throwing -10878

2021-10-01 19:42:30.307753+0100 RealityKitAssetTest-iOS15[3239:827598] throwing -10878

2021-10-01 19:42:30.307790+0100 RealityKitAssetTest-iOS15[3239:827598] throwing -10878

2021-10-01 19:42:30.307907+0100 RealityKitAssetTest-iOS15[3239:827598] throwing -10878

2021-10-01 19:42:30.307955+0100 RealityKitAssetTest-iOS15[3239:827598] throwing -10878

2021-10-01 19:42:30.308155+0100 RealityKitAssetTest-iOS15[3239:827598] throwing -10878

2021-10-01 19:42:30.308194+0100 RealityKitAssetTest-iOS15[3239:827598] throwing -10878

▿ Failed to load loadRequest.

  - generic: "Failed to load loadRequest."

Basic code structure that is used for loading:

cancellable = Entity.loadAsync(named: entityName, in: .main)
    .sink { completion in
        switch completion {
        case .failure(let error):
            dump(error)
            print("Done")
        case .finished:
            print("Finished loading")
        }
    } receiveValue: { entity in
        print("Entity: \(entity)")
    }

Is there anyway to force it to load in a mode that enforces compatibility? As mentioned this only happens on iOS 15. Even ARQuickLook can't display the files anymore (no issues on iOS 14).

Thanks for any help!

Replies

If anyone from Apple is reading – I've created a radar with a sample project attached (FB9670736).

Thanks, I've routed this to RealityKit. Not sure of a workaround, but I'll respond if I get more info.

Add a Comment

We are seeing the same throwing -10878 with AVFoundation: https://developer.apple.com/forums/thread/692264

  • The AVFoundation issue with throwing -10878 also occurs with macOS 12.3.1.

Add a Comment

I have the same problem in SpriteKit when adding a SKAudioNode to a SKScene. It only occurs the first time a SKAudioNode is added to a SKScene.

Any update regarding this issue?

I can't open on my iPhone (iOS 15.2.1) reality files generated on my iPad (14.8.1) with Reality Composer.

I have tried opening the reality composer file on my iPhone and exporting it, but I can't open the resulting reality file.

Hi, it looks like the team is working on a fix for this. I don’t have an ETA for when the fix will make it into an OS build though.

Thanks a lot. Please let me know in this thread if you get any update regarding this issue. I would really appreciate it.

Could you just confirm that I can still work on my project on Reality Composer on my iOS 14 device and that I won't have to start the project again on an iOS 15 device once the problem is solved?

@arthurfromberlin Hi Arthur (and others), this issue is supposedly fixed in iOS 15.4 beta 2.

  • Thanks for the heads up, that's great news! :) Btw: is there a reason why these kinds of fixes rarely make it into to the release notes (https://developer.apple.com/documentation/ios-ipados-release-notes/ios-ipados-15_4-release-notes)?

  • I think it's a manual process to publish release notes, and sometimes issues like this one get forgotten about.

  • The throwing -10878 issue with AVAudioEngine and AVAudioMixerNode also occurs in macOS 12.3.1 — assuming it's been fixed in iOS, any idea if/when it'll be fixed on macOS too...? Thanks!

Add a Comment