cancel
Showing results for 
Search instead for 
Did you mean: 

STM32 CubeMX - Generate Code fails on a Mac

chairdeng
Associate II

Hi All

I have installed STM32 CubeMX on a Mac and I get the following error when trying to generate code:

The Eclipse executable launcher was unable to locate its companion shared library.截屏2024-12-01 18.42.46.png

18 REPLIES 18
SofLit
ST Employee

Same issue as this thread.

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.
Souhaib MAZHOUD
ST Employee

Hello @chairdeng @zuojaing 

This could be an issue related to the unzipping of STM32CubeIDE.
Could you please try this command line that removes extended attributes in macOS:
xattr -c /Applications/STM32CubeIDE.app

 

KR, Souhaib

截屏2024-12-10 00.01.13.png

Hi, after following your solution and running sudo xattr - c/Applications/STM32CubeIDE.app on the terminal, the problem persists. Are there any other solutions?

*This post has been translated from Chinese to comply with the ST Community guidelines.

截屏2024-12-10 00.01.13.png

According to your description, after running sudo xattr - c/Applications/STM32CubeIDE. app on the terminal, I restarted stm32cubemx to generate code, but the problem still persists

The problem has not been solved. The following is the log when the problem occurred. Please check how to solve it.

截屏2024-12-10 13.44.14.png

Souhaib MAZHOUD
ST Employee

Could you try the same command line with ~/STM32CubeMX-6.13.0.app or try to uninstall CubeMX and reinstall it again and make sure to unzip the package using an official macOS® application such as the default graphical archive application, or the ditto tool in the command line:
$ditto -x -k setupArchive.zip

If the problem persists, please attach your IOC and log file to further investigate the issue.

When I uninstalled CubeMX and re-downloaded the CubeMX 6.13 installation package, both the macOS official extraction tool and the command sudo ditto -x -k en.stm32cubemx-mac-v6-13-0.zip ./STM32CubeMX failed to extract the file or reported an error: Couldn't read pkzip signature.

Can you use the official macOS decompression tool to extract the installation package of Cubemx

 

A few hours after I found that I couldn't decompress, I tried to decompress using the official macOS software again and successfully, but the original problem still persisted. At the same time, I closed cubemx again and ran the command sudo xattr - c/Applications/STMicroelectronics/STM32CubeMX. app, but the problem still persisted. Finally, as per your request, I uploaded the program log and the IOC file I used for testing