I followed the second link, that is the one of the Cocos instructions on gitHub.
Nothing to do, same error, with both instructions for iOS:
CMake Error at /Applications/CMake.app/Contents/share/cmake-3.22/Modules/CMakeDetermineSystem.cmake:130 (message):
Could not find toolchain file: …/cmake/ios.toolchain.cmake
Call Stack (most recent call first):
CMakeLists.txt:31 (project)
Rightly, there is no file.
Before going to find a random file on the internet, I wonder how it is possible that this file is not present in the Cocos repository and not even in the zip that you download.
First thing I would ask is why do you want to upgrade, if it is simply because you would like the latest version, then I would advise against this as with any framework updating mid development especially to the next major release can cause issues. It’s not always as simple as popping out one version and putting in a newer one. But if you really need features from the latest version then that is obviously different. As always make a backup, local and online of your whole project folder before attempting any major change like this. Depending on the size of the project it may be better to get a new project in 4.x setup then transition the code and assets over and reconfigure your new project instead of trying to update your existing one.
Thanks for the answer, even if it doesn’t help me.
I manage various apps developed with Cocos 3.17 for Apple and Android
Since OpenGL has been deprecated by Apple I think it is appropriate to have the apps updated to Metal, and we are already late.
They will not necessarily be updated before the OpenGL removal, as Cocos 3.17 are quite stable.
Furthermore, tests for reliability and performance will be carried out on Cocos 4.0, but as I said above it is important to prepare in time, it seems to me an obvious phrase but sometimes it is good to specify it.
For the technical talk, I was able to compile the Cocos 4.0 from the 3.17 XCode project.
With Cmake and the official instructions it doesn’t work, this is very sad because it denotes poor support.
Fortunately there is the forum and internet where you can find a lot of info.
The next step is to get the test-cpp project to compile, I’ll try with CMake