Update: This is due to the new feature of "Swift Language" - "C++ and Objective-C Interoperability" when choosing C++/Objective-C++. Even the default project will have this error. Does someone came out a solution?
Update: This only occurs on the AMD Graphic Card, it works well on Apple silicons. You can test with AcceleratingRayTracingWithMetal sample code and add some non-useful intersection in the loop on an intel-based Mac!
Update: This is due to the new feature of "Swift Language" - "C++ and Objective-C Interoperability" when choosing C++/Objective-C++. Even the default project will have this error. Does someone came out a solution?
Update: This only occurs on the AMD Graphic Card, it works well on Apple silicons. You can test with AcceleratingRayTracingWithMetal sample code and add some non-useful intersection in the loop on an intel-based Mac!