我正在尝试为以下内容创建Podspec:https://github.com/sincerely/shiplib-ios-framework
Pod Lint通过并且文件正被添加到项目中,但它不链接二进制"Sincerely"文件.通过以下方式导入时,由于缺少文件,示例项目构建失败:<Sincerely/filename.h>
Pod::Spec.new do |s|
s.name = 'ShipLib'
s.version = '1.4'
...
s.source = {
:git => 'https://github.com/sincerely/shiplib-ios-framework.git',
:tag => 's.version.to_s'
}
s.library = 'Sincerely'
s.source_files = 'Sincerely.framework','Sincerely.framework/Headers/*.h'
s.resources = 'Sincerely.framework/Resources/*.{png,nib}'
s.frameworks = 'AddressBook', 'AddressBookUI', 'SystemConfiguration', 'CoreTelephony'
s.xcconfig = { 'LIBRARY_SEARCH_PATHS' => '$(PODS_ROOT)/ShipLib/' }
end
Run Code Online (Sandbox Code Playgroud)
编辑:
Pod::Spec.new do |s|
s.name = 'ShipLib'
s.version = '1.4'
s.platform = :ios
s.summary = 'Allow users to send printed photos from your app.'
s.author = { 'Sincerely' => 'dev@sincerely.com' }
s.homepage = 'https://github.com/sincerely/shiplib-ios-framework'
s.license = { :file => 'LICENSE', :type => 'Commercial' }
s.source = {
:git => 'https://github.com/sincerely/shiplib-ios-framework.git',
:tag => 's.version.to_s'
}
s.frameworks = 'AddressBook', 'AddressBookUI', 'SystemConfiguration', 'CoreTelephony'
s.ios.vendored_frameworks = 'Sincerely.framework'
end
Run Code Online (Sandbox Code Playgroud)
Mis*_*Moo 13
不会为框架复制标头,也不应将其指定为源文件.如果您要做的只是将框架添加为vendored_framework.这是CP 0.23.0中的新功能.
来自文档
spec.ios.vendored_frameworks = 'Frameworks/MyFramework.framework'
Run Code Online (Sandbox Code Playgroud)
编辑:
删除有关.frameworkfrom的所有内容s.source_files.源文件只是文件,而不是框架.
| 归档时间: |
|
| 查看次数: |
7769 次 |
| 最近记录: |