Commit 4c27a975 authored by Dieter Komendera's avatar Dieter Komendera

Correctly configure POD_SRCROOT for Pods and target project.

parent 82a6c8fb
...@@ -29,7 +29,8 @@ module Pod ...@@ -29,7 +29,8 @@ module Pod
def xcconfig def xcconfig
@xcconfig ||= Xcodeproj::Config.new({ @xcconfig ||= Xcodeproj::Config.new({
# In a workspace this is where the static library headers should be found. # In a workspace this is where the static library headers should be found.
'HEADER_SEARCH_PATHS' => '"Pods/Headers"', 'POD_SRCROOT' => '$(SRCROOT)/Pods',
'HEADER_SEARCH_PATHS' => '"$(POD_SRCROOT)/Headers"',
'ALWAYS_SEARCH_USER_PATHS' => 'YES', 'ALWAYS_SEARCH_USER_PATHS' => 'YES',
# This makes categories from static libraries work, which many libraries # This makes categories from static libraries work, which many libraries
# require, so we add these by default. # require, so we add these by default.
...@@ -131,6 +132,7 @@ module Pod ...@@ -131,6 +132,7 @@ module Pod
config.baseConfiguration = xcconfig_file config.baseConfiguration = xcconfig_file
config.buildSettings['OTHER_LDFLAGS'] = '' config.buildSettings['OTHER_LDFLAGS'] = ''
config.buildSettings['GCC_PREFIX_HEADER'] = prefix_header_filename config.buildSettings['GCC_PREFIX_HEADER'] = prefix_header_filename
config.buildSettings['POD_SRCROOT'] = '$(SRCROOT)'
end end
end end
......
...@@ -99,7 +99,6 @@ module Xcodeproj ...@@ -99,7 +99,6 @@ module Xcodeproj
def self.build_settings(platform, scheme) def self.build_settings(platform, scheme)
settings = COMMON_BUILD_SETTINGS[:all].merge(COMMON_BUILD_SETTINGS[platform]) settings = COMMON_BUILD_SETTINGS[:all].merge(COMMON_BUILD_SETTINGS[platform])
settings['COPY_PHASE_STRIP'] = scheme == :debug ? 'NO' : 'YES' settings['COPY_PHASE_STRIP'] = scheme == :debug ? 'NO' : 'YES'
settings['POD_SRCROOT'] = '$(SRCROOT)'
if scheme == :debug if scheme == :debug
settings.merge!(COMMON_BUILD_SETTINGS[:debug]) settings.merge!(COMMON_BUILD_SETTINGS[:debug])
settings['ONLY_ACTIVE_ARCH'] = 'YES' if platform == :osx settings['ONLY_ACTIVE_ARCH'] = 'YES' if platform == :osx
......
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