orta / chairs Goto Github PK
View Code? Open in Web Editor NEWSwap around your iOS Simulator Documents
License: MIT License
Swap around your iOS Simulator Documents
License: MIT License
Running Xcode 7, sitting in the directory for my app, I ran...
barbecuesteve:MyApp ๐ฅ chairs sync
Couldn't find an active iOS Simulator
barbecuesteve:MyApp ๐ฅ ps aux|grep "Simulator "
barbecuesteve 45695 0.0 0.6 2751448 100100 ?? S 8:50AM 0:12.48 /Applications/Xcode-beta.app/Contents/Developer/Applications/Simulator.app/Contents/MacOS/Simulator -SessionOnLaunch NO
barbecuesteve 45811 0.0 0.0 2432772 672 s001 S+ 8:53AM 0:00.00 grep Simulator
barbecuesteve:MyApp ๐ฅ
Xcode 6 changes the location of the simulator directory, and changes the organization of files within those directories. Chairs isn't able to read/write from these new directories yet.
Would be nice to do chairs info [x] and find out that it was version 1.3 instead of 1.4 for example
doing chairs pull anyname
Gives me such output in terminal:
/Users/austinate/.rvm/gems/ruby-2.2.1/gems/chairs-1.1.0/lib/musician.rb:254:in `get_app_name': undefined method `each' for #<Pow::Base:0x007ffe951afb30> (NoMethodError)
from /Users/austinate/.rvm/gems/ruby-2.2.1/gems/chairs-1.1.0/lib/musician.rb:188:in `setup'
from /Users/austinate/.rvm/gems/ruby-2.2.1/gems/chairs-1.1.0/lib/musician.rb:46:in `pull'
from /Users/austinate/.rvm/gems/ruby-2.2.1/gems/chairs-1.1.0/lib/musician.rb:17:in `initialize'
from /Users/austinate/.rvm/gems/ruby-2.2.1/gems/chairs-1.1.0/bin/chairs:8:in `new'
from /Users/austinate/.rvm/gems/ruby-2.2.1/gems/chairs-1.1.0/bin/chairs:8:in `<top (required)>'
from /Users/austinate/.rvm/gems/ruby-2.2.1/bin/chairs:23:in `load'
from /Users/austinate/.rvm/gems/ruby-2.2.1/bin/chairs:23:in `<main>'
from /Users/austinate/.rvm/gems/ruby-2.2.1/bin/ruby_executable_hooks:15:in `eval'
from /Users/austinate/.rvm/gems/ruby-2.2.1/bin/ruby_executable_hooks:15:in `<main>'
Had a try to google possible fix, but failed.
Looks like probably wrong Ruby version is used? But i'm not sure which one do i need to use. Thanks for help :)
I would like to be able to use chairs more generally to download and upload files from the simulator - maybe even devices. The function I'm looking for is to copy given file paths to the Documents directory.
It would need new commands:
chairs load [-r] [-directory bundledir] file ... overwrite app data bundle files, or just Documents/Application\ Support
Examples:
chairs load -directory Documents ExampleDocuments/*
(load directory contents into apps Documents)
chairs load -r Fixtures/AppData/
(copy directory recursively to sim)
chairs load .
What do you think @orta? Otherwise I would ask for extracting a simulator files gem :)
.xcappdata
bundles as created by Xcode's Organizer.
Xcode 6 actually has a bug with loading .xcappdata
bundles into the simulator, so this would make chairs the only way to load them easily. rdar://problem/18050217 (Open) http://stackoverflow.com/q/26132587
Hi, cool project !
I get this error though :
$> chairs ~
/Library/Ruby/Gems/1.8/gems/chairs-1.0.1/bin/../lib/musician.rb:2: undefined method `require_relative' for main:Object (NoMethodError)
from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:36:in `require'
from /Library/Ruby/Gems/1.8/gems/chairs-1.0.1/bin/chairs:6
from /usr/bin/chairs:23:in `load'
from /usr/bin/chairs:23
I run Ruby 1.8.7, seems require_relative
is depreciated.
ruby 1.8.7 (2012-02-08 patchlevel 358) [universal-darwin12.0]
I'm no Ruby dev so I wouldn't try a pull request, but seems you can change line 2 in musician.rb :
require_relative "pow"
to
require File.join(File.dirname(__FILE__), 'pow')
as per http://stackoverflow.com/questions/2681031/why-doesnt-relative-require-work-on-ruby-1-8-6
Would be useful in testing migrations
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.