-
Notifications
You must be signed in to change notification settings - Fork 0
/
Podfile
52 lines (42 loc) · 1.41 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
source 'https://cdn.cocoapods.org/'
source 'https://github.com/FutureWorkshops/MWPodspecs.git'
workspace 'Calculator'
platform :ios, '17.1'
inhibit_all_warnings!
use_frameworks!
target 'Calculator' do
project 'Calculator/Calculator.xcodeproj'
pod 'MobileWorkflow', '~> 2.1.6'
pod 'CalculatorPlugin', path: 'CalculatorPlugin.podspec'
target 'CalculatorTests' do
inherit! :search_paths
end
end
post_install do |installer|
require 'fileutils'
FileUtils.mkdir_p('Pods/Pods.xcodeproj/xcshareddata/xcschemes')
FileUtils.cp('CalculatorPlugin.xcscheme', 'Pods/Pods.xcodeproj/xcshareddata/xcschemes/CalculatorPlugin.xcscheme')
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['PROVISIONING_PROFILE_SPECIFIER'] = ""
config.build_settings['BUILD_LIBRARY_FOR_DISTRIBUTION'] = 'YES'
end
end
end
module AggregateTargetSettingsExtensions
def ld_runpath_search_paths
return super unless configuration_name == "Debug"
return (super || []) + (framework_search_paths || [])
end
end
class Pod::Target::BuildSettings::AggregateTargetSettings
prepend AggregateTargetSettingsExtensions
end
module PodTargetSettingsExtensions
def ld_runpath_search_paths
return (super || []) + (framework_search_paths || [])
end
end
class Pod::Target::BuildSettings::PodTargetSettings
prepend PodTargetSettingsExtensions
end