簡體   English   中英

向Cocoapods添加已存在的靜態框架

[英]Add Already Existing Static framework to cocoapods

我有現有的靜態框架。 現在,我希望它也可以通過cocopods獲得。 我正在關注教程。

我的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

在運行pod lib lint MyiOSSDKFramework.podspec它顯示驗證成功。

但是, pod spec lint MyiOSSDKFramework.podspecs.ios.vendored_frameworkss.resources給了我2條錯誤。

錯誤信息:

 - 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.

我的文件夾結構:

 - MyiOSSDKFramework.podspec  
 - MyIOSDK/ 
    - MyIO.framework  
    - MyIO.bundle

我不知道這里出了什么問題。

您是否在:git =>' https://github.com/xyz/MyiOSSDKFramework.git',:tag => s.version.to_s處的倉庫中檢查這些文件是否存在

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM