#
# Be sure to run `pod lib lint UniModule.podspec‘ to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html
#
Pod::Spec.new do |s|
s.name = ‘UniModule‘
s.version = ‘1.0.0‘
s.summary = ‘Uni组件OC‘
# This description is used to generate tags and improve search results.
# * Think: What does it do? Why did you write it? What is the focus?
# * Try to keep it short, snappy and to the point.
# * Write the description between the DESC delimiters below.
# * Finally, don‘t worry about the indent, CocoaPods strips it!
s.description = <<-DESC
TODO: Add long description of the pod here.
DESC
s.homepage = ‘http://url‘
# s.screenshots = ‘www.example.com/screenshots_1‘, ‘www.example.com/screenshots_2‘
s.license = { :type => ‘MIT‘, :file => ‘LICENSE‘ }
s.author = { ‘Jay‘ => ‘qqqq@126.com‘ }
s.source = { :git => ‘http://url.git‘, :tag => s.version.to_s, :branch => ‘dev‘ }
# s.social_media_url = ‘https://twitter.com/<TWITTER_USERNAME>‘
s.ios.deployment_target = ‘9.0‘
s.source_files = ‘UniModule/Classes/*.{h,m}‘
s.pod_target_xcconfig = {
‘OTHER_LDFLAGS‘ => [‘-ObjC‘],
‘ENABLE_BITCODE‘ => ‘NO‘
}
s.static_framework = true
# s.public_header_files = ‘UniModule/Classes/*.h‘
### 基础库
s.subspec ‘Base‘ do |base|
base.source_files = ‘UniModule/Classes/Base/Header/**/*‘, ‘UniModule/Classes/*‘
base.frameworks = ‘JavaScriptCore‘, ‘CoreMedia‘, ‘MediaPlayer‘, ‘AVFoundation‘, ‘AVKit‘, ‘GLKit‘, ‘OpenGLES‘, ‘CoreText‘, ‘QuartzCore‘, ‘CoreGraphics‘, ‘QuickLook‘, ‘CoreTelephony‘, ‘AssetsLibrary‘, ‘CoreLocation‘, ‘AddressBook‘
base.libraries = "c++"
base.vendored_frameworks = ‘UniModule/Classes/Base/Libs/storage.framework‘
base.vendored_library = ‘UniModule/Classes/Base/Libs/*.a‘
base.resources = [ ‘UniModule/Classes/Base/Resources/*.js‘,
‘UniModule/Classes/Base/Resources/unincomponents.ttf‘,
‘UniModule/Classes/Base/Resources/PandoraApi.bundle‘
]
end
### 推送
s.subspec ‘Push‘ do |push|
push.frameworks = ‘CoreTelephony‘, ‘AVFoundation‘, ‘CoreLocation‘, ‘SystemConfiguration‘, ‘MobileCoreServices‘, ‘Security‘, ‘UserNotifications‘
push.libraries = "resolv", ‘z‘, ‘sqlite3‘, ‘c++‘
push.vendored_frameworks = ‘UniModule/Classes/Push/Libs/GTSDK.framework‘
push.vendored_library = ‘UniModule/Classes/Push/Libs/*.a‘
push.dependency ‘UniModule/Base‘
end
### 分享
s.subspec ‘Share‘ do |share|
share.frameworks = ‘ImageIO‘, ‘CoreTelephony‘, ‘SystemConfiguration‘
share.libraries = "sqlite3.0", ‘z‘
share.vendored_library = ‘UniModule/Classes/Share/Libs/*.a‘
share.vendored_frameworks = ‘UniModule/Classes/Share/Libs/*.framework‘
share.resources = [ ‘UniModule/Classes/Share/Resources/*.bundle‘ ]
share.dependency ‘UniModule/Base‘
end
### 地图
s.subspec ‘Map‘ do |map|
map.frameworks = ‘MapKit‘, ‘CoreLocation‘, ‘GLKit‘
map.libraries = "c++"
map.vendored_library = ‘UniModule/Classes/Map/Libs/*.a‘
map.vendored_frameworks = ‘UniModule/Classes/Map/Libs/*.framework‘
map.resources = [
‘UniModule/Classes/Map/Resources/AMap.bundle‘,
‘UniModule/Classes/Map/Resources/userPosition@2x.png‘]
map.dependency ‘UniModule/Base‘
end
### Oauth /// 目前只接苹果
s.subspec ‘Oauth‘ do |oauth|
oauth.frameworks = ‘AuthenticationServices‘
oauth.vendored_library = ‘UniModule/Classes/Oauth/Libs/*.a‘
oauth.dependency ‘UniModule/Base‘
end
### IO /// IO
s.subspec ‘IO‘ do |io|
io.vendored_library = ‘UniModule/Classes/IO/Libs/*.a‘
io.dependency ‘UniModule/Base‘
end
### NativeUI
s.subspec ‘NativeUI‘ do |natU|
natU.vendored_library = ‘UniModule/Classes/NativeUI/Libs/*.a‘
natU.dependency ‘UniModule/Base‘
end
### Geolocation
s.subspec ‘Geolocation‘ do |loc|
loc.vendored_library = ‘UniModule/Classes/Geolocation/Libs/*.a‘
loc.dependency ‘UniModule/Base‘
end
end
原文:https://www.cnblogs.com/cjt5132/p/14239033.html