-
Notifications
You must be signed in to change notification settings - Fork 0
/
Podfile
27 lines (22 loc) · 882 Bytes
/
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
project 'xcprotobuf.xcodeproj'
platform :ios, '14.0'
target 'xcprotobuf' do
use_frameworks!
pod 'Protobuf-C++', '~> 4.25'
end
post_install do |installer|
for f in Dir.glob("Pods/Target Support Files/Protobuf-C++/**") do
text = File.read(f)
content = text.gsub(/<UIKit\/UIKit.h>/, "<Foundation/Foundation.h>")
File.open(f, "w") { |file| file << content }
end
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['ENABLE_BITCODE'] = 'YES'
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '14.0'
config.build_settings['HEADER_SEARCH_PATHS'] = 'Protobuf-C++/src'
config.build_settings['MACH_O_TYPE'] = ENV['MACH_O_TYPE'] || 'mh_dylib' # 'staticlib' #'mh_dylib'
config.build_settings['OTHER_CFLAGS'] = '-fgnu-inline-asm' # for apple watch
end
end
end