我正在尝试在 Cocoapods 中制作一个vendered_frameworks

2024-02-25

我想要做的是创建一个可可豆荚,它不显示我的源代码的实现。有人告诉我你可以使用“s.ios.vendored_frameworks”并嵌入你的框架,就像 iOS 对其框架所做的那样。我想做的是嵌入我的框架,但不让我的源文件可见并能够编辑。我究竟做错了什么?

我有一个通过 Xcode 创建的框架,位于此处:https://bitbucket.org/nerdgang/ngkitsdk/src https://bitbucket.org/nerdgang/ngkitsdk/src

这是我的 podspec:

    Pod::Spec.new do |s|
  s.name         = "NGKitSDK"
  s.version      = "0.0.1"
  s.summary      = "NGKit a SDK for my projects, my version of iOS."
s.homepage     = "https://bitbucket.org/nerdgang/ngkitsdk"

  # ―――  Spec License  ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
  #
  #  Licensing your code is important. See http://choosealicense.com for more info.
  #  CocoaPods will detect a license file if there is a named LICENSE*
  #  Popular ones are 'MIT', 'BSD' and 'Apache License, Version 2.0'.
  #

  s.license      = "MIT"
  # s.license      = { :type => "MIT", :file => "FILE_LICENSE" }


  # ――― Author Metadata  ――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
  #
  #  Specify the authors of the library, with email addresses. Email addresses
  #  of the authors are extracted from the SCM log. E.g. $ git log. CocoaPods also
  #  accepts just a name if you'd rather not provide an email address.
  #
  #  Specify a social_media_url where others can refer to, for example a twitter
  #  profile URL.
  #

  s.author             = { "Havic" => "[email protected] /cdn-cgi/l/email-protection" }
  # Or just: s.author    = "Havic"
  # s.authors            = { "Havic" => "[email protected] /cdn-cgi/l/email-protection" }
  # s.social_media_url   = "http://twitter.com/Havic"

  # ――― Platform Specifics ――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
  #
  #  If this Pod runs only on iOS or OS X, then specify the platform and
  #  the deployment target. You can optionally include the target after the platform.
  #

  # s.platform     = :ios
   s.platform     = :ios, "5.0"

  #  When using multiple platforms
  # s.ios.deployment_target = "5.0"
  # s.osx.deployment_target = "10.7"
  # s.watchos.deployment_target = "2.0"
  # s.tvos.deployment_target = "9.0"


  # ――― Source Location ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
  #
  #  Specify the location from where the source should be retrieved.
  #  Supports git, hg, bzr, svn and HTTP.
  #

  s.source       = { :git => "https://bitbucket.org/nerdgang/ngkitsdk/src" }
  s.ios.vendored_frameworks = 'NGKitSDK.framework'


  # ――― Source Code ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
  #
  #  CocoaPods is smart about how it includes source code. For source files
  #  giving a folder will include any swift, h, m, mm, c & cpp files.
  #  For header files it will include any header in the folder.
  #  Not including the public_header_files will make all headers public.
  #

  s.source_files  = "NGKitSDK", "Classes/**/*.{h,m}"
  s.exclude_files = "Classes/Exclude"

  # s.public_header_files = "Classes/**/*.h"

我过去遇到过类似的问题,通过将 s.public_header_files 值设置为指向框架中使用的头文件来解决。

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

我正在尝试在 Cocoapods 中制作一个vendered_frameworks 的相关文章

