Git Product home page Git Product logo

appium-xcode's Introduction

appium-xcode

NPM version Downloads Dependency Status devDependency Status

Build Status Coverage Status Greenkeeper badge

ES7 module for interacting with Xcode and Xcode-related functions. Used by Appium

Note: Issue tracking for this repo has been disabled. Please use the main Appium issue tracker instead.

API

All functions are async, meaning they return promises which can be awaited via await.

Most functions are memoized, so after they are called once, they will simply return the same value. Remember that calling require() multiple times returns the same instantiation of a module if it has already been instantiated, so the memoization will be preserved across multiple files in the same project.

Some functions have an auto-retry built into them, they will retry silently a number of times. This is because the Xcode commands sometimes just flake and return bad values (or don't return).

To clear the memoized values, call clearInternalCache

getPath()

memoized

gets path to Xcode

getVersion([num_retries])

memoized, retry

returns the version of Xcode. Returns strings like '6.3.1'

getAutomationTraceTemplatePath([num_retries])

*memoized, retry

returns a path to the default AutomationTraceTemplate

getAutomationTraceTemplatePathWithoutRetry()

same as getAutomationTraceTemplatePath() but without retry or memoization.

getMaxIOSSDK([num_retries])

memoized, retry

returns largest IOS SDK version supported by Xcode. eg: '8.3'

getMaxIOSSDKWithoutRetry()

same as getMaxIOSDK() but without retry or memoization

getMaxTVOSSDK([num_retries])

memoized, retry

returns largest tvOS SDK version supported by Xcode. eg: '10.1'

getMaxTVOSSDKWithoutRetry()

same as getMaxTVOSSDK() but without retry or memoization

clearInternalCache()

clears the internal cache used for memoizing functions.

Develop

Watch

npm run watch

Test

npm test

Debug

After cloning appium-xcode, execute npm link in the appium-xcode directory. Next run npm link appium-xcode from the appium directory. This will symlink appium-xcode to node_modules/appium-xcode. If the clone becomes out of date remember to unlink or delete node_modules and reinstall.

For quick debugging you could cd into the node_modules/appium-xcode folder and run npm install followed by gulp transpile.

appium-xcode's People

Contributors

bootstraponline avatar greenkeeper[bot] avatar imurchie avatar jlipps avatar jonahss avatar mykola-mokhnach avatar penguinho avatar rkavalap avatar scottdixon avatar sebv avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.