Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build fails on Mac OSX Catalina (10.15) #1269

Closed
kgoba opened this issue Sep 14, 2022 · 1 comment
Closed

Build fails on Mac OSX Catalina (10.15) #1269

kgoba opened this issue Sep 14, 2022 · 1 comment

Comments

@kgoba
Copy link

kgoba commented Sep 14, 2022

Build on Mac OSX 10.15 fails, possibly due to changes in the framework environment:

Undefined symbols for architecture x86_64:
  "_SecTaskCopyValueForEntitlement", referenced from:
      _darwin_detach_kernel_driver in libusb-1.0.a(darwin_usb.o)
  "_SecTaskCreateFromSelf", referenced from:
      _darwin_detach_kernel_driver in libusb-1.0.a(darwin_usb.o)

Looks like this can be solved by adding the Security framework to library link requirements in CMakeFiles.txt:

@@ -187,7 +187,8 @@ if (APPLE)     # ... with Apple macOS libraries
     find_library(ObjC objc)
     find_library(CoreFoundation CoreFoundation)
     find_library(IOKit IOKit)
-    target_link_libraries(${STLINK_LIB_SHARED} ${LIBUSB_LIBRARY} ${SSP_LIB} ${ObjC} ${CoreFoundation} ${IOKit})
+    find_library(Security Security)
+    target_link_libraries(${STLINK_LIB_SHARED} ${LIBUSB_LIBRARY} ${SSP_LIB} ${ObjC} ${CoreFoundation} ${IOKit} ${Security})

(and the same on lines 226/227)

@kgoba kgoba changed the title Building fails on Mac OSX Catalina (10.15) Build fails on Mac OSX Catalina (10.15) Sep 14, 2022
@Nightwalker-87 Nightwalker-87 added this to the v1.7.1 milestone Oct 23, 2022
@Nightwalker-87
Copy link
Member

Nightwalker-87 commented Oct 23, 2022

Remaining support for macOS 10.15 will end with release v1.7.1.
Newer versions will not be officially supported.
Thus there will be no attempt to fix this.

@stlink-org stlink-org locked as resolved and limited conversation to collaborators Oct 23, 2022
@Nightwalker-87 Nightwalker-87 self-assigned this Oct 23, 2022
Nightwalker-87 added a commit that referenced this issue Oct 23, 2022
- Updated CHANGELOG.md
- Updated README.md
- Removed support for macOS (Closes #1269)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
No open projects
Status: Done
Development

No branches or pull requests

2 participants