I wrote earlier how to fix errors and run a project written in cocos2d-x v2.2.6 on macOS in this topic
p.s.
The only problem we couldn’t solve is a very rare build crash on iOS 13 when creating a physical body in Box2d (file: b2BlockAllocator.cpp, line 118)
(m_freeLists[index] = block->next;)
Older versions of iOS don’t have this problem.
Therefore, for subsequent publication in iOS, we rewrote this project under cocos2d-x v3.17.2.
We are currently testing it.