随机推荐

  • 显示多种形式

    在我的代码中 我有一个主窗体 名为 frmMain 和一个关于框 名为 AboutBox1 我想要发生的是 当用户单击菜单条中的 帮助 菜单 然后单击 关于 时 我希望显示 AboutBox1 表单 我已经研究了如何做到这一点 但是当我尝试
  • PhpStorm 和扩展的 php 定义

    使用代码提示 PHPStorm 可以快速显示函数定义 可以配置它来向我展示该函数使用的更详细示例吗 You can place the cursor text cursor not mouse cursor on any PHP funct
  • 打破嵌套循环[重复]

    这个问题在这里已经有答案了 我的嵌套循环有问题 我有多个帖子 每个帖子都有多个图像 我想从所有帖子中获取总共 5 张图片 所以我使用嵌套循环来获取图像 并希望在数量达到 5 时中断循环 以下代码将返回图像 但似乎不会中断循环 foreach
  • 为什么 R 中的循环很慢?

    我知道循环很慢R我应该尝试以矢量化的方式做事 但为什么 为什么循环很慢并且apply快吗 apply调用几个子函数 这看起来并不快 Update 抱歉 这个问题问得不好 我将矢量化与apply 我的问题应该是 为什么矢量化速度更快 循环并不
  • 获取 Jekyll 中两个日期之间的天数差异

    我想知道杰基尔两个日期之间的天数差异 我怎样才能实现这个目标 capture currentDate site time date Y m d endcapture currentDate capture event date entry
  • 在 Go 中测试空字符串的最佳方法是什么?

    哪种方法最适合测试非空字符串 在 Go 中 if len mystring gt 0 Or if mystring 或者是其他东西 这两种样式都在 Go 的标准库中使用 if len s gt 0 可以在strconv包裹 http gol
  • 如何在CSS中使进度条的角变圆

    对于我的进度条 我希望边缘变圆并在进度条内显示百分比 我设法使进度值的角变圆 但不使条 背景变圆 而且动画似乎也不起作用 css progress bar body font family Helvetica Neue arial sans
  • 如何用c++建立简单的ssh连接

    我正在尝试制作一个 C 程序 它将连接到 ssh 服务器 我的笔记本电脑 服务器没问题 因为我可以通过 putty 连接 虽然我目前写的程序还不能 在我的代码中 我使用库 libssh h 并使用 Visual Studio 2015 进行
  • 使图片元素中的图像适合其容器

    我有以下代码 container background steelblue width 333px height 333px picture img object fit cover div div
  • 按日期显示 MySQL 结果

    我有这个 mysql 表 date query count 2012 11 18 09 52 00 Michael 1 2012 11 18 10 47 10 Tom 2 2012 11 17 15 02 12 John 1 2012 11
  • 使用 Gradle 从单个源项目编译多个 jar

    我正在使用 Gradle 构建一个用于 Spark 应用程序的库 此类库通常以 Scala 版本和 Spark 版本的多种组合形式提供 例如 对于火花测试基地 https github com holdenk spark testing b
  • Python3 中使用 strtobool 的 Yes/No 提示

    我一直在尝试为将在命令行上运行的脚本编写一个优雅的 y n 提示 我遇到过这个 http mattoc com python yes no prompt cli html http mattoc com python yes no prom
  • URLDownloadToFile - 下载文件中缺少数据

    Using URLDownloadToFile在 VBA 中 我正在尝试下载一个文件 问题是正在下载一个空白文件 知道为什么数据丢失吗 Option Explicit Private Declare Function URLDownload
  • LINQ to Entities 无法识别方法

    我有一个很长的 Linq To Entities 查询 reports db CallProfileDailies Join db ReportDailyTotals cpd gt cpd Date rdt gt rdt Date cpd
  • 如何匹配由连字符和空格等特殊字符组成的字符串

    我有一个字符串 word A Scan Ultrasonic 如何将其与 A Scan Ultrasonic 我试过我的运气 word regex A Scan Ultrasonic options i 但这并没有得到任何结果 我可以知道如
  • 如何在 RichFaces 4 fileUpload 组件中显示有关最大文件大小限制的消息

    我已经使用 RichFaces 4 3 实现了文件上传 文件上传工作正常 有关文件类型的警报工作正常 但有关最大文件大小限制的警报则不然 文件上传代码
  • g++ 以 UTF-16 编码编译源代码

    g 不编译我的 UTF 16 编码的源文件 是否可以这样做或者我应该使用 UTF 8 编码 None
  • Puppeteer 错误:加载共享库时出错:libgobject-2.0.so.0

    我在 Google Cloud Run 上部署了一个 NestJS 应用程序 它使用 puppeteer V7 0 1 生成 PDF 在本地 一切都工作得很好 但在我的 Cloud Run Service 上 我不断收到以下错误 usr a
  • 如何从 Perl 正则表达式生成所有可能的排列?

    我知道你可以使用列表生成所有排列glob http perldoc perl org functions glob html or 算法 置换 http search cpan org dist Algorithm Permute例如 但如
  • 我正在尝试在 Cocoapods 中制作一个vendered_frameworks

    我想要做的是创建一个可可豆荚 它不显示我的源代码的实现 有人告诉我你可以使用 s ios vendored frameworks 并嵌入你的框架 就像 iOS 对其框架所做的那样 我想做的是嵌入我的框架 但不让我的源文件可见并能够编辑 我究