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

Support on OSX 10.12 #17

Open
Pramanth opened this issue Nov 16, 2016 · 2 comments
Open

Support on OSX 10.12 #17

Pramanth opened this issue Nov 16, 2016 · 2 comments

Comments

@Pramanth
Copy link

Thank you @ferrous26 for providing the gem . It is simple and really works well.

Been using this gem to automate UI test cases in our product on OSX 10.10 and 10.11 and really working well.

Currently our product started supporting OSX 10.12 and hence wanted to run test cases on the same. But while installing AXElements I am getting below error. I know there is no update wrt gem from long time but is there a plan to support OSX 10.12 or even if you give some guidelines on how to make the gem work will try out. Thank you :)

Fetching: mouse-4.0.3.gem (100%)

Building native extensions. This could take a while...

Successfully installed mouse-4.0.3

Fetching: screen_recorder-0.1.6.gem (100%)

Building native extensions. This could take a while...

Successfully installed screen_recorder-0.1.6

Fetching: accessibility_core-0.6.2.gem (100%)

Building native extensions. This could take a while...

ERROR: Error installing AXElements:

ERROR: Failed to build gem native extension.

/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby extconf.rb

creating Makefile

make "DESTDIR="

compiling highlighter.c

highlighter.c:69:45: error: 'NSBorderlessWindowMask' is deprecated: first deprecated in macOS 10.12 [-Werror,-Wdeprecated-declarations]

                              styleMask:NSBorderlessWindowMask

                                        ^~~~~~~~~~~~~~~~~~~~~~

                                        NSWindowStyleMaskBorderless

/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:952:32: note: 'NSBorderlessWindowMask' has been explicitly marked deprecated here

static const NSWindowStyleMask NSBorderlessWindowMask API_DEPRECATED_WITH_REPLACEMENT("NSWindowStyleMaskBorderless", macosx(10.0, 10.12)) = NSWindowStyleMaskBorderless;
^
1 error generated.

make: *** [highlighter.o] Error 1

Gem files will remain installed in /Library/Ruby/Gems/2.0.0/gems/accessibility_core-0.6.2 for inspection.

Results logged to /Library/Ruby/Gems/2.0.0/gems/accessibility_core-0.6.2/ext/accessibility/highlighter/gem_make.out

@eldadmoneta
Copy link

eldadmoneta commented Nov 29, 2016

NSBorderlessWindowMask is deprecated in 10.12
Need to use NSWindowStyleMaskBorderless instead

@Pramanth
Copy link
Author

Thanks a lot @eldadmoneta for the valuable response.

I will put effort from my end if any break through will update . Thank you once again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants