38 lines
931 B
Ruby
38 lines
931 B
Ruby
source 'https://cdn.cocoapods.org/'
|
|
platform :ios, '15.0'
|
|
|
|
inhibit_all_warnings!
|
|
|
|
target 'Mastodon' do
|
|
# Comment the next line if you don't want to use dynamic frameworks
|
|
use_frameworks!
|
|
|
|
# misc
|
|
pod 'SwiftGen', '~> 6.6.2'
|
|
pod 'Sourcery', '~> 1.9'
|
|
|
|
target 'MastodonTests' do
|
|
inherit! :search_paths
|
|
# Pods for testing
|
|
end
|
|
|
|
target 'MastodonUITests' do
|
|
# Pods for testing
|
|
end
|
|
|
|
end
|
|
|
|
post_install do |installer|
|
|
installer.pods_project.targets.each do |target|
|
|
target.build_configurations.each do |config|
|
|
config.build_settings.delete 'IPHONEOS_DEPLOYMENT_TARGET'
|
|
end
|
|
# https://github.com/CocoaPods/CocoaPods/issues/11402#issuecomment-1201464693
|
|
if target.respond_to?(:product_type) and target.product_type == "com.apple.product-type.bundle"
|
|
target.build_configurations.each do |config|
|
|
config.build_settings['CODE_SIGNING_ALLOWED'] = 'NO'
|
|
end
|
|
end
|
|
end
|
|
end
|