Commit 9c4baa84 authored by Fabio Pelosin's avatar Fabio Pelosin

[Pod:Command::Spec] lint checks for build errors

parent 88ce67b9
This diff is collapsed.
...@@ -4,7 +4,7 @@ module Pod ...@@ -4,7 +4,7 @@ module Pod
include Config::Mixin include Config::Mixin
attr_reader :name, :target_dependencies attr_reader :name, :target_dependencies
attr_accessor :xcodeproj, :link_with, :platform, :parent, :exclusive attr_accessor :xcodeproj, :link_with, :platform, :parent, :exclusive
def initialize(name, options = {}) def initialize(name, options = {})
...@@ -64,7 +64,11 @@ module Pod ...@@ -64,7 +64,11 @@ module Pod
# Returns a path, which is relative to the project_root, relative to the # Returns a path, which is relative to the project_root, relative to the
# `$(SRCROOT)` of the user's project. # `$(SRCROOT)` of the user's project.
def relative_to_srcroot(path) def relative_to_srcroot(path)
(config.project_root + path).relative_path_from(xcodeproj.dirname) if config.integrate_targets
(config.project_root + path).relative_path_from(xcodeproj.dirname)
else
"Pods"
end
end end
def relative_pods_root def relative_pods_root
...@@ -368,7 +372,7 @@ module Pod ...@@ -368,7 +372,7 @@ module Pod
# This is used as a workaround for a compiler bug with non-ARC projects. # This is used as a workaround for a compiler bug with non-ARC projects.
# (see https://github.com/CocoaPods/CocoaPods/issues/142) # (see https://github.com/CocoaPods/CocoaPods/issues/142)
# #
# This was originally done automatically but libtool as of Xcode 4.3.2 no # This was originally done automatically but libtool as of Xcode 4.3.2 no
# longer seems to support the -fobjc-arc flag. Therefore it now has to be # longer seems to support the -fobjc-arc flag. Therefore it now has to be
# enabled explicitly using this method. # enabled explicitly using this method.
# #
...@@ -397,7 +401,7 @@ module Pod ...@@ -397,7 +401,7 @@ module Pod
def generate_bridge_support? def generate_bridge_support?
@generate_bridge_support @generate_bridge_support
end end
def set_arc_compatibility_flag? def set_arc_compatibility_flag?
@set_arc_compatibility_flag @set_arc_compatibility_flag
end end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment