smirn0v / xcode-same-targets Goto Github PK
View Code? Open in Web Editor NEWTool to check if Xcode project targets contains same files
License: MIT License
Tool to check if Xcode project targets contains same files
License: MIT License
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|
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.