[英]Add Already Existing Static framework to cocoapods
I have existing static framework. 我有现有的静态框架。 Now I want it to be available through cocopods as well. 现在,我希望它也可以通过cocopods获得。 I am following this tutorial. 我正在关注本教程。
My pod File: 我的pod文件:
#
# Be sure to run `pod lib lint MyiOSSDKFramework.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 http://guides.cocoapods.org/syntax/podspec.html
#
Pod::Spec.new do |s|
s.name = 'MyiOSSDKFramework'
s.version = '2.0.0'
s.summary = 'The MyiOSSDKFramework helps you create apps quickly and effortlessly.
# 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: SDK description will go here.
DESC
s.homepage = 'https://github.com/xyz/MyiOSSDKFramework'
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.author = { 'Priyanka Mistry' => 'priyanka.mistry@xyz.com' }
s.source = { :git => 'https://github.com/xyz/MyiOSSDKFramework.git', :tag => s.version.to_s }
s.social_media_url = 'https://twitter.com/Myio'
s.ios.deployment_target = '7.0'
# s.source_files = 'MyiOSSDKFramework/Classes/*.{h,m}'
s.ios.vendored_frameworks = 'MyIOSDK/MyIO.framework'
s.resources = 'MyIOSDK/MyIO.bundle'
s.frameworks = 'Accounts', 'CFNetwork', 'CoreData', 'CoreGraphics', 'CoreLocation', 'CoreTelephony', 'MobileCoreServices', 'QuartzCore', 'Security', 'Social', 'SystemConfiguration'
s.libraries = 'icucore', 'sqlite3'
s.pod_target_xcconfig = { 'OTHER_LDFLAGS' => '-lObjC' }
end
while running pod lib lint MyiOSSDKFramework.podspec
it show successful validation. 在运行pod lib lint MyiOSSDKFramework.podspec
它显示验证成功。
but, pod spec lint MyiOSSDKFramework.podspec
gives me 2 errors at s.ios.vendored_frameworks
and s.resources
. 但是, pod spec lint MyiOSSDKFramework.podspec
在s.ios.vendored_frameworks
和s.resources
给了我2条错误。
Error Message: 错误信息:
- ERROR | [iOS] file patterns: The `resources` pattern did not match any file.
- ERROR | [iOS] file patterns: The `vendored_frameworks` pattern did not match any file.
My folder structure: 我的文件夹结构:
- MyiOSSDKFramework.podspec
- MyIOSDK/
- MyIO.framework
- MyIO.bundle
I can't figure out what is going wrong here. 我不知道这里出了什么问题。
您是否在:git =>' https://github.com/xyz/MyiOSSDKFramework.git',:tag => s.version.to_s处的仓库中检查这些文件是否存在
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.