diff --git a/lib/xcodeproj/project/object/build_phase.rb b/lib/xcodeproj/project/object/build_phase.rb index c9505aeea..25040aee4 100644 --- a/lib/xcodeproj/project/object/build_phase.rb +++ b/lib/xcodeproj/project/object/build_phase.rb @@ -30,6 +30,12 @@ class AbstractBuildPhase < AbstractObject # attribute :run_only_for_deployment_postprocessing, String, '0' + # @return [String] Comments associated with this build phase. + # + # This is apparently no longer used by Xcode. + # + attribute :comments, String + end #-----------------------------------------------------------------------# diff --git a/lib/xcodeproj/project/object/group.rb b/lib/xcodeproj/project/object/group.rb index 3a1fb8545..44d1825d3 100644 --- a/lib/xcodeproj/project/object/group.rb +++ b/lib/xcodeproj/project/object/group.rb @@ -57,6 +57,12 @@ class PBXGroup < AbstractObject # attribute :wraps_lines, String + # @return [String] Comments associated with this group. + # + # This is apparently no longer used by Xcode. + # + attribute :comments, String + #-----------------------------------------------------------------------# # @!group Helpers diff --git a/lib/xcodeproj/project/object/native_target.rb b/lib/xcodeproj/project/object/native_target.rb index 1f40ebe39..1ef2d0e14 100644 --- a/lib/xcodeproj/project/object/native_target.rb +++ b/lib/xcodeproj/project/object/native_target.rb @@ -14,6 +14,12 @@ class AbstractTarget < AbstractObject # attribute :product_name, String + # @return [String] Comments associated with this target. + # + # This is apparently no longer used by Xcode. + # + attribute :comments, String + # @return [XCConfigurationList] the list of the build configurations of # the target. This list commonly include two configurations # `Debug` and `Release`. diff --git a/spec/project/object/build_phase_spec.rb b/spec/project/object/build_phase_spec.rb index f30589c0c..69f7520b5 100644 --- a/spec/project/object/build_phase_spec.rb +++ b/spec/project/object/build_phase_spec.rb @@ -20,6 +20,10 @@ module ProjectSpecs @phase.run_only_for_deployment_postprocessing.should == "0" end + it "is initialized with empty comments" do + @phase.comments.should.be.nil + end + it "can add a file reference to its build files" do file = @project.new_file('some/file') @phase.add_file_reference(file)