Git Product home page Git Product logo

Comments (7)

jonathanpenn avatar jonathanpenn commented on July 17, 2024

The error message leads me to believe that you do not have your Apple developer tools set up correctly or that you have not installed the command line tools through Xcode.

To start, can you find out the path to Xcode.app? Did you install Xcode through the App Store? Or from a direct download from developer.apple.com?

from ui-screen-shooter.

macIndian avatar macIndian commented on July 17, 2024

Thanks for replay,
will take few minutes of yours

Yes, i had direct download from developer.apple.com, and its currently locate at /Applications/Xcode.app/Contents/Developer
So where do i have to change to set this path,
and do i have to develop any UiAutomation file ya , i can use this directly from command line, as you had guided

from ui-screen-shooter.

jonathanpenn avatar jonathanpenn commented on July 17, 2024

You need to make sure the command line tools are installed, first. Open the Xcode preferences, switch to the "Downloads" tab and click the "Install" button for the command line tools. It looks like the attached screenshot. Try that first and see if you can run the script.

Napkin 04-24-13 1 48 54 AM

from ui-screen-shooter.

macIndian avatar macIndian commented on July 17, 2024

Thanks for quick replay,

I had install command line tools ,but i am gating still same error ,
Let me explain you how i use this ,

  1. i had download form git and paste at desktop
    2)run this script from terminal

ind530:~ iabc$ cd /Users/iabc/Desktop/ui-screen-shooter-master
ind530:ui-screen-shooter-master iabc$ ./run_screenshooter.sh ~/Desktop/screenshots

and after this i get this error

Saving original language en...
Error: No developer directory found at /Volumes/DATA/Xcode.app/Contents/Developer. Run /usr/bin/xcode-select to update the developer directory path.

my xcode content are at /Applications/Xcode.app/Contents/Developer
can you please help me where i am doing mistake ?

Thanks ,

from ui-screen-shooter.

jonathanpenn avatar jonathanpenn commented on July 17, 2024

Hmm. It looks like the xcode command line tools are looking for Xcode.app on an external drive or something like that.

Run this:

sudo xcode-select -switch /Applications/Xcode.app

That should point everything back in the right place. Try running the screenshooting script again.

from ui-screen-shooter.

macIndian avatar macIndian commented on July 17, 2024

Great Man !!!
We had done , for working demo app. Thanks a lot,
One more Que: how to take image in iPad landscape mode

from ui-screen-shooter.

jonathanpenn avatar jonathanpenn commented on July 17, 2024

Glad to hear it's working! I'll close this issue, then.

You can rotate the iPad simulator by calling setDeviceOrientation() on the target like so:

var target = UIATarget.localTarget();
target.setDeviceOrientation(UIA_DEVICE_ORIENTATION_LANDSCAPE);

For more resources about UI Automation, check out my tutorials and book at http://cocoamanifest.net/features. There's a lot of good stuff over there.

from ui-screen-shooter.

Related Issues (20)

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.