This must be simple, but googling doesn’t get me close to a solution.
I can’t get uint to compile. Error says unknown type name ‘uint’; did you mean ‘int’?.
This happens with any project that has common.h file with uint in it. Xcode 16, macOS Sequoia 15.1.1.
I tried “clean project”.
Irritating!
Found the answer here. replace uint with uint32_t, or, at the top of the file type:
typedef uint32_t uint;
I’m glad you found the answer. The changes to code should be pinned here but I’m not sure it sticks to the top of the forum.
There’s one other change from chapter 23:
Great book! But the uint32_t problem happens in many chapters, in my case any code using uint in the bridging header. Updating the github with the appropriate suggested correction (typedef uint32_t uint) in all relevant chapters would be nice.
Hi - thank you for the kind words!
We’re busily working on V5. I think you can get the code from GitHub off the 5.0 branch. Although there will be some changes from V4
Thanks for the answer. When will the V5 come out? Will it include some material on VisionOS Compositor Services?
I don’t have a date for the release. We’re working on it now though.
The contents will be much the same, but updated to work with Metal 3 and Xcode 26. No visionOS.