Код: Выделить всё
source 'https://github.com/CocoaPods/Specs.git'
use_frameworks!
inhibit_all_warnings!
def commandPod
pod 'DynamicColor'
end
target 'MyApp' do
platform :ios, '13.0'
commandPod
pod 'JXPagingView/Paging'
pod 'JXSegmentedView'
pod 'LookinServer', :subspecs => ['Swift'], :configurations => ['Debug']
end
target 'MyAppWidgetExtension' do
platform :ios, '14.0'
commandPod
pod 'AttributedText', :path => '../AttributedText'
end
touch_ios_14 = ['AttributedText']
post_install do |installer|
installer.pods_project.targets.each do |target|
puts "[post_install] target #{target}"
target.build_configurations.each do |config|
if touch_ios_14.include?(target.name)
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '14.0'
else
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '13.0'
end
config.build_settings['CODE_SIGN_IDENTITY'] = ''
end
end
end
Код: Выделить всё
Multiple targets match implicit dependency for linker flags '-framework
DynamicColor'. Consider adding an explicit dependency on the
intended target to resolve this ambiguity.
Target'DynamicColor-iOS13.0'(in project 'Pods')
Target 'DynamicColor-iOS14.0' (in project 'Pods')
my myApp поддерживает 13.0 или выше, но MyAppWidgetExtension проект поддерживает 14.0 или выше, оба из которых требуют динамики или другой.
Подробнее здесь: https://stackoverflow.com/questions/794 ... k-dynamicc