Closed StanleySweet closed 7 months ago
I was actually about to log this bug myself. Can confirm the malloc to stdlib change is required, as the current versions of MacOS/XCode no longer include malloc.
The second issue is caused by a badly-formed strcpy in zui.c on line 255:
strcpy(temp, text);
This causes the program to crash on launch with a "source and destination buffer overlap" error. Changing the above line to a safer strncpy call appears to resolve this:
strncpy(temp, text, sizeof(temp));
I can confirm that the .app file now starts with the strncpy(temp, text, sizeof(temp));
fix.
I'm still unable to run the application in Debug/Release from XCode though.
EDIT1: Looks like encoding is broken too.
Merging with https://github.com/armory3d/armortools/issues/1671, build fixes incoming. Thanks for all the details.
Description
I followed the instructions on the main readme, then the ones in the armor paint readme but could not get it to build at first.
In armortools/armorcore/Sources/iron/iron_string.c I had to replace malloc.h by stdlib.h for it to start building.
Unfortunately it then fails to run in Xcode with the following message.
Expected behavior Following the instructions should give me a working build.
OS: macOS Monterey 12.6 on 2020 M1 mac
I also tried
Without much success. I tried to make the krom.js file executable but that didn't work.
Launching the application .app file crashes instantly.
Crash Log