yeah, nvm is nice because it won't bother the rest of your system and you can build locally with that version.
With Intel you should be fine with the build.
Good luck
I had to unlink the actual and relink the old node version to solve that one but now gyp struggle with the (new) xcode CLI.
gyp info spawn make
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
CXX(target) Release/obj.target/drivelist/src/drivelist.o
CXX(target) Release/obj.target/drivelist/src/device-descriptor.o
CXX(target) Release/obj.target/drivelist/src/darwin/list.o
In file included from ../src/darwin/list.mm:21:
In file included from ../src/darwin/REDiskList.h:21:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:12:
/Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSBundle.h:91:143: error: function does not return NSString
- (NSAttributedString *)localizedAttributedStringForKey:(NSString *)key value:(nullable NSString *)value table:(nullable NSString *)tableName NS_FORMAT_ARGUMENT(1) NS_REFINED_FOR_SWIFT API_AVAILABLE(macos(12.0), ios(15.0), watchos(8.0), tvos(15.0));
~~~~~~~~~~~~~~ ^ ~
/Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:103:48: note: expanded from macro 'NS_FORMAT_ARGUMENT'
#define NS_FORMAT_ARGUMENT(A) __attribute__ ((format_arg(A)))
^ ~
1 error generated.
make: *** [Release/obj.target/drivelist/src/darwin/list.o] Error 1
To save time, my simple question is: has anyone done a successful local build on (intel) mac and can provide some hints ?
Thank you! Maybe they can put their instructions on the github building.md file for others.
Probably i am the problem but i was not able to build local nor on github just out of the box with the instructions provided on building.md.
The error codes (NSAttributedString *)localizedAttributedStringForKey:(NSString *)key value:(nullable NSString *)value table:(nullable NSString *)tableName NS_FORMAT_ARGUMENT(1) NS_REFINED_FOR_SWIFT API_AVAILABLE(macos(12.0), ios(15.0), watchos(8.0), tvos(15.0));
and
[ **build (macos-latest)** ](https://github.com/CptHolzschnauz/arduino-ide/runs/4557310825?check_suite_focus=true)
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020.
seems to me that some stuff is maybe just a little outdated and with little effort this can be fixed?
Its's a HUGE project, thx to all, without a local build out of the box it's a bit daunting to me to participate.
Of course!
Last time I built it on my machine I was on Big Sur (Intel) and it needed tweaks.
I have asked our devs to refine the build instructions.
Hang in there
I'm happy to improve the documentation and make it more clear.
If this can help I can copy over the setup instructions from theia to our repo in order to make it user friendly.
Based on your error message, and considering you are using node 12 already, I suspect there is some issue with the Xcode command line tools installed on your machine.
Can you try removing and re-installing them running the following commands on your terminal?
sudo rm -rf /Library/Developer/CommandLineTools
xcode-select --install
Once this is done, let me know if running the yarn command works.
It's not possible to run mac-os-latest with the xcode cli on 'older' mac os!
So the xcode cli is updated to the latest release even on 'older' os versions (big sur et all) but the build process is only sucessfull with os 12 (montery) installed!
@ubidefeo : Try to build on your m1 machine with os 12 and updated xcode.
@f_stasi : Maybe a little hint on the BUILDING.MV would be helpful for others with 'older' os on mac.