- objective-c - iOS 5 : Can you override UIAppearance customisations in specific classes?
- iphone - 如何将 CGFontRef 转换为 UIFont?
- ios - 以编程方式关闭标记的信息窗口 google maps iOS
- ios - Xcode 5 - 尝试验证存档时出现 "No application records were found"
我正在尝试为以下项目创建 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
编辑:
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
最佳答案
不会为框架复制 header ,并且不应将其指定为源文件。如果您只想将框架添加为 vendored_framework
。这是 CP 0.23.0 中的新功能.
spec.ios.vendored_frameworks = 'Frameworks/MyFramework.framework'
编辑:
从 s.source_files
中删除关于 .framework
的所有内容。源文件就是文件,而不是框架。
关于ios - Podspec 链接二进制库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18219286/
所以我在 swift (xcode 7) 中有一个项目,它有一堆框架目标,我想要一个 podspec 作为子规范,包括所有这些框架。 当我创建一个 podspec 并将一堆子规范添加到示例项目时,示例
我一直在关注this guide在我的 CocoaPods 上获得一个项目。我目前在测试 部分并收到错误: [!] No podspec found for `AppUpdateTracker` in
我有一个由 CI 系统自动构建的开源库,并由 CI 本身自动部署在主干/ cocoa pod 中。 我想减少库版本中人为错误的可能性。 目前,当新版本准备好时,我必须进入 podspec 并手动修改
Google Analytics for iOS 3.09 的 podspec 文件来自此处: https://github.com/CocoaPods/Specs/blob/master/Specs
我正在尝试研究如何将头文件添加到特定的 Podspec。我目前必须手动将文件拖到 Xcode 中的 Pod 组中才能构建它。否则它会提示找不到头文件。我想把这一步从构建过程中去掉。我仍在学习在 Coc
我正在编写我的第一个 pod 规范,虽然我已经设法编写了一个通过验证的规范并且 pod install 似乎安装了 pod 好的实际源文件在我的工作区中无处可寻。这是我的播客文件: platform
我有这样的结构 target_files/ ├──target1/ ├──target2/ └──target3/ 例如,我只想包含“target2”并排除其他目标。我如何编写 spec.exclud
我正在尝试创建私有(private) pod。 我做了什么: * 在正确的分支创建并推送 repo * 创建podspec 现在我正在努力进行 podspec 验证。 BKit.podspec Pod
我有一个 Xcode 项目 (foo),它使用一些重要的构建前/后构建步骤构建静态库 (libfoo.a)。传统上,当我在另一个项目中使用这个库时,我将 foo.xcodeproj 添加为我的主项目中
我正尝试在 this tutorial 之后创建一个 cocoa pod .我在执行以下命令时卡住了: pod repo push RWPodSpecs RWPickFlavor.podspec 问题
我正在尝试为以下项目创建 Podspec:https://github.com/sincerely/shiplib-ios-framework Pod Lint 通过并正在将文件添加到项目中,但它不会
我的 podspec 需要一个静态库 (OpenSSL)。为方便起见,我将库与 pod 一起运送。 静态库包含: 二进制文件:MyPod/openssl/bin/libcrypto.a 和 MyPod
我正在构建一个 cocoapod 并想为 Alamofire 添加依赖项,因为我的 pod 将发出一些请求。 在尝试将我的 cocoapod(具有 Alamofire 依赖项)集成到我们的主应用程序后
如何在 podspec 中指定依赖项的本地路径? 像:s.dependency 'MyLibrary', :path => '../MyLibrary' 谢谢 最佳答案 您应该使用 :path您的 P
我的应用程序使用本地框架/Library/Frameworks/iTunesLibrary.framework。 然后我收到这些错误消息: - ERROR | [xcodebuild] someFi
我的 podspec 文件看起来像: Pod::Spec.new do |s| s.name = "MyLib" s.version = "5.0.0" ...
我有一些非常相似的应用程序。因此,我想创建一个或一些包含所有常见可重用代码的私有(private) Pod。我的第一个版本包含一些使用 AFNetworking 的网络功能,还使用 Keychai
我有一个库的公共(public)分支,该库已存在于 CocoaPods/Specs 中。在 Podfile 中,我可以通过执行以下操作来引用此 fork pod: pod 'CoolLibrary',
环境:vagrant + virtualbox Kubernetes:1.14 docker 18.06.3~ce~3-0~debian 操作系统:debian 拉伸(stretch) 我有优先类(c
我现在正在使用 cocoapods,我想在我的项目中添加本地 pod 依赖项,例如: s.dependency = 'my pod', :path => '' 但我认为不可能,有什么想法吗? 最佳答案
我是一名优秀的程序员,十分优秀!