pbxproject 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.md ADDED
@@ -0,0 +1,57 @@
1
+ pbxproject
2
+ ==========
3
+
4
+ pbxproject offers more or less easy way to manage XCode 4 project files from ruby scripts.
5
+ By offering object-oriented approach to the file, adding custom build phases and/or files
6
+ are as easy as creating new ruby objects.
7
+
8
+ Usage
9
+ -----
10
+
11
+ You can install PBXProject gem easy from your command line:
12
+
13
+ $ gem install pbxproject
14
+
15
+ A top of your source file where you want to manage pbxproject files, you'll need to require `pbxproject` gem (obviously)
16
+
17
+ require 'pbxproject'
18
+
19
+ After this using pbxproject files are as easy as managing ruby objects:
20
+
21
+ # raises error if file is not found
22
+ pbx = PBXProject::PBXProject.new :file => 'path/to/project.pbxproj'
23
+
24
+ # parses project file
25
+ pbx.parse
26
+
27
+ # finds and returns named native target
28
+ target = pbx.find_item :name => "MyGreatGame", :type => PBXProject::PBXTypes::PBXNativeTarget
29
+
30
+ # create new shell script
31
+ scrt = PBXProject::PBXTypes::PBXShellScriptBuildPhase :shellPath => '/bin/sh',
32
+ :shellScript => "\"echo 'Hello world!' > foo.log\""
33
+
34
+ # add it to target's build phase (by default to last item)
35
+ target.add_build_phase scrt
36
+
37
+ # save new project.pbxproj
38
+ pbx.write_to :file => 'path/to/project.pbxproj'
39
+
40
+
41
+ Contributing to pbxproject
42
+ --------------------------
43
+
44
+ * Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet
45
+ * Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it
46
+ * Fork the project
47
+ * Start a feature/bugfix branch
48
+ * Commit and push until you are happy with your contribution
49
+ * Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
50
+ * Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
51
+
52
+ Copyright
53
+ ---------
54
+
55
+ Copyright (c) 2011 Mikko Kokkonen. See LICENSE.txt for
56
+ further details.
57
+
data/Rakefile CHANGED
@@ -24,6 +24,7 @@ Jeweler::Tasks.new do |gem|
24
24
  # and development dependencies are only needed for development (ie running rake tasks, tests, etc)
25
25
  # gem.add_runtime_dependency 'jabber4r', '> 0.1'
26
26
  # gem.add_development_dependency 'rspec', '> 1.2.3'
27
+ gem.requirements << 'thor, if CLI wanted'
27
28
  end
28
29
  Jeweler::RubygemsDotOrgTasks.new
