Skip to content

Latest commit

 

History

History
57 lines (41 loc) · 2.06 KB

SETUP.md

File metadata and controls

57 lines (41 loc) · 2.06 KB

Setup

Install Xcode Build Tool

xcode-select --install

Install Tesseract

In order to get OCR features working you need to install tesseract.

macOS

brew install tesseract

Note: If you are unable to install 'atomac' on Mojave and get the error below:

 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Carbon.framework/Headers/Carbon.h:34:10: fatal error: 'CarbonSound/CarbonSound.h' file not found
    #include <CarbonSound/CarbonSound.h>

use this command:

open /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg

Linux

Please refer to official docs.

Windows:

Download installer and install it.

Notes: Installation of python wrapper around tesseract is handled in requirements.txt.

OpenCV

OpenCV has some known installation issues on Windows when Python 3.7 is used.

Please read those articles:

(macOS Only) Allow apps to control your computer

Find by text on iOS Simulator is based on macOS Accessibility. In order to get tests working you should allow program that execute tests to be able to control your computer.

System Preferences -> Security & Privacy ->  Privacy -> Accessibility -> 
- Add Terminal to list of apps allowed to control your computer (to be able to run tests via Terminal)
- Add PyCharm to list of apps allowed to control your computer (to be able to run tests via IDE)

Note that if your Jenkins instance is started via some other executable it should be also added in the list.