-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPodfile
28 lines (25 loc) · 1.15 KB
/
Podfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Uncomment this line to define a global platform for your project
platform :ios, "9.0"
inhibit_all_warnings!
use_frameworks!
target :ContactSyncing do
pod 'RealmSwift'
end
# Do not change the following. This is a workaround for FRAMEWORK_SEARCH_PATHS not containing ${inherited}.
# This is required so the project FRAMEWORK_SEARCH_PATHS are correctly passed onto its targets.
# (Otherwise carthage dependencies won't be found when compiled for other than Debug and Release)
post_install do |installer_representation|
Dir.glob("#{Dir.pwd}/Pods/**/Pods*.xcconfig") do |xcconfig_file|
xcconfig = File.read(xcconfig_file)
if xcconfig.include? "FRAMEWORK_SEARCH_PATHS"
puts "Adding ${inherited} to FRAMEWORK_SEARCH_PATHS in file #{xcconfig_file}..."
xcconfig.gsub!(/^FRAMEWORK_SEARCH_PATHS *= *(.*?) *(?:(?:\${inherited})|(?:\$\(inherited\))) *([^\n]*)$/m, "FRAMEWORK_SEARCH_PATHS = ${inherited} \\1 \\2")
File.open(xcconfig_file, "w") { |file| file << xcconfig }
end
end
installer_representation.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['SWIFT_VERSION'] = '3.0'
end
end
end