29
30
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.0
1
+ 0.1.1
@@ -7,35 +7,35 @@
7
7
  objects = {
8
8
 
9
9
  /* Begin PBXBuildFile section */
10
- C0D293A3135FD66E001979A0 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C0D293A2135FD66E001979A0 /* UIKit.framework */; };
11
- C0D293A5135FD66E001979A0 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C0D293A4135FD66E001979A0 /* Foundation.framework */; };
12
- C0D293A7135FD66E001979A0 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C0D293A6135FD66E001979A0 /* CoreGraphics.framework */; };
13
- C0D293AD135FD66E001979A0 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = C0D293AB135FD66E001979A0 /* InfoPlist.strings */; };
14
- C0D293B0135FD66E001979A0 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = C0D293AF135FD66E001979A0 /* main.m */; };
15
- C0D293B3135FD66E001979A0 /* FooAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = C0D293B2135FD66E001979A0 /* FooAppDelegate.m */; };
16
- C0D293B7135FD66F001979A0 /* FooAppDelegate_iPhone.m in Sources */ = {isa = PBXBuildFile; fileRef = C0D293B6135FD66F001979A0 /* FooAppDelegate_iPhone.m */; };
17
- C0D293BA135FD66F001979A0 /* MainWindow_iPhone.xib in Resources */ = {isa = PBXBuildFile; fileRef = C0D293B8135FD66F001979A0 /* MainWindow_iPhone.xib */; };
18
- C0D293BE135FD66F001979A0 /* FooAppDelegate_iPad.m in Sources */ = {isa = PBXBuildFile; fileRef = C0D293BD135FD66F001979A0 /* FooAppDelegate_iPad.m */; };
19
- C0D293C1135FD66F001979A0 /* MainWindow_iPad.xib in Resources */ = {isa = PBXBuildFile; fileRef = C0D293BF135FD66F001979A0 /* MainWindow_iPad.xib */; };
10
+ C0D293A3135FD66E001979A0 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C0D293A2135FD66E001979A0 /* UIKit.framework */; };
11
+ C0D293A5135FD66E001979A0 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C0D293A4135FD66E001979A0 /* Foundation.framework */; };
12
+ C0D293A7135FD66E001979A0 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C0D293A6135FD66E001979A0 /* CoreGraphics.framework */; };
13
+ C0D293AD135FD66E001979A0 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = C0D293AB135FD66E001979A0 /* InfoPlist.strings */; };
14
+ C0D293B0135FD66E001979A0 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = C0D293AF135FD66E001979A0 /* main.m */; };
15
+ C0D293B3135FD66E001979A0 /* FooAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = C0D293B2135FD66E001979A0 /* FooAppDelegate.m */; };
16
+ C0D293B7135FD66F001979A0 /* FooAppDelegate_iPhone.m in Sources */ = {isa = PBXBuildFile; fileRef = C0D293B6135FD66F001979A0 /* FooAppDelegate_iPhone.m */; };
17
+ C0D293BA135FD66F001979A0 /* MainWindow_iPhone.xib in Resources */ = {isa = PBXBuildFile; fileRef = C0D293B8135FD66F001979A0 /* MainWindow_iPhone.xib */; };
18
+ C0D293BE135FD66F001979A0 /* FooAppDelegate_iPad.m in Sources */ = {isa = PBXBuildFile; fileRef = C0D293BD135FD66F001979A0 /* FooAppDelegate_iPad.m */; };
19
+ C0D293C1135FD66F001979A0 /* MainWindow_iPad.xib in Resources */ = {isa = PBXBuildFile; fileRef = C0D293BF135FD66F001979A0 /* MainWindow_iPad.xib */; };
20
20
  /* End PBXBuildFile section */
21
21
 
22
22
  /* Begin PBXFileReference section */
23
- C0D2939E135FD66E001979A0 /* Foo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Foo.app; sourceTree = BUILT_PRODUCTS_DIR; };
24
- C0D293A2135FD66E001979A0 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; };
25
- C0D293A4135FD66E001979A0 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
26
- C0D293A6135FD66E001979A0 /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; };
27
- C0D293AA135FD66E001979A0 /* Foo-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "Foo-Info.plist"; sourceTree = "<group>"; };
28
- C0D293AC135FD66E001979A0 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = "<group>"; };
29
- C0D293AE135FD66E001979A0 /* Foo-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Foo-Prefix.pch"; sourceTree = "<group>"; };
30
- C0D293AF135FD66E001979A0 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
31
- C0D293B1135FD66E001979A0 /* FooAppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = FooAppDelegate.h; sourceTree = "<group>"; };
32
- C0D293B2135FD66E001979A0 /* FooAppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = FooAppDelegate.m; sourceTree = "<group>"; };
33
- C0D293B5135FD66F001979A0 /* FooAppDelegate_iPhone.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = FooAppDelegate_iPhone.h; path = iPhone/FooAppDelegate_iPhone.h; sourceTree = "<group>"; };
34
- C0D293B6135FD66F001979A0 /* FooAppDelegate_iPhone.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = FooAppDelegate_iPhone.m; path = iPhone/FooAppDelegate_iPhone.m; sourceTree = "<group>"; };
35
- C0D293B9135FD66F001979A0 /* en */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = en; path = iPhone/en.lproj/MainWindow_iPhone.xib; sourceTree = "<group>"; };
36
- C0D293BC135FD66F001979A0 /* FooAppDelegate_iPad.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = FooAppDelegate_iPad.h; path = iPad/FooAppDelegate_iPad.h; sourceTree = "<group>"; };
37
- C0D293BD135FD66F001979A0 /* FooAppDelegate_iPad.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = FooAppDelegate_iPad.m; path = iPad/FooAppDelegate_iPad.m; sourceTree = "<group>"; };
38
- C0D293C0135FD66F001979A0 /* en */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = en; path = iPad/en.lproj/MainWindow_iPad.xib; sourceTree = "<group>"; };
23
+ C0D2939E135FD66E001979A0 /* Foo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Foo.app; sourceTree = BUILT_PRODUCTS_DIR; };
24
+ C0D293A2135FD66E001979A0 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; };
25
+ C0D293A4135FD66E001979A0 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
26
+ C0D293A6135FD66E001979A0 /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; };
27
+ C0D293AA135FD66E001979A0 /* Foo-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "Foo-Info.plist"; sourceTree = "<group>"; };
28
+ C0D293AC135FD66E001979A0 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = "<group>"; };
29
+ C0D293AE135FD66E001979A0 /* Foo-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Foo-Prefix.pch"; sourceTree = "<group>"; };
30
+ C0D293AF135FD66E001979A0 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
31
+ C0D293B1135FD66E001979A0 /* FooAppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = FooAppDelegate.h; sourceTree = "<group>"; };
32
+ C0D293B2135FD66E001979A0 /* FooAppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = FooAppDelegate.m; sourceTree = "<group>"; };
33
+ C0D293B5135FD66F001979A0 /* FooAppDelegate_iPhone.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = FooAppDelegate_iPhone.h; path = iPhone/FooAppDelegate_iPhone.h; sourceTree = "<group>"; };
34
+ C0D293B6135FD66F001979A0 /* FooAppDelegate_iPhone.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = FooAppDelegate_iPhone.m; path = iPhone/FooAppDelegate_iPhone.m; sourceTree = "<group>"; };
35
+ C0D293B9135FD66F001979A0 /* en */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = en; path = iPhone/en.lproj/MainWindow_iPhone.xib; sourceTree = "<group>"; };
36
+ C0D293BC135FD66F001979A0 /* FooAppDelegate_iPad.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = FooAppDelegate_iPad.h; path = iPad/FooAppDelegate_iPad.h; sourceTree = "<group>"; };
37
+ C0D293BD135FD66F001979A0 /* FooAppDelegate_iPad.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = FooAppDelegate_iPad.m; path = iPad/FooAppDelegate_iPad.m; sourceTree = "<group>"; };
38
+ C0D293C0135FD66F001979A0 /* en */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = en; path = iPad/en.lproj/MainWindow_iPad.xib; sourceTree = "<group>"; };
39
39
  /* End PBXFileReference section */
