Code Monkey home page Code Monkey logo

xcode-same-targets's People

Contributors

smirn0v avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

xcode-same-targets's Issues

Mac Osx 10.11.5, Ruby 2.2.4p230 setup to fix failure?

hi! I tried to run this and was not able. Here is what happened.

1.At first I needed colorize, that was an easy fix.
https://github.com/fazibear/colorize

$ which ruby ; ruby --version 
/Users/me/.rbenv/shims/ruby
ruby 2.2.4p230 (2015-12-16 revision 53155) [x86_64-darwin15] 

$ ruby xcode-same-targets.rb 
/Users/me/.rbenv/versions/2.2.4/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require': cannot load such file -- colorize (LoadError)
    from /Users/me/.rbenv/versions/2.2.4/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
    from xcode-same-targets.rb:1:in `<main>'

$ gem install colorize
Fetching: colorize-0.8.1.gem (100%)
Successfully installed colorize-0.8.1
Parsing documentation for colorize-0.8.1
Installing ri documentation for colorize-0.8.1
Done installing documentation for colorize after 0 seconds
1 gem installed

$ ruby xcode-same-targets.rb 
[-] No xcode projects found inside current directory.

2.Then I went into my code folder, and I get this failure.

$ cd /Users/me/Desktop/src/ios-ic-stg 
$ ruby /Users/me/Desktop/src/ci-xcode-target-diffs/xcode-same-targets.rb 
[+] /Users/me/Desktop/src/ios-ic-stg/SFG.xcodeproj
[+] No configuration file '.xcode-same-targets' found, will compare all targets.
/Users/me/Desktop/src/ci-xcode-target-diffs/xcode-same-targets.rb:143:in `block (3 levels) in <main>': undefined method `recursive' for nil:NilClass (NoMethodError)
    from /Users/me/.rbenv/versions/2.2.4/lib/ruby/2.2.0/set.rb:283:in `each_key'
    from /Users/me/.rbenv/versions/2.2.4/lib/ruby/2.2.0/set.rb:283:in `each'
    from /Users/me/Desktop/src/ci-xcode-target-diffs/xcode-same-targets.rb:141:in `block (2 levels) in <main>'
    from /Users/me/Desktop/src/ci-xcode-target-diffs/xcode-same-targets.rb:127:in `permutation'
    from /Users/me/Desktop/src/ci-xcode-target-diffs/xcode-same-targets.rb:127:in `each'
    from /Users/me/Desktop/src/ci-xcode-target-diffs/xcode-same-targets.rb:127:in `block in <main>'
    from /Users/me/Desktop/src/ci-xcode-target-diffs/xcode-same-targets.rb:121:in `each'
    from /Users/me/Desktop/src/ci-xcode-target-diffs/xcode-same-targets.rb:121:in `<main>'

me-mba:ios-ic-stg me$ ls *.xc*
SFG.xcodeproj:
project.pbxproj     project.pbxproj.orig    project.xcworkspace xcshareddata

SFG.xcworkspace:
contents.xcworkspacedata    xcshareddata

It references lines 127, 141, https://github.com/smirn0v/xcode-same-targets/blob/master/xcode-same-targets.rb#L141

cs['targets'].permutation(2).each { |t1_name, t2_name|
#...
   target_files[t1_name].each { |fr|

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.