2024-12-15 05:26 AM
Hello everyone,
I am now using a MacBook Pro with M4Pro chip, running STM32CubeMX 6.13.0 with MacOS Sequoia 15.2 (24C101) Darwin 24.2.0
When SIP (System Integrity Protection) is on, an error of Eclipse occurred each time trying to generate code in STM32CubeMX (I am using STM32H723, if it matters). The message was "The Eclipse executable launcher was unable to locate its companion shared library." And the initial code didn't generated properly. I tried open CubeMX in terminal to see what happens (executing /Applications/STMicroelectronics/STM32CubeMX.app/Contents/MacOs/STM32CubeMX), the log was:
dlopen(/Applications/STMicroelectronics/STM32CubeMX.app/Contents/Resources/third_parties_plugins/binaries/STM32CubeIDE-MX-services/revA/macosx/cocoa/x86_64/Eclipse.app/Contents/MacOS//../../../../../../pool/plugins/org.eclipse.equinox.launcher.cocoa.macosx.x86_64_1.2.800.v20231003-1442/eclipse_11802.so, 0x0002): tried: '/Applications/STMicroelectronics/STM32CubeMX.app/Contents/Resources/third_parties_plugins/binaries/STM32CubeIDE-MX-services/revA/macosx/cocoa/x86_64/Eclipse.app/Contents/MacOS//../../../../../../pool/plugins/org.eclipse.equinox.launcher.cocoa.macosx.x86_64_1.2.800.v20231003-1442/eclipse_11802.so' (code signature in <66ADAB06-1B30-301C-8ECA-7EDC8C31724D> '/Applications/STMicroelectronics/STM32CubeMX.app/Contents/Resources/third_parties_plugins/binaries/STM32CubeIDE-MX-services/revA/pool/plugins/org.eclipse.equinox.launcher.cocoa.macosx.x86_64_1.2.800.v20231003-1442/eclipse_11802.so' not valid for use in process: mapping process and mapped file (non-platform) have different Team IDs), '/System/Volumes/Preboot/Cryptexes/OS/Applications/STMicroelectronics/STM32CubeMX.app/Contents/Resources/third_parties_plugins/binaries/STM32CubeIDE-MX-services/revA/macosx/cocoa/x86_64/Eclipse.app/Contents/MacOS//../../../../../../pool/plugins/org.eclipse.equinox.launcher.cocoa.macosx.x86_64_1.2.800.v20231003-1442/eclipse_11802.so' (no such file), '/Applications/STMicroelectronics/STM32CubeMX.app/Contents/Resources/third_parties_plugins/binaries/STM32CubeIDE-MX-services/revA/macosx/cocoa/x86_64/Eclipse.app/Contents/MacOS//../../../../../../pool/plugins/org.eclipse.equinox.launcher.cocoa.macosx.x86_64_1.2.800.v20231003-1442/eclipse_11802.so' (code signature in <66ADAB06-1B30-301C-8ECA-7EDC8C31724D> '/Applications/STMicroelectronics/STM32CubeMX.app/Contents/Resources/third_parties_plugins/binaries/STM32CubeIDE-MX-services/revA/pool/plugins/org.eclipse.equinox.launcher.cocoa.macosx.x86_64_1.2.800.v20231003-1442/eclipse_11802.so' not valid for use in process: mapping process and mapped file (non-platform) have different Team IDs), '/Applications/STMicroelectronics/STM32CubeMX.app/Contents/Resources/third_parties_plugins/binaries/STM32CubeIDE-MX-services/revA/pool/plugins/org.eclipse.equinox.launcher.cocoa.macosx.x86_64_1.2.800.v20231003-1442/eclipse_11802.so' (code signature in <66ADAB06-1B30-301C-8ECA-7EDC8C31724D> '/Applications/STMicroelectronics/STM32CubeMX.app/Contents/Resources/third_parties_plugins/binaries/STM32CubeIDE-MX-services/revA/pool/plugins/org.eclipse.equinox.launcher.cocoa.macosx.x86_64_1.2.800.v20231003-1442/eclipse_11802.so' not valid for use in process: mapping process and mapped file (non-platform) have different Team IDs), '/System/Volumes/Preboot/Cryptexes/OS/Applications/STMicroelectronics/STM32CubeMX.app/Contents/Resources/third_parties_plugins/binaries/STM32CubeIDE-MX-services/revA/pool/plugins/org.eclipse.equinox.launcher.cocoa.macosx.x86_64_1.2.800.v20231003-1442/eclipse_11802.so' (no such file), '/Applications/STMicroelectronics/STM32CubeMX.app/Contents/Resources/third_parties_plugins/binaries/STM32CubeIDE-MX-services/revA/pool/plugins/org.eclipse.equinox.launcher.cocoa.macosx.x86_64_1.2.800.v20231003-1442/eclipse_11802.so' (code signature in <66ADAB06-1B30-301C-8ECA-7EDC8C31724D> '/Applications/STMicroelectronics/STM32CubeMX.app/Contents/Resources/third_parties_plugins/binaries/STM32CubeIDE-MX-services/revA/pool/plugins/org.eclipse.equinox.launcher.cocoa.macosx.x86_64_1.2.800.v20231003-1442/eclipse_11802.so' not valid for use in process: mapping process and mapped file (non-platform) have different Team IDs)
(Full log file attached in attachments, the content above may have issues because the forum editor shows 'Your post has been changed because invalid HTML was found in the message body. The invalid HTML has been removed. Please review the message and submit the message when you are satisfied.')
However, when I turned off SIP in RecoveryOS, the STM32CubeMX works well, but I don't want to turn it off regarding safety reasons. I tried re-sign the file that logs mentioned (executing
codesign --force --deep --sign - /path/to/eclipse_11802.so) and it didn't work. Re-installing STM32CubeMX also useless.
And the spctl was disabled (Allowing starting Applications from any source)
I wonder if there's any bug with code of CubeMX or Eclipse? Same problem occurred with my colleague's MacBook.