xcodeproject_swift 0.3.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (61) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +30 -0
  3. data/.rspec +2 -0
  4. data/.rubocop.yml +37 -0
  5. data/.travis.yml +13 -0
  6. data/.yardopts +7 -0
  7. data/Gemfile +4 -0
  8. data/LICENSE +22 -0
  9. data/README.md +192 -0
  10. data/Rakefile +11 -0
  11. data/lib/xcodeproject.rb +2 -0
  12. data/lib/xcodeproject/build_phase_node.rb +111 -0
  13. data/lib/xcodeproject/data.rb +89 -0
  14. data/lib/xcodeproject/exceptions.rb +29 -0
  15. data/lib/xcodeproject/extend/array.rb +32 -0
  16. data/lib/xcodeproject/extend/hash.rb +35 -0
  17. data/lib/xcodeproject/extend/string.rb +31 -0
  18. data/lib/xcodeproject/file_node.rb +86 -0
  19. data/lib/xcodeproject/formatter.rb +47 -0
  20. data/lib/xcodeproject/node.rb +42 -0
  21. data/lib/xcodeproject/pbx_build_file.rb +63 -0
  22. data/lib/xcodeproject/pbx_file_reference.rb +82 -0
  23. data/lib/xcodeproject/pbx_group.rb +204 -0
  24. data/lib/xcodeproject/pbx_native_target.rb +94 -0
  25. data/lib/xcodeproject/pbx_project.rb +57 -0
  26. data/lib/xcodeproject/project.rb +72 -0
  27. data/lib/xcodeproject/root_node.rb +127 -0
  28. data/lib/xcodeproject/tasks/build_task.rb +59 -0
  29. data/lib/xcodeproject/uuid_generator.rb +37 -0
  30. data/lib/xcodeproject/version.rb +27 -0
  31. data/lib/xcodeproject/xc_build_configuration.rb +98 -0
  32. data/lib/xcodeproject/xc_configuration_list.rb +47 -0
  33. data/resources/example/dir1a/dir2a/dir3a/dir4a/file5a-a.h +1 -0
  34. data/resources/example/dir1a/dir2a/dir3a/dir4a/file5a-a.m +1 -0
  35. data/resources/example/dir1a/dir2a/dir3a/dir4a/file5a-r.h +1 -0
  36. data/resources/example/dir1a/dir2a/dir3a/dir4a/file5a-r.m +1 -0
  37. data/resources/example/dir1b/dir2b/file3b.m +0 -0
  38. data/resources/example/dir1b/file2b.m +0 -0
  39. data/resources/example/dir1c/file2c.h +0 -0
  40. data/resources/example/dir1c/file2c.m +0 -0
  41. data/resources/example/example.xcodeproj/project.pbxproj +324 -0
  42. data/resources/example/example/AppDelegate.h +7 -0
  43. data/resources/example/example/AppDelegate.m +49 -0
  44. data/resources/example/example/en.lproj/InfoPlist.strings +2 -0
  45. data/resources/example/example/example-Info.plist +45 -0
  46. data/resources/example/example/example-Prefix.pch +14 -0
  47. data/resources/example/example/main.m +10 -0
  48. data/spec/build_phase_node_spec.rb +103 -0
  49. data/spec/file_node_spec.rb +58 -0
  50. data/spec/pbx_build_file_spec.rb +26 -0
  51. data/spec/pbx_file_reference_spec.rb +42 -0
  52. data/spec/pbx_group_spec.rb +360 -0
  53. data/spec/pbx_native_target_spec.rb +62 -0
  54. data/spec/pbx_project_spec.rb +39 -0
  55. data/spec/project_spec.rb +86 -0
  56. data/spec/spec_helper.rb +67 -0
  57. data/spec/support/shared_examples/file_node_shared_examples.rb +27 -0
  58. data/spec/xc_build_configuration_spec.rb +114 -0
  59. data/spec/xc_configuration_list_spec.rb +23 -0
  60. data/xcodeproject.gemspec +29 -0
  61. metadata +233 -0
