Files
2021-06-03 10:43:04 -05:00

39 lines
1.1 KiB
Ruby
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'
install! 'cocoapods',
:share_schemes_for_development_pods => false
target 'iMessageDemo' do
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!
# Pods for iMessageDemo
end
target 'iMessageExtensionDemo' do
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!
# Pods for iMessageExtensionDemo
pod 'SwiftMessages/AppExtension', :path => "../"
end
post_install do |installer|
# Blow away schemes  the schemes created by CocoaPods break Carthage builds
# because they incluede a SwiftMessages framework that Carthage picks
# over the main SwiftMessages framework. The SwiftMessages framework that gets
# picked is configured for an app extension and doesn't work correctly in an app.
File.directory?(path)
[
"#{installer.sandbox.root}/Pods.xcodeproj/xcuserdata",
"#{installer.sandbox.root}/Pods.xcodeproj/xcshareddata"
].each { |path|
if File.directory?(path)
FileUtils.remove_dir(path)
end
}
end