У меня есть статическая структура. Теперь я хочу, чтобы он был доступен через cocopods. Я следую this учебник.Добавить уже существующую статическую структуру в cocoapods
Мой стручок Файл:
#
# 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' => '[email protected]' }
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.podspec
дает мне 2 ошибки s.ios.vendored_frameworks
и s.resources
.
Сообщение об ошибке:
- 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
Я не могу понять, что происходит не так здесь.
дубликата комментарий от ответа - пожалуйста, игнорировать –