@@ -0,0 +1,127 @@
1
+ #--
2
+ # The MIT License
3
+ #
4
+ # Copyright (c) 2012-2014 Andrei Nesterov <ae.nesterov@gmail.com>
5
+ #
6
+ # Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ # of this software and associated documentation files (the "Software"), to
8
+ # deal in the Software without restriction, including without limitation the
9
+ # rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
10
+ # sell copies of the Software, and to permit persons to whom the Software is
11
+ # furnished to do so, subject to the following conditions:
12
+ #
13
+ # The above copyright notice and this permission notice shall be included in
14
+ # all copies or substantial portions of the Software.
15
+ #
16
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21
+ # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
22
+ # IN THE SOFTWARE.
23
+ #++
24
+
25
+ require 'xcodeproject/xc_build_configuration'
26
+ require 'xcodeproject/pbx_native_target'
27
+ require 'xcodeproject/pbx_project'
28
+ require 'xcodeproject/pbx_group'
29
+ require 'xcodeproject/build_phase_node'
30
+ require 'xcodeproject/uuid_generator'
31
+ require 'xcodeproject/exceptions'
32
+ require 'xcodeproject/extend/string'
33
+ require 'xcodeproject/extend/array'
34
+ require 'xcodeproject/extend/hash'
35
+
36
+ module XcodeProject
37
+ class RootNode
38
+ def initialize(data, wd)
39
+ @data = data
40
+
41
+ @wd = Pathname.new(wd)
42
+ @wd = Pathname.new(ENV['PWD']).join(@wd) if @wd.relative?
43
+
44
+ @objects = data['objects']
45
+ @uuid_generator = UUIDGenerator.new
46
+ end
47
+
48
+ def project
49
+ find_object!('PBXProject')
50
+ end
51
+
52
+ def build_files(file_ref_uuid)
53
+ find_objects('PBXBuildFile', 'fileRef' => file_ref_uuid)
54
+ end
55
+
56
+ def object(uuid)
57
+ data = @objects[uuid]
58
+ XcodeProject.const_get(data['isa']).new(self, uuid, data) unless data.nil?
59
+ end
60
+
61
+ def object!(uuid)
62
+ obj = object(uuid)
63
+ raise ParseError, "Object with uuid = #{uuid} not found." if obj.nil?
64
+ obj
65
+ end
66
+
67
+ def select_objects
68
+ objs = @objects.select { |uuid, data| yield uuid, data }
69
+ objs.map { |uuid, _data| object(uuid) }
70
+ end
71
+
72
+ def find_objects(isa, hash = {})
73
+ hash.merge!(Hash['isa', isa])
74
+ select_objects { |_uuid, data| data.values_at(*hash.keys) == hash.values }
75
+ end
76
+
77
+ def find_objects!(isa, hash = {})
78
+ objs = find_objects(isa, hash)
79
+ raise ParseError, "Object with isa = #{isa} and #{hash} not found." if objs.empty?
80
+ objs
81
+ end
82
+
83
+ def find_object(isa, hash = {})
84
+ find_objects(isa, hash).first
85
+ end
86
+
87
+ def find_object!(isa, hash = {})
88
+ obj = find_object(isa, hash)
89
+ raise ParseError if obj.nil?
90
+ obj
91
+ end
92
+
93
+ def find_object2(isa, h1 = {}, h2 = {})
94
+ obj = find_object(isa, h1)
95
+ obj.nil? ? find_object(isa, h2) : obj
96
+ end
97
+
98
+ def find_object2!(isa, h1 = {}, h2 = {})
99
+ obj = find_object2(isa, h1, h2)
100
+ raise ParseError if obj.nil?
101
+ obj
102
+ end
103
+
104
+ def add_object(data)
105
+ @objects.merge!(Hash[uuid = generate_object_uuid, data])
106
+ [uuid, data]
107
+ end
108
+
109
+ def remove_object(uuid)
110
+ @objects.delete(uuid)
111
+ end
112
+
113
+ def absolute_path(path)
114
+ path = Pathname.new(path)
115
+ path = path.absolute? ? path : @wd.join(path)
116
+ path.cleanpath
117
+ end
118
+
119
+ def generate_object_uuid
120
+ @uuid_generator.generate
121
+ end
122
+
123
+ def to_plist(_fmtr = Formatter.new)
124
+ @data.to_plist
125
+ end
126
+ end
127
+ end
@@ -0,0 +1,59 @@
1
+ #--
2
+ # The MIT License
3
+ #
4
+ # Copyright (c) 2012-2014 Andrei Nesterov <ae.nesterov@gmail.com>
5
+ #
6
+ # Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ # of this software and associated documentation files (the "Software"), to
8
+ # deal in the Software without restriction, including without limitation the
9
+ # rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
10
+ # sell copies of the Software, and to permit persons to whom the Software is
11
+ # furnished to do so, subject to the following conditions:
12
+ #
13
+ # The above copyright notice and this permission notice shall be included in
14
+ # all copies or substantial portions of the Software.
15
+ #
16
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21
+ # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
22
+ # IN THE SOFTWARE.
23
+ #++
24
+
25
+ require 'xcodebuild'
26
+
27
+ module XcodeProject
28
+ module Tasks
29
+ class BuildTask < XcodeBuild::Tasks::BuildTask
30
+ attr_accessor :with_build_opts
31
+ attr_accessor :build_to
32
+
33
+ def initialize(project, namespace = nil, &block)
34
+ namespace ||= project.name
35
+ super(namespace, &block)
36
+
37
+ @project_name = project.bundle_path.basename.to_s
38
+ @invoke_from_within = project.bundle_path.dirname
39
+
40
+ @formatter ||= XcodeBuild::Formatters::ProgressFormatter.new
41
+ @with_build_opts ||= []
42
+
43
+ unless @build_to.nil?
44
+ build_tmp_to = Pathname.new(@build_to).join('.tmp')
45
+
46
+ @with_build_opts << %( CONFIGURATION_BUILD_DIR="#{@build_to}" )
47
+ @with_build_opts << %( CONFIGURATION_TEMP_DIR="#{build_tmp_to}" )
48
+ @with_build_opts << %( SYMROOT="#{build_tmp_to}" )
49
+ end
50
+ end
51
+
52
+ private
53
+
54
+ def build_opts
55
+ super + with_build_opts
56
+ end
57
+ end
58
+ end
59
+ end
@@ -0,0 +1,37 @@
1
+ #--
2
+ # The MIT License
3
+ #
4
+ # Copyright (c) 2012-2014 Andrei Nesterov <ae.nesterov@gmail.com>
5
+ #
6
+ # Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ # of this software and associated documentation files (the "Software"), to
8
+ # deal in the Software without restriction, including without limitation the
9
+ # rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
10
+ # sell copies of the Software, and to permit persons to whom the Software is
11
+ # furnished to do so, subject to the following conditions:
12
+ #
13
+ # The above copyright notice and this permission notice shall be included in
14
+ # all copies or substantial portions of the Software.
15
+ #
16
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21
+ # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
22
+ # IN THE SOFTWARE.
23
+ #++
24
+
25
+ require 'uuid'
26
+
27
+ module XcodeProject
28
+ class UUIDGenerator
29
+ def initialize
30
+ @generator = UUID.new
31
+ end
32
+
33
+ def generate
34
+ @generator.generate(:compact).slice(0..23).upcase
35
+ end
36
+ end
37
+ end
@@ -0,0 +1,27 @@
1
+ #--
2
+ # The MIT License
3
+ #
4
+ # Copyright (c) 2012-2014 Andrei Nesterov <ae.nesterov@gmail.com>
5
+ #
6
+ # Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ # of this software and associated documentation files (the "Software"), to
8
+ # deal in the Software without restriction, including without limitation the
9
+ # rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
10
+ # sell copies of the Software, and to permit persons to whom the Software is
11
+ # furnished to do so, subject to the following conditions:
12
+ #
13
+ # The above copyright notice and this permission notice shall be included in
14
+ # all copies or substantial portions of the Software.
15
+ #
16
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21
+ # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
22
+ # IN THE SOFTWARE.
23
+ #++
24
+
25
+ module XcodeProject
26
+ VERSION = '0.3.13'.freeze
27
+ end
@@ -0,0 +1,98 @@
1
+ #--
2
+ # The MIT License
3
+ #
4
+ # Copyright (c) 2012-2014 Andrei Nesterov <ae.nesterov@gmail.com>
5
+ #
6
+ # Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ # of this software and associated documentation files (the "Software"), to
8
+ # deal in the Software without restriction, including without limitation the
9
+ # rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
10
+ # sell copies of the Software, and to permit persons to whom the Software is
11
+ # furnished to do so, subject to the following conditions:
12
+ #
13
+ # The above copyright notice and this permission notice shall be included in
14
+ # all copies or substantial portions of the Software.
15
+ #
16
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21
+ # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
22
+ # IN THE SOFTWARE.
23
+ #++
24
+
25
+ require 'xcodeproject/node'
26
+ require 'rexml/document'
27
+
28
+ module XcodeProject
29
+ class XCBuildConfiguration < Node
30
+ attr_reader :name
31
+ attr_accessor :build_settings
32
+
33
+ def initialize(root, uuid, data)
34
+ super(root, uuid, data)
35
+
36
+ @name = data['name']
37
+ @build_settings = data['buildSettings']
38
+ end
39
+
40
+ def version(type = :major)
41
+ major = read_property('CFBundleShortVersionString')
42
+ minor = read_property('CFBundleVersion')
43
+
44
+ case type
45
+ when :major then major
46
+ when :minor then minor
47
+ when :both then major + '.' + minor
48
+ else raise ArgumentError, 'Wrong argument type, expected :major, :minor or :both.'
49
+ end
50
+ end
51
+
52
+ def change_version(value, type = :major)
53
+ case type
54
+ when :major then write_property('CFBundleShortVersionString', value)
55
+ when :minor then write_property('CFBundleVersion', value)
56
+ else raise ArgumentError, 'Wrong argument type, expected :major or :minor.'
57
+ end
58
+ end
59
+
60
+ def increment_version(type = :major)
61
+ cv = version(type)
62
+ nv = cv.nil? ? '0' : cv.next
63
+
64
+ change_version(nv, type)
65
+ end
66
+
67
+ private
68
+
69
+ def plist_path
70
+ root.absolute_path(build_settings['INFOPLIST_FILE'])
71
+ end
72
+
73
+ def read_property(key)
74
+ file = File.new(plist_path)
75
+ doc = REXML::Document.new(file)
76
+
77
+ doc.elements.each('plist/dict/key') do |e|
78
+ return e.next_element.text if e.text == key
79
+ end
80
+ nil
81
+ end
82
+
83
+ def write_property(key, value)
84
+ file = File.new(plist_path)
85
+ doc = REXML::Document.new(file)
86
+
87
+ doc.elements.each('plist/dict/key') do |e|
88
+ e.next_element.text = value if e.text == key
89
+ end
90
+
91
+ formatter = REXML::Formatters::Default.new
92
+ File.open(plist_path, 'w') do |data|
93
+ formatter.write(doc, data)
94
+ end
95
+ nil
96
+ end
97
+ end
98
+ end
@@ -0,0 +1,47 @@
1
+ #--
2
+ # The MIT License
3
+ #
4
+ # Copyright (c) 2012-2014 Andrei Nesterov <ae.nesterov@gmail.com>
5
+ #
6
+ # Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ # of this software and associated documentation files (the "Software"), to
8
+ # deal in the Software without restriction, including without limitation the
9
+ # rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
10
+ # sell copies of the Software, and to permit persons to whom the Software is
11
+ # furnished to do so, subject to the following conditions:
12
+ #
13
+ # The above copyright notice and this permission notice shall be included in
14
+ # all copies or substantial portions of the Software.
15
+ #
16
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21
+ # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
22
+ # IN THE SOFTWARE.
23
+ #++
24
+
25
+ require 'xcodeproject/node'
26
+
27
+ module XcodeProject
28
+ class XCConfigurationList < Node
29
+ attr_reader :default_configuration_name
30
+ attr_reader :default_configuration_is_visible
31
+
32
+ def initialize(root, uuid, data)
33
+ super(root, uuid, data)
34
+
35
+ @default_configuration_name = data['defaultConfigurationName']
36
+ @default_configuration_is_visible = data['defaultConfigurationIsVisible']
37
+ end
38
+
39
+ def build_configuration(name)
40
+ build_configurations.select { |obj| obj.name == name }.first
41
+ end
42
+
43
+ def build_configurations
44
+ data['buildConfigurations'].map { |uuid| root.object!(uuid) }
45
+ end
46
+ end
47
+ end
@@ -0,0 +1 @@
1
+ // file4a-a.h
@@ -0,0 +1 @@
1
+ // file4a-a.m
@@ -0,0 +1 @@
1
+ // file4a-r.h
@@ -0,0 +1 @@
1
+ // file4a-r.m
File without changes
File without changes
File without changes
File without changes
@@ -0,0 +1,324 @@
1
+ // !$*UTF8*$!
2
+ {
3
+ archiveVersion = 1;
4
+ classes = {
5
+ };
6
+ objectVersion = 46;
7
+ objects = {
8
+
9
+ /* Begin PBXBuildFile section */
10
+ 78BBAAF4157A984700D8AC61 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 78BBAAF3157A984700D8AC61 /* UIKit.framework */; };
11
+ 78BBAAF6157A984700D8AC61 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 78BBAAF5157A984700D8AC61 /* Foundation.framework */; };
12
+ 78BBAAF8157A984700D8AC61 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 78BBAAF7157A984700D8AC61 /* CoreGraphics.framework */; };
13
+ 78BBAAFE157A984700D8AC61 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 78BBAAFC157A984700D8AC61 /* InfoPlist.strings */; };
14
+ 78BBAB00157A984700D8AC61 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 78BBAAFF157A984700D8AC61 /* main.m */; };
15
+ 78BBAB04157A984700D8AC61 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 78BBAB03157A984700D8AC61 /* AppDelegate.m */; };
16
+ 78BBAB16157A997800D8AC61 /* file2c.m in Sources */ = {isa = PBXBuildFile; fileRef = 78BBAB14157A997800D8AC61 /* file2c.m */; };
17
+ 78C3658C1584A4ED004077AB /* file5a-a.m in Sources */ = {isa = PBXBuildFile; fileRef = 78C3658B1584A4ED004077AB /* file5a-a.m */; };
18
+ 78C3658F1584A50A004077AB /* file5a-r.m in Sources */ = {isa = PBXBuildFile; fileRef = 78C3658E1584A50A004077AB /* file5a-r.m */; };
19
+ /* End PBXBuildFile section */
20
+
21
+ /* Begin PBXFileReference section */
22
+ 7891BAE01580EF8B0043E606 /* file2c.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = file2c.h; path = dir1c/file2c.h; sourceTree = "<group>"; };
23
+ 78BBAAEF157A984700D8AC61 /* example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = example.app; sourceTree = BUILT_PRODUCTS_DIR; };
24
+ 78BBAAF3157A984700D8AC61 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; };
25
+ 78BBAAF5157A984700D8AC61 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
26
+ 78BBAAF7157A984700D8AC61 /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; };
27
+ 78BBAAFB157A984700D8AC61 /* example-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "example-Info.plist"; sourceTree = "<group>"; };
28
+ 78BBAAFD157A984700D8AC61 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = "<group>"; };
29
+ 78BBAAFF157A984700D8AC61 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
30
+ 78BBAB01157A984700D8AC61 /* example-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "example-Prefix.pch"; sourceTree = "<group>"; };
31
+ 78BBAB02157A984700D8AC61 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = "<group>"; };
32
+ 78BBAB03157A984700D8AC61 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = "<group>"; };
33
+ 78BBAB14157A997800D8AC61 /* file2c.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = file2c.m; path = dir1c/file2c.m; sourceTree = "<group>"; };
34
+ 78C365891584A4E6004077AB /* file5a-a.h */ = {isa = PBXFileReference; fileEncoding = 4; name = "file5a-a.h"; path = "dir1a/dir2a/dir3a/dir4a/file5a-a.h"; sourceTree = SOURCE_ROOT; };
35
+ 78C3658B1584A4ED004077AB /* file5a-a.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = "file5a-a.m"; path = "dir1a/dir2a/dir3a/dir4a/file5a-a.m"; sourceTree = SOURCE_ROOT; };
36
+ 78C3658D1584A4FC004077AB /* file5a-r.h */ = {isa = PBXFileReference; fileEncoding = 4; path = "file5a-r.h"; sourceTree = "<group>"; };
37
+ 78C3658E1584A50A004077AB /* file5a-r.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "file5a-r.m"; sourceTree = "<group>"; };
38
+ /* End PBXFileReference section */
39
+
40
+ /* Begin PBXFrameworksBuildPhase section */
41
+ 78BBAAEC157A984700D8AC61 /* Frameworks */ = {
42
+ isa = PBXFrameworksBuildPhase;
43
+ buildActionMask = 2147483647;
44
+ files = (
45
+ 78BBAAF4157A984700D8AC61 /* UIKit.framework in Frameworks */,
46
+ 78BBAAF6157A984700D8AC61 /* Foundation.framework in Frameworks */,
47
+ 78BBAAF8157A984700D8AC61 /* CoreGraphics.framework in Frameworks */,
48
+ );
49
+ runOnlyForDeploymentPostprocessing = 0;
50
+ };
51
+ /* End PBXFrameworksBuildPhase section */
52
+
53
+ /* Begin PBXGroup section */
54
+ 78BBAAE4157A984700D8AC61 = {
55
+ isa = PBXGroup;
56
+ children = (
57
+ 78BBAB0A157A984B00D8AC61 /* group1a */,
58
+ 78BBAAF9157A984700D8AC61 /* example */,
59
+ 78BBAAF2157A984700D8AC61 /* Frameworks */,
60
+ 78BBAAF0157A984700D8AC61 /* Products */,
61
+ );
62
+ sourceTree = "<group>";
63
+ };
64
+ 78BBAAF0157A984700D8AC61 /* Products */ = {
65
+ isa = PBXGroup;
66
+ children = (
67
+ 78BBAAEF157A984700D8AC61 /* example.app */,
68
+ );
69
+ name = Products;
70
+ sourceTree = "<group>";
71
+ };
72
+ 78BBAAF2157A984700D8AC61 /* Frameworks */ = {
73
+ isa = PBXGroup;
74
+ children = (
75
+ 78BBAAF3157A984700D8AC61 /* UIKit.framework */,
76
+ 78BBAAF5157A984700D8AC61 /* Foundation.framework */,
77
+ 78BBAAF7157A984700D8AC61 /* CoreGraphics.framework */,
78
+ );
79
+ name = Frameworks;
80
+ sourceTree = "<group>";
81
+ };
82
+ 78BBAAF9157A984700D8AC61 /* example */ = {
83
+ isa = PBXGroup;
84
+ children = (
85
+ 78BBAB02157A984700D8AC61 /* AppDelegate.h */,
86
+ 78BBAB03157A984700D8AC61 /* AppDelegate.m */,
87
+ 78BBAAFA157A984700D8AC61 /* Supporting Files */,
88
+ );
89
+ path = example;
90
+ sourceTree = "<group>";
91
+ };
92
+ 78BBAAFA157A984700D8AC61 /* Supporting Files */ = {
93
+ isa = PBXGroup;
94
+ children = (
95
+ 78BBAAFB157A984700D8AC61 /* example-Info.plist */,
96
+ 78BBAAFC157A984700D8AC61 /* InfoPlist.strings */,
97
+ 78BBAAFF157A984700D8AC61 /* main.m */,
98
+ 78BBAB01157A984700D8AC61 /* example-Prefix.pch */,
99
+ );
100
+ name = "Supporting Files";
101
+ sourceTree = "<group>";
102
+ };
103
+ 78BBAB0A157A984B00D8AC61 /* group1a */ = {
104
+ isa = PBXGroup;
105
+ children = (
106
+ 78BBAB0B157A985300D8AC61 /* group2a */,
107
+ 78BBAB12157A997800D8AC61 /* dir2c */,
108
+ 78BBAB14157A997800D8AC61 /* file2c.m */,
109
+ 7891BAE01580EF8B0043E606 /* file2c.h */,
110
+ );
111
+ name = group1a;
112
+ sourceTree = "<group>";
113
+ };
114
+ 78BBAB0B157A985300D8AC61 /* group2a */ = {
115
+ isa = PBXGroup;
116
+ children = (
117
+ );
118
+ name = group2a;
119
+ sourceTree = "<group>";
120
+ };
121
+ 78BBAB12157A997800D8AC61 /* dir2c */ = {
122
+ isa = PBXGroup;
123
+ children = (
124
+ 78C365821584A3B4004077AB /* dir3a */,
125
+ );
126
+ name = dir2c;
127
+ path = dir1c/dir2c;
128
+ sourceTree = "<group>";
129
+ };
130
+ 78C365821584A3B4004077AB /* dir3a */ = {
131
+ isa = PBXGroup;
132
+ children = (
133
+ 78C365831584A3B4004077AB /* dir4a */,
134
+ );
135
+ name = dir3a;
136
+ path = dir1a/dir2a/dir3a;
137
+ sourceTree = SOURCE_ROOT;
138
+ };
139
+ 78C365831584A3B4004077AB /* dir4a */ = {
140
+ isa = PBXGroup;
141
+ children = (
142
+ 78C3658B1584A4ED004077AB /* file5a-a.m */,
143
+ 78C365891584A4E6004077AB /* file5a-a.h */,
144
+ 78C3658D1584A4FC004077AB /* file5a-r.h */,
145
+ 78C3658E1584A50A004077AB /* file5a-r.m */,
146
+ );
147
+ path = dir4a;
148
+ sourceTree = "<group>";
149
+ };
150
+ /* End PBXGroup section */
151
+
152
+ /* Begin PBXNativeTarget section */
153
+ 78BBAAEE157A984700D8AC61 /* example */ = {
154
+ isa = PBXNativeTarget;
155
+ buildConfigurationList = 78BBAB07157A984700D8AC61 /* Build configuration list for PBXNativeTarget "example" */;
156
+ buildPhases = (
157
+ 78BBAAEB157A984700D8AC61 /* Sources */,
158
+ 78BBAAEC157A984700D8AC61 /* Frameworks */,
159
+ 78BBAAED157A984700D8AC61 /* Resources */,
160
+ );
161
+ buildRules = (
162
+ );
163
+ dependencies = (
164
+ );
165
+ name = example;
166
+ productName = example;
167
+ productReference = 78BBAAEF157A984700D8AC61 /* example.app */;
168
+ productType = "com.apple.product-type.application";
169
+ };
170
+ /* End PBXNativeTarget section */
171
+
172
+ /* Begin PBXProject section */
173
+ 78BBAAE6157A984700D8AC61 /* Project object */ = {
174
+ isa = PBXProject;
175
+ attributes = {
176
+ LastUpgradeCheck = 0430;
177
+ };
178
+ buildConfigurationList = 78BBAAE9157A984700D8AC61 /* Build configuration list for PBXProject "example" */;
179
+ compatibilityVersion = "Xcode 3.2";
180
+ developmentRegion = English;
181
+ hasScannedForEncodings = 0;
182
+ knownRegions = (
183
+ en,
184
+ );
185
+ mainGroup = 78BBAAE4157A984700D8AC61;
186
+ productRefGroup = 78BBAAF0157A984700D8AC61 /* Products */;
187
+ projectDirPath = "";
188
+ projectRoot = "";
189
+ targets = (
190
+ 78BBAAEE157A984700D8AC61 /* example */,
191
+ );
192
+ };
193
+ /* End PBXProject section */
194
+
195
+ /* Begin PBXResourcesBuildPhase section */
196
+ 78BBAAED157A984700D8AC61 /* Resources */ = {
197
+ isa = PBXResourcesBuildPhase;
198
+ buildActionMask = 2147483647;
199
+ files = (
200
+ 78BBAAFE157A984700D8AC61 /* InfoPlist.strings in Resources */,
201
+ );
202
+ runOnlyForDeploymentPostprocessing = 0;
203
+ };
204
+ /* End PBXResourcesBuildPhase section */
205
+
206
+ /* Begin PBXSourcesBuildPhase section */
207
+ 78BBAAEB157A984700D8AC61 /* Sources */ = {
208
+ isa = PBXSourcesBuildPhase;
209
+ buildActionMask = 2147483647;
210
+ files = (
211
+ 78BBAB00157A984700D8AC61 /* main.m in Sources */,
212
+ 78BBAB04157A984700D8AC61 /* AppDelegate.m in Sources */,
213
+ 78BBAB16157A997800D8AC61 /* file2c.m in Sources */,
214
+ 78C3658C1584A4ED004077AB /* file5a-a.m in Sources */,
215
+ 78C3658F1584A50A004077AB /* file5a-r.m in Sources */,
216
+ );
217
+ runOnlyForDeploymentPostprocessing = 0;
218
+ };
219
+ /* End PBXSourcesBuildPhase section */
220
+
221
+ /* Begin PBXVariantGroup section */
222
+ 78BBAAFC157A984700D8AC61 /* InfoPlist.strings */ = {
223
+ isa = PBXVariantGroup;
224
+ children = (
225
+ 78BBAAFD157A984700D8AC61 /* en */,
226
+ );
227
+ name = InfoPlist.strings;
228
+ sourceTree = "<group>";
229
+ };
230
+ /* End PBXVariantGroup section */
231
+
232
+ /* Begin XCBuildConfiguration section */
233
+ 78BBAB05157A984700D8AC61 /* Debug */ = {
234
+ isa = XCBuildConfiguration;
235
+ buildSettings = {
236
+ ALWAYS_SEARCH_USER_PATHS = NO;
237
+ ARCHS = "$(ARCHS_STANDARD_32_BIT)";
238
+ "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
239
+ COPY_PHASE_STRIP = NO;
240
+ GCC_C_LANGUAGE_STANDARD = gnu99;
241
+ GCC_DYNAMIC_NO_PIC = NO;
242
+ GCC_OPTIMIZATION_LEVEL = 0;
243
+ GCC_PREPROCESSOR_DEFINITIONS = (
244
+ "DEBUG=1",
245
+ "$(inherited)",
246
+ );
247
+ GCC_SYMBOLS_PRIVATE_EXTERN = NO;
248
+ GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
249
+ GCC_WARN_ABOUT_RETURN_TYPE = YES;
250
+ GCC_WARN_UNINITIALIZED_AUTOS = YES;
251
+ GCC_WARN_UNUSED_VARIABLE = YES;
252
+ IPHONEOS_DEPLOYMENT_TARGET = 5.1;
253
+ SDKROOT = iphoneos;
254
+ TARGETED_DEVICE_FAMILY = "1,2";
255
+ };
256
+ name = Debug;
257
+ };
258
+ 78BBAB06157A984700D8AC61 /* Release */ = {
259
+ isa = XCBuildConfiguration;
260
+ buildSettings = {
261
+ ALWAYS_SEARCH_USER_PATHS = NO;
262
+ ARCHS = "$(ARCHS_STANDARD_32_BIT)";
263
+ "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
264
+ COPY_PHASE_STRIP = YES;
265
+ GCC_C_LANGUAGE_STANDARD = gnu99;
266
+ GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
267
+ GCC_WARN_ABOUT_RETURN_TYPE = YES;
268
+ GCC_WARN_UNINITIALIZED_AUTOS = YES;
269
+ GCC_WARN_UNUSED_VARIABLE = YES;
270
+ IPHONEOS_DEPLOYMENT_TARGET = 5.1;
271
+ OTHER_CFLAGS = "-DNS_BLOCK_ASSERTIONS=1";
272
+ SDKROOT = iphoneos;
273
+ TARGETED_DEVICE_FAMILY = "1,2";
274
+ VALIDATE_PRODUCT = YES;
275
+ };
276
+ name = Release;
277
+ };
278
+ 78BBAB08157A984700D8AC61 /* Debug */ = {
279
+ isa = XCBuildConfiguration;
280
+ buildSettings = {
281
+ GCC_PRECOMPILE_PREFIX_HEADER = YES;
282
+ GCC_PREFIX_HEADER = "example/example-Prefix.pch";
283
+ INFOPLIST_FILE = "example/example-Info.plist";
284
+ PRODUCT_NAME = "$(TARGET_NAME)";
285
+ WRAPPER_EXTENSION = app;
286
+ };
287
+ name = Debug;
288
+ };
289
+ 78BBAB09157A984700D8AC61 /* Release */ = {
290
+ isa = XCBuildConfiguration;
291
+ buildSettings = {
292
+ GCC_PRECOMPILE_PREFIX_HEADER = YES;
293
+ GCC_PREFIX_HEADER = "example/example-Prefix.pch";
294
+ INFOPLIST_FILE = "example/example-Info.plist";
295
+ PRODUCT_NAME = "$(TARGET_NAME)";
296
+ WRAPPER_EXTENSION = app;
297
+ };
298
+ name = Release;
299
+ };
300
+ /* End XCBuildConfiguration section */
301
+
302
+ /* Begin XCConfigurationList section */
303
+ 78BBAAE9157A984700D8AC61 /* Build configuration list for PBXProject "example" */ = {
304
+ isa = XCConfigurationList;
305
+ buildConfigurations = (
306
+ 78BBAB05157A984700D8AC61 /* Debug */,
307
+ 78BBAB06157A984700D8AC61 /* Release */,
308
+ );
309
+ defaultConfigurationIsVisible = 0;
310
+ defaultConfigurationName = Release;
311
+ };
312
+ 78BBAB07157A984700D8AC61 /* Build configuration list for PBXNativeTarget "example" */ = {
313
+ isa = XCConfigurationList;
314
+ buildConfigurations = (
315
+ 78BBAB08157A984700D8AC61 /* Debug */,
316
+ 78BBAB09157A984700D8AC61 /* Release */,
317
+ );
318
+ defaultConfigurationIsVisible = 0;
319
+ defaultConfigurationName = Release;
320
+ };
321
+ /* End XCConfigurationList section */
322
+ };
323
+ rootObject = 78BBAAE6157A984700D8AC61 /* Project object */;
324
+ }