Link error when building hydraplayer Xcode project

I am trying to follow the WWDC 2022 video Explore USD tools and rendering: https://developer.apple.com/videos/play/wwdc2022/10141/

I followed the steps here to create an Xcode project that uses OpenUSD to load scenes. https://developer.apple.com/documentation/metal/metal_sample_code_library/creating_a_3d_application_with_hydra_rendering?language=objc

After installing OpenUSD and generating an Xcode project, I opened Xcode, set the scheme to hydraplayer and clicked the build button. The code compiles but fails to link with a bunch of undefined symbols errors like this one:

Undefined symbol: pxrInternal_v0_23__pxrReserved__::GfMatrix4d::SetDiagonal(double)

I tried to tag this post wwdc2022-10141, but the tag was not found so I tagged a related session.

Replies

I was able to fix this by using OpenUSD version 22.11: https://github.com/PixarAnimationStudios/OpenUSD/tree/v22.11. Something must have broken in a subsequent release.