40
40
 
41
41
  /* Begin PBXFrameworksBuildPhase section */
@@ -250,9 +250,20 @@ module PBXProject
250
250
 
251
251
  pbx += "\t};\n"
252
252
  pbx += "\trootObject = %s;\n" % @rootObject.to_pbx
253
- pbx += "}"
253
+ pbx += "}\n"
254
254
 
255
255
  pbx
256
256
  end
257
+
258
+ def write_to args = {}
259
+ # Get our serialized format first
260
+ pbx = self.to_pbx
261
+
262
+ # Open file
263
+ File.open(args[:file], 'w') {|f| f.write(pbx) }
264
+
265
+ args[:file]
266
+ end
267
+
257
268
  end
258
269
  end
data/pbxproject.gemspec CHANGED
@@ -5,18 +5,18 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{pbxproject}
8
- s.version = "0.1.0"
8
+ s.version = "0.1.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Mikko Kokkonen"]
12
- s.date = %q{2011-04-22}
12
+ s.date = %q{2011-04-23}
13
13
  s.default_executable = %q{pbxproject}
14
14
  s.description = %q{makes managing XCode 4 project files as easy as modifying ruby classes.}
15
15
  s.email = %q{mikko.kokkonen@me.com}
16
16
  s.executables = ["pbxproject"]
17
17
  s.extra_rdoc_files = [
18
18
  "LICENSE.txt",
19
- "README.rdoc"
19
+ "README.md"
20
20
  ]
