Coder Social home page Coder Social logo

rakhithjk / stf_ios_support Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dryark/stf_ios_support

0.0 1.0 0.0 344 KB

Central repo to connect and document components/repos needed for IOS stf support

License: MIT License

Shell 2.99% Go 74.73% Makefile 5.09% Objective-C 1.71% Ruby 0.63% Python 1.52% JavaScript 0.02% Dockerfile 0.14% Perl 13.18%

stf_ios_support's Introduction

STF IOS Support

Build machine setup

  1. Clone this repo down to your build machine

  2. Install XCode

  3. Add your developer Apple ID to XCode

    1. XCode -> XCode menu -> Preferences -> Accounts Tab
    2. + under Apple IDs list
    3. Choose Apple ID
    4. Login to your account so that dev certs can be downloaded
  4. Run ./init.sh

Deploy server side:

  1. On your STF server machine
    1. Pull STF server image docker pull openstf/stf

    2. Copy docker-compose.yml and .env from server/

    3. Generate certs for your system / domain

    4. Update docker-compose.yml cert paths and .env

    5. Start STF

      1. docker-compose up

Using a standard OpenSTF server:

  1. Setup your server as normal following upstream instructions
  2. Alter stf_ios_support/coordinator/proc_stf_provider --connect-sub and --connect-push lines to match your server config

Build provider files:

  1. Update config.json

  2. Run make dist

    1. dist.tgz will be created

Deploy provider setup:

  1. Copy dist.tgz from build machine
  2. Run tar -xf dist.tgz
  3. Tweak config.json as desired

Starting provider

  1. Register(provision) your IOS device to your developer account as a developer device

    1. Use the API?? https://developer.apple.com/documentation/appstoreconnectapi/devices
    2. Follow these instructions: https://www.telerik.com/blogs/how-to-add-ios-devices-to-your-developer-profile I couldn't find updated instructions on Apples website. If you find them please let me know so I can link to them.
  2. Plug your IOS device in

  3. Pair it with your system

  4. Have Xcode setup the "developer image" on your IOS device:

    1. Open Xcode
    2. Go to Windows... Devices and Simulators
    3. Wait while Developer Image is installed to your phone
  5. Run ./run ( and leave it running )

  6. Permissions dialog boxes appear for coordinator to listen on various ports; select accept for all of them

  7. Device shows up in STF with video and can be controlled. Yay

Setting up with VPN

  1. Install openvpn-server on your STF server machine
  2. Create client certificate(s) using your favorite process...
  3. Create ovpn file(s) with those client certs
  4. Deploy those cert(s) to your provider machines; setting them up in Tunnelblick
  5. Alter config.json on each provider to have the name of the cert setup in Tunnelblick
  6. Start openvpn server on STF server
  7. Start coordinator/provider on each provider machine

Handling video not working

  1. Run ./view_log -proc ios_video_stream to check for errors from video fetching and frame serving process
  2. Run ./view_log -proc h264_to_jpeg to check for errors from video decoding process
  3. Reboot your IOS device and try again

Increase clicking speed

  1. Jailbreak your IOS device

  2. Install Veency through Cydia

  3. Configure a VNC password if desired

  4. Alter config.json

    1. Set "use_vnc": true
    2. Set "vnc_scale": 2 ( or 3 depending on your device scale )
    3. If password used, set "vnc_password": "[your password]"
  5. Start coordinator

  6. Clicking is now nearly immediate!

Debugging

  1. run ./view_log to see list of things that log
  2. run ./view_log -proc [one from list]

FAQ

See https://github.com/tmobile/stf_ios_support/wiki/FAQ

stf_ios_support's People

Contributors

nanoscopic avatar

Watchers

 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.