forked from SwiftKickMobile/SwiftMessages
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPodfile
38 lines (30 loc) · 1.09 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
# 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