21
21
  s.files = [
22
22
  ".document",
@@ -24,11 +24,10 @@ Gem::Specification.new do |s|
24
24
  "Gemfile",
25
25
  "Gemfile.lock",
26
26
  "LICENSE.txt",
27
- "README.rdoc",
27
+ "README.md",
28
28
  "Rakefile",
29
29
  "VERSION",
30
30
  "bin/pbxproject",
31
- "data.pbxproj",
32
31
  "examples/project.pbxproj",
33
32
  "examples/project.pbxproj.new",
34
33
  "lib/pbxproject.rb",
@@ -42,6 +41,7 @@ Gem::Specification.new do |s|
42
41
  s.homepage = %q{http://github.com/mikian/pbxproject}
43
42
  s.licenses = ["MIT"]
44
43
  s.require_paths = ["lib"]
44
+ s.requirements = ["thor, if CLI wanted"]
45
45
  s.rubygems_version = %q{1.6.2}
46
46
  s.summary = %q{XCode 4 project management}
47
47
  s.test_files = [
@@ -16,7 +16,7 @@ describe "parsing" do
16
16
  @pbx = PBXProject::PBXProject.new :file => 'examples/project.pbxproj'
17
17
  end
18
18
 
19
- it "should be succesful" do
19
+ it "should be successful" do
20
20
  @pbx.parse.should eql true
21
21
  end
22
22
 
@@ -184,4 +184,29 @@ describe "PBX format" do
184
184
  pbx = @pbx.to_pbx
185
185
  # pbx.should == @expected.join("")
186
186
  end
187
+ end
188
+
189
+ describe "save" do
190
+ before :all do
191
+ @expected = []
192
+ File.open('examples/project.pbxproj', 'r').each_line do |line|
193
+ @expected.push line.chomp!
194
+ end
195
+ end
196
+
197
+ before :each do
198
+ @pbx = PBXProject::PBXProject.new :file => 'examples/project.pbxproj'
199
+ @pbx.parse
200
+ end
201
+
202
+ it "to file" do
203
+ @pbx.write_to :file => 'examples/project.pbxproj.new'
204
+
205
+ wrote = []
206
+ File.open('examples/project.pbxproj.new', 'r').each_line do |line|
207
+ wrote.push line.chomp!
208
+ end
209
+
210
+ wrote.should == @expected
211
+ end
187
212
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: pbxproject
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.1.0
5
+ version: 0.1.1
6
6
  platform: ruby
7
7
  authors:
8
8
  - Mikko Kokkonen
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-04-22 00:00:00 +09:00
13
+ date: 2011-04-23 00:00:00 +09:00
14
14
  default_executable: pbxproject
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
@@ -65,18 +65,17 @@ extensions: []
65
65
 
66
66
  extra_rdoc_files:
67
67
  - LICENSE.txt
68
- - README.rdoc
68
+ - README.md
69
69
  files:
70
70
  - .document
71
71
  - .rspec
72
72
  - Gemfile
73
73
  - Gemfile.lock
74
74
  - LICENSE.txt
75
- - README.rdoc
75
+ - README.md
76
76
  - Rakefile
77
77
  - VERSION
78
78
  - bin/pbxproject
79
- - data.pbxproj
80
79
  - examples/project.pbxproj
81
80
  - examples/project.pbxproj.new
82
81
  - lib/pbxproject.rb
@@ -100,7 +99,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
100
99
  requirements:
101
100
  - - ">="
102
101
  - !ruby/object:Gem::Version
103
- hash: -1983683403285540798
102
+ hash: 1472617555242116731
104
103
  segments:
105
104
  - 0
106
105
  version: "0"
@@ -110,8 +109,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
110
109
  - - ">="
111
110
  - !ruby/object:Gem::Version
112
111
  version: "0"
113
- requirements: []
114
-
112
+ requirements:
113
+ - thor, if CLI wanted
115
114
  rubyforge_project:
116
115
  rubygems_version: 1.6.2
117
116
  signing_key:
data/README.rdoc DELETED
@@ -1,19 +0,0 @@
1
- = pbxproject
2
-
3
- Description goes here.
4
-
5
- == Contributing to pbxproject
6
-
7
- * Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet
8
- * Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it
9
- * Fork the project
10
- * Start a feature/bugfix branch
11
- * Commit and push until you are happy with your contribution
12
- * Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
13
- * Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
14
-
15
- == Copyright
16
-
17
- Copyright (c) 2011 Mikko Kokkonen. See LICENSE.txt for
18
- further details.
19
-
data/data.pbxproj DELETED
@@ -1,337 +0,0 @@
1
- // !$*UTF8*$!
2
- {
3
- archiveVersion = 1;
4
- classes = {
5
- };
6
- objectVersion = 46;
7
- objects = {
8
-
9
- /* Begin PBXBuildFile section */
10
- C0D293A3135FD66E001979A0 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C0D293A2135FD66E001979A0 /* UIKit.framework */; };
11
- C0D293A5135FD66E001979A0 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C0D293A4135FD66E001979A0 /* Foundation.framework */; };
12
- C0D293A7135FD66E001979A0 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C0D293A6135FD66E001979A0 /* CoreGraphics.framework */; };
13
- C0D293AD135FD66E001979A0 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = C0D293AB135FD66E001979A0 /* InfoPlist.strings */; };
14
- C0D293B0135FD66E001979A0 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = C0D293AF135FD66E001979A0 /* main.m */; };
15
- C0D293B3135FD66E001979A0 /* FooAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = C0D293B2135FD66E001979A0 /* FooAppDelegate.m */; };
16
- C0D293B7135FD66F001979A0 /* FooAppDelegate_iPhone.m in Sources */ = {isa = PBXBuildFile; fileRef = C0D293B6135FD66F001979A0 /* FooAppDelegate_iPhone.m */; };
17
- C0D293BA135FD66F001979A0 /* MainWindow_iPhone.xib in Resources */ = {isa = PBXBuildFile; fileRef = C0D293B8135FD66F001979A0 /* MainWindow_iPhone.xib */; };
18
- C0D293BE135FD66F001979A0 /* FooAppDelegate_iPad.m in Sources */ = {isa = PBXBuildFile; fileRef = C0D293BD135FD66F001979A0 /* FooAppDelegate_iPad.m */; };
19
- C0D293C1135FD66F001979A0 /* MainWindow_iPad.xib in Resources */ = {isa = PBXBuildFile; fileRef = C0D293BF135FD66F001979A0 /* MainWindow_iPad.xib */; };
20
- /* End PBXBuildFile section */
21
-
22
- /* Begin PBXFileReference section */
23
- C0D2939E135FD66E001979A0 /* Foo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Foo.app; sourceTree = BUILT_PRODUCTS_DIR; };
24
- C0D293A2135FD66E001979A0 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; };
25
- C0D293A4135FD66E001979A0 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
26
- C0D293A6135FD66E001979A0 /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; };
27
- C0D293AA135FD66E001979A0 /* Foo-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "Foo-Info.plist"; sourceTree = "<group>"; };
28
- C0D293AC135FD66E001979A0 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = "<group>"; };
29
- C0D293AE135FD66E001979A0 /* Foo-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Foo-Prefix.pch"; sourceTree = "<group>"; };
30
- C0D293AF135FD66E001979A0 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
31
- C0D293B1135FD66E001979A0 /* FooAppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = FooAppDelegate.h; sourceTree = "<group>"; };
32
- C0D293B2135FD66E001979A0 /* FooAppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = FooAppDelegate.m; sourceTree = "<group>"; };
33
- C0D293B5135FD66F001979A0 /* FooAppDelegate_iPhone.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = FooAppDelegate_iPhone.h; path = iPhone/FooAppDelegate_iPhone.h; sourceTree = "<group>"; };
34
- C0D293B6135FD66F001979A0 /* FooAppDelegate_iPhone.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = FooAppDelegate_iPhone.m; path = iPhone/FooAppDelegate_iPhone.m; sourceTree = "<group>"; };
35
- C0D293B9135FD66F001979A0 /* en */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = en; path = iPhone/en.lproj/MainWindow_iPhone.xib; sourceTree = "<group>"; };
36
- C0D293BC135FD66F001979A0 /* FooAppDelegate_iPad.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = FooAppDelegate_iPad.h; path = iPad/FooAppDelegate_iPad.h; sourceTree = "<group>"; };
37
- C0D293BD135FD66F001979A0 /* FooAppDelegate_iPad.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = FooAppDelegate_iPad.m; path = iPad/FooAppDelegate_iPad.m; sourceTree = "<group>"; };
38
- C0D293C0135FD66F001979A0 /* en */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = en; path = iPad/en.lproj/MainWindow_iPad.xib; sourceTree = "<group>"; };
39
- /* End PBXFileReference section */
40
-
41
- /* Begin PBXFrameworksBuildPhase section */
42
- C0D2939B135FD66E001979A0 /* Frameworks */ = {
43
- isa = PBXFrameworksBuildPhase;
44
- buildActionMask = 2147483647;
45
- files = (
46
- C0D293A3135FD66E001979A0 /* UIKit.framework in Frameworks */,
47
- C0D293A5135FD66E001979A0 /* Foundation.framework in Frameworks */,
48
- C0D293A7135FD66E001979A0 /* CoreGraphics.framework in Frameworks */,
49
- );
50
- runOnlyForDeploymentPostprocessing = 0;
51
- };
52
- /* End PBXFrameworksBuildPhase section */
53
-
54
- /* Begin PBXGroup section */
55
- C0D29393135FD66E001979A0 = {
56
- isa = PBXGroup;
57
- children = (
58
- C0D293A8135FD66E001979A0 /* Foo */,
59
- C0D293A1135FD66E001979A0 /* Frameworks */,
60
- C0D2939F135FD66E001979A0 /* Products */,
61
- );
62
- sourceTree = "<group>";
63
- };
64
- C0D2939F135FD66E001979A0 /* Products */ = {
65
- isa = PBXGroup;
66
- children = (
67
- C0D2939E135FD66E001979A0 /* Foo.app */,
68
- );
69
- name = Products;
70
- sourceTree = "<group>";
71
- };
72
- C0D293A1135FD66E001979A0 /* Frameworks */ = {
73
- isa = PBXGroup;
74
- children = (
75
- C0D293A2135FD66E001979A0 /* UIKit.framework */,
76
- C0D293A4135FD66E001979A0 /* Foundation.framework */,
77
- C0D293A6135FD66E001979A0 /* CoreGraphics.framework */,
78
- );
79
- name = Frameworks;
80
- sourceTree = "<group>";
81
- };
82
- C0D293A8135FD66E001979A0 /* Foo */ = {
83
- isa = PBXGroup;
84
- children = (
85
- C0D293B1135FD66E001979A0 /* FooAppDelegate.h */,
86
- C0D293B2135FD66E001979A0 /* FooAppDelegate.m */,
87
- C0D293B4135FD66F001979A0 /* iPhone */,
88
- C0D293BB135FD66F001979A0 /* iPad */,
89
- C0D293A9135FD66E001979A0 /* Supporting Files */,
90
- );
91
- path = Foo;
92
- sourceTree = "<group>";
93
- };
94
- C0D293A9135FD66E001979A0 /* Supporting Files */ = {
95
- isa = PBXGroup;
96
- children = (
97
- C0D293AA135FD66E001979A0 /* Foo-Info.plist */,
98
- C0D293AB135FD66E001979A0 /* InfoPlist.strings */,
99
- C0D293AE135FD66E001979A0 /* Foo-Prefix.pch */,
100
- C0D293AF135FD66E001979A0 /* main.m */,
101
- );
102
- name = "Supporting Files";
103
- sourceTree = "<group>";
104
- };
105
- C0D293B4135FD66F001979A0 /* iPhone */ = {
106
- isa = PBXGroup;
107
- children = (
108
- C0D293B5135FD66F001979A0 /* FooAppDelegate_iPhone.h */,
109
- C0D293B6135FD66F001979A0 /* FooAppDelegate_iPhone.m */,
110
- C0D293B8135FD66F001979A0 /* MainWindow_iPhone.xib */,
111
- );
112
- name = iPhone;
113
- sourceTree = "<group>";
114
- };
115
- C0D293BB135FD66F001979A0 /* iPad */ = {
116
- isa = PBXGroup;
117
- children = (
118
- C0D293BC135FD66F001979A0 /* FooAppDelegate_iPad.h */,
119
- C0D293BD135FD66F001979A0 /* FooAppDelegate_iPad.m */,
120
- C0D293BF135FD66F001979A0 /* MainWindow_iPad.xib */,
121
- );
122
- name = iPad;
123
- sourceTree = "<group>";
124
- };
125
- /* End PBXGroup section */
126
-
127
- /* Begin PBXNativeTarget section */
128
- C0D2939D135FD66E001979A0 /* Foo */ = {
129
- isa = PBXNativeTarget;
130
- buildConfigurationList = C0D293C4135FD66F001979A0 /* Build configuration list for PBXNativeTarget "Foo" */;
131
- buildPhases = (
132
- C0D293C7135FD6D7001979A0 /* ShellScript */,
133
- C0D2939A135FD66E001979A0 /* Sources */,
134
- C0D2939B135FD66E001979A0 /* Frameworks */,
135
- C0D2939C135FD66E001979A0 /* Resources */,
136
- );
137
- buildRules = (
138
- );
139
- dependencies = (
140
- );
141
- name = Foo;
142
- productName = Foo;
143
- productReference = C0D2939E135FD66E001979A0 /* Foo.app */;
144
- productType = "com.apple.product-type.application";
145
- };
146
- /* End PBXNativeTarget section */
147
-
148
- /* Begin PBXProject section */
149
- C0D29395135FD66E001979A0 /* Project object */ = {
150
- isa = PBXProject;
151
- attributes = {
152
- ORGANIZATIONNAME = "Owl Forestry";
153
- };
154
- buildConfigurationList = C0D29398135FD66E001979A0 /* Build configuration list for PBXProject "Foo" */;
155
- compatibilityVersion = "Xcode 3.2";
156
- developmentRegion = English;
157
- hasScannedForEncodings = 0;
158
- knownRegions = (
159
- en,
160
- );
161
- mainGroup = C0D29393135FD66E001979A0;
162
- productRefGroup = C0D2939F135FD66E001979A0 /* Products */;
163
- projectDirPath = "";
164
- projectRoot = "";
165
- targets = (
166
- C0D2939D135FD66E001979A0 /* Foo */,
167
- );
168
- };
169
- /* End PBXProject section */
170
-
171
- /* Begin PBXResourcesBuildPhase section */
172
- C0D2939C135FD66E001979A0 /* Resources */ = {
173
- isa = PBXResourcesBuildPhase;
174
- buildActionMask = 2147483647;
175
- files = (
176
- C0D293AD135FD66E001979A0 /* InfoPlist.strings in Resources */,
177
- C0D293BA135FD66F001979A0 /* MainWindow_iPhone.xib in Resources */,
178
- C0D293C1135FD66F001979A0 /* MainWindow_iPad.xib in Resources */,
179
- );
180
- runOnlyForDeploymentPostprocessing = 0;
181
- };
182
- /* End PBXResourcesBuildPhase section */
183
-
184
- /* Begin PBXShellScriptBuildPhase section */
185
- C0D293C7135FD6D7001979A0 /* ShellScript */ = {
186
- isa = PBXShellScriptBuildPhase;
187
- buildActionMask = 2147483647;
188
- files = (
189
- );
190
- inputPaths = (
191
- );
192
- outputPaths = (
193
- );
194
- runOnlyForDeploymentPostprocessing = 0;
195
- shellPath = /bin/sh;
196
- shellScript = "rake build:prepare";
197
- showEnvVarsInLog = 0;
198
- };
199
- /* End PBXShellScriptBuildPhase section */
200
-
201
- /* Begin PBXSourcesBuildPhase section */
202
- C0D2939A135FD66E001979A0 /* Sources */ = {
203
- isa = PBXSourcesBuildPhase;
204
- buildActionMask = 2147483647;
205
- files = (
206
- C0D293B0135FD66E001979A0 /* main.m in Sources */,
207
- C0D293B3135FD66E001979A0 /* FooAppDelegate.m in Sources */,
208
- C0D293B7135FD66F001979A0 /* FooAppDelegate_iPhone.m in Sources */,
209
- C0D293BE135FD66F001979A0 /* FooAppDelegate_iPad.m in Sources */,
210
- );
211
- runOnlyForDeploymentPostprocessing = 0;
212
- };
213
- /* End PBXSourcesBuildPhase section */
214
-
215
- /* Begin PBXVariantGroup section */
216
- C0D293AB135FD66E001979A0 /* InfoPlist.strings */ = {
217
- isa = PBXVariantGroup;
218
- children = (
219
- C0D293AC135FD66E001979A0 /* en */,
220
- );
221
- name = InfoPlist.strings;
222
- sourceTree = "<group>";
223
- };
224
- C0D293B8135FD66F001979A0 /* MainWindow_iPhone.xib */ = {
225
- isa = PBXVariantGroup;
226
- children = (
227
- C0D293B9135FD66F001979A0 /* en */,
228
- );
229
- name = MainWindow_iPhone.xib;
230
- sourceTree = "<group>";
231
- };
232
- C0D293BF135FD66F001979A0 /* MainWindow_iPad.xib */ = {
233
- isa = PBXVariantGroup;
234
- children = (
235
- C0D293C0135FD66F001979A0 /* en */,
236
- );
237
- name = MainWindow_iPad.xib;
238
- sourceTree = "<group>";
239
- };
240
- /* End PBXVariantGroup section */
241
-
242
- /* Begin XCBuildConfiguration section */
243
- C0D293C2135FD66F001979A0 /* Debug */ = {
244
- isa = XCBuildConfiguration;
245
- buildSettings = {
246
- ARCHS = "$(ARCHS_STANDARD_32_BIT)";
247
- "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
248
- GCC_C_LANGUAGE_STANDARD = gnu99;
249
- GCC_OPTIMIZATION_LEVEL = 0;
250
- GCC_PREPROCESSOR_DEFINITIONS = DEBUG;
251
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
252
- GCC_VERSION = com.apple.compilers.llvmgcc42;
253
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
254
- GCC_WARN_UNUSED_VARIABLE = YES;
255
- IPHONEOS_DEPLOYMENT_TARGET = 4.3;
256
- LIBRARY_SEARCH_PATHS = (
257
- "$(inherited)",
258
- "\"$(SRCROOT)\"",
259
- "\"$(SRCROOT)/iOS/Ads\"",
260
- "\"$(SRCROOT)/iOS/Ads/Google AdMob\"",
261
- "\"$(SRCROOT)/iOS/Ads/Greystripe\"",
262
- "\"$(SRCROOT)/iOS/libs/FlurryLib\"",
263
- "\"$(SRCROOT)/iOS/Ads/InMobi iOS SDK Bundle\"",
264
- );
265
- SDKROOT = iphoneos;
266
- TARGETED_DEVICE_FAMILY = "1,2";
267
- };
268
- name = Debug;
269
- };
270
- C0D293C3135FD66F001979A0 /* Release */ = {
271
- isa = XCBuildConfiguration;
272
- buildSettings = {
273
- ARCHS = "$(ARCHS_STANDARD_32_BIT)";
274
- "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
275
- GCC_C_LANGUAGE_STANDARD = gnu99;
276
- GCC_VERSION = com.apple.compilers.llvmgcc42;
277
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
278
- GCC_WARN_UNUSED_VARIABLE = YES;
279
- IPHONEOS_DEPLOYMENT_TARGET = 4.3;
280
- OTHER_CFLAGS = "-DNS_BLOCK_ASSERTIONS=1";
281
- SDKROOT = iphoneos;
282
- TARGETED_DEVICE_FAMILY = "1,2";
283
- };
284
- name = Release;
285
- };
286
- C0D293C5135FD66F001979A0 /* Debug */ = {
287
- isa = XCBuildConfiguration;
288
- buildSettings = {
289
- ALWAYS_SEARCH_USER_PATHS = NO;
290
- COPY_PHASE_STRIP = NO;
291
- GCC_DYNAMIC_NO_PIC = NO;
292
- GCC_PRECOMPILE_PREFIX_HEADER = YES;
293
- GCC_PREFIX_HEADER = "Foo/Foo-Prefix.pch";
294
- INFOPLIST_FILE = "Foo/Foo-Info.plist";
295
- PRODUCT_NAME = "$(TARGET_NAME)";
296
- WRAPPER_EXTENSION = app;
297
- };
298
- name = Debug;
299
- };
300
- C0D293C6135FD66F001979A0 /* Release */ = {
301
- isa = XCBuildConfiguration;
302
- buildSettings = {
303
- ALWAYS_SEARCH_USER_PATHS = NO;
304
- COPY_PHASE_STRIP = YES;
305
- GCC_PRECOMPILE_PREFIX_HEADER = YES;
306
- GCC_PREFIX_HEADER = "Foo/Foo-Prefix.pch";
307
- INFOPLIST_FILE = "Foo/Foo-Info.plist";
308
- PRODUCT_NAME = "$(TARGET_NAME)";
309
- VALIDATE_PRODUCT = YES;
310
- WRAPPER_EXTENSION = app;
311
- };
312
- name = Release;
313
- };
314
- /* End XCBuildConfiguration section */
315
-
316
- /* Begin XCConfigurationList section */
317
- C0D29398135FD66E001979A0 /* Build configuration list for PBXProject "Foo" */ = {
318
- isa = XCConfigurationList;
319
- buildConfigurations = (
320
- C0D293C2135FD66F001979A0 /* Debug */,
321
- C0D293C3135FD66F001979A0 /* Release */,
322
- );
323
- defaultConfigurationIsVisible = 0;
324
- defaultConfigurationName = Release;
325
- };
326
- C0D293C4135FD66F001979A0 /* Build configuration list for PBXNativeTarget "Foo" */ = {
327
- isa = XCConfigurationList;
328
- buildConfigurations = (
329
- C0D293C5135FD66F001979A0 /* Debug */,
330
- C0D293C6135FD66F001979A0 /* Release */,
331
- );
332
- defaultConfigurationIsVisible = 0;
333
- };
334
- /* End XCConfigurationList section */
335
- };
336
- rootObject = C0D29395135FD66E001979A0 /* Project object */;
337
- }