Updating Xcode causes build to fail #2597
-
This has happened a few times. If I update Xcode, then something happens to the target when I open Xcode again. Instead of it being for iPhone, it becomes "My Mac", and I cannot build. If I try to run the following command: axmol build -p ios -a arm64 -sdk simulator -c -f Then the build fails with errors:
Any idea what the issue is? It happens regardless of project, and it seems I have to create a new project after this happens. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Check Available SDKs on Your Machine Run the following command in Terminal to see the list of available iOS SDKs: xcodebuild -showsdks You will see an output like:
If |
Beta Was this translation helpful? Give feedback.
-
It seems that when creating a project in Axmol, the CMakeCache.txt file hardcodes the sdk used. In my case 18.4. When I updated Xcode, Xcode removed the old sdk, and installed 18.5, so obviously it would not be able to build with the old paths. I opened the file in text edit, and replaced all instances of 18.4 in the text with 18.5 Then I ran the command again to build and everything worked, both in the terminal and in Xcode. |
Beta Was this translation helpful? Give feedback.
It seems that when creating a project in Axmol, the CMakeCache.txt file hardcodes the sdk used. In my case 18.4. When I updated Xcode, Xcode removed the old sdk, and installed 18.5, so obviously it would not be able to build with the old paths.
I opened the file in text edit, and replaced all instances of 18.4 in the text with 18.5
Then I ran the command again to build and everything worked, both in the terminal and in Xcode.