Errata for Apple Augmented Reality by Tutorials 1st Edition

Hi @zig-zag , could you possibly share the exact error you receive when running the code and what solutions you were able to try?

Best,
Gina

Final Update: I ran the app on my iPhone XR and can see the cube and number 15 pool ball in full 3D, along with the table top they are sitting on as viewed through my iPhone’s camera. The error messages appear to be related to audio, which is not being used at this time.

I’m running OS 11.2.2 on a 2017 MacBook Pro and using XCode 12.4 (12D4e). I set up the TinyToyTank Project (several times and got the same results each time) following the instructions. Build Succeeded, but I get only a tiny gray square each time (is this the block I’m supposed to see?) I thought I’d see a 3D image of a block. Below is the debug information I get from Xcode. I have no idea what to make of it. I did verify using Reality Composer that the 3D cube with smoothed edges is in the Experience.rcproject file. But for some reason it was not loaded. OK, an update. Apparently the block was loaded and I’m seeing it from a top-down view, so it appears as a small gray square. How do I know this? I added a 15 pool ball to the cube image in the Experience.rcproject file and built the app again. This time I see the small gray square and the 15 pool ball, so it’s there. Now to figure out how to move the image around in the emulator. Next will plug in my iPhone.

2021-03-30 07:46:34.413838-0500 TinyToyTank[27132:9036281] Metal GPU Frame Capture Enabled
2021-03-30 07:46:34.414287-0500 TinyToyTank[27132:9036281] Metal API Validation Enabled
2021-03-30 07:46:35.191245-0500 TinyToyTank[27132:9036281] [plugin] AddInstanceForFactory: No factory registered for id <CFUUID 0x600000e29ca0> F8BB1C28-BAE8-11D6-9C31-00039315CD46
2021-03-30 07:46:35.221543-0500 TinyToyTank[27132:9036281] Error loading /Library/Audio/Plug-Ins/HAL/JackRouter.plugin/Contents/MacOS/JackRouter: dlopen(/Library/Audio/Plug-Ins/HAL/JackRouter.plugin/Contents/MacOS/JackRouter, 262): no suitable image found. Did find:
/Library/Audio/Plug-Ins/HAL/JackRouter.plugin/Contents/MacOS/JackRouter: mach-o, but not built for platform iOS-sim
2021-03-30 07:46:35.221689-0500 TinyToyTank[27132:9036281] [plugin] Cannot find function pointer New_JackRouterPlugIn for factory <CFUUID 0x600000e29d60> 7CB18864-927D-48B5-904C-CCFBCFBC7ADD in CFBundle/CFPlugIn 0x7fa473508f60 </Library/Audio/Plug-Ins/HAL/JackRouter.plugin> (bundle, not loaded)
2021-03-30 07:46:35.227170-0500 TinyToyTank[27132:9036281] [] [07:46:35.226] FigSTSCreate signalled err=-15994 (kFigSTSError_UnknownFlavor) (Unknown STS flavor) at /Library/Caches/com.apple.xbs/Sources/EmbeddedCoreMedia_Sim/EmbeddedCoreMedia-2765.6/Prototypes/FigSTS/FigSTS_Common.c:157
2021-03-30 07:46:35.227337-0500 TinyToyTank[27132:9036281] [Audio] Failed to create FigSTS object error=-15994
no main.reality file found in application bundle

Hey, Chris - will there be an update to the book?

Hi there! Yes, there is an update currently in the works.

Hi Chris! Any idea when the update for Apple Augmented Reality by Tutorials will be available?

Hey,

Just a FYI as I’m closing this thread — the new edition will be available from tomorrow, Wednesday 23rd Feb.