- Java 双重比较
- java - 比较器与 Apache BeanComparator
- Objective-C 完成 block 导致额外的方法调用?
- database - RESTful URI 是否应该公开数据库主键?
我在 CommonCrypto 上写了一个私有(private) pod它明确依赖于 CommonCrypto。 header 具有由 CommonCrypto 声明的类型,例如:
#include <CommonCrypto/CommonDigest.h>
typedef CC_SHA256_CTX qwer_digest_evp;
由于 CC_SHA256_CTX
是在 CommonCrypto 中声明的,我不能简单地将 header 导入移动到实现文件中。
我使用 cocoapods 将这个 pod 集成到我的项目中,并尝试了下面的安装后 Hook ,但它没有用(选自 SO)。
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
target.build_settings(config.name)['CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES'] = 'YES'
end
end
end
最佳答案
一个有效的选择可能是构建 CommonCrypto
的模块版本(可能添加了 CocoaPods 魔法)。这可以按照对 Importing CommonCrypto in a Swift framework 的回答中的步骤来完成。 .该解决方案与您的 Xcode 项目中的 Objective-C 或 C 一样运行良好。
引用答案:
I've added some CocoaPods magic to jjrscott's answer in case you need to use CommonCrypto in your CocoaPods library.
关于objective-c - 获取错误 "Include of non-modular header inside framework module",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51080249/
我具有以下Xcode项目依赖项: A -> C B -> C 当我分别构建它们时,一切正常。 但是,我想将A和B添加到同一Xcode项目中,从而创建以下依赖关系图: / -> A -> C D
“模块化”的有效性取决于将系统划分为模块时使用的标准。 我想要的是,提出一些可用于将系统分解为模块的标准。 最佳答案 Cohesion : 模块中的功能是相关的。 Low coupling :模块之间
加载+重新加载 fsx 文件的推荐方法是什么?只是试验......是的,是的,正确的语言,正确的工作等等。 我喜欢如何在 FSI 中完成以下工作: #load "script.fsx"; open S
在 igraph ?modularity 部分给出了示例代码 g <- graph.full(5) %du% graph.full(5) %du% graph.full(5) g <- add.edg
最近我对如何组织我的 Scala 代码感到困惑,因为有很多选择。 Scala 如何/何时使用包、对象、包对象来组织代码是否有任何指导方针? 最佳答案 了解 Scala 的功能 首先,我们需要了解每种模
我的 node.js 应用程序中有这样的文件结构: 应用程序 模特 用户 书 Controller 用户 书 观看次数 用户 书 我想让我的应用模块化。如何从 user Controller 与 bo
因为我需要测试 Boost 的一些实验性功能,所以我想从 Modular Boost 存储库安装 Boost。 我按照 https://svn.boost.org/trac/boost/wiki/Tr
我用了flutter_modular用于 flutter web 导航。 import 'package:flutter_modular/flutter_modular.dart'; class A
我需要计算 (a/b) mod m 哪里 a 和 b 是非常大的数字。 我想做的是计算 (a mod m) * (x mod m) ,其中 x 是 modular inverse的 b . 我尝试使用
我想构建一个可以在单个页面上有多个实例的 jQuery 应用程序。 但是,我遇到了一个实例从其他实例接收事件的问题。例如,如果我有以下事件: $('#start_btn').click(...) 如果
我是 java 和 javafx 2 的新手。我想要做的是一个应用程序,它基本上是一个容器,用于放置以后可以添加的单独“模块”。 主要应用程序应该是某种内容浏览器,用于扫描文件夹中的模块。然后,您可以
我一直在考虑创建一个程序,该程序可以执行多个不同的任务,同时由一个中央线程监视。这个想法是创建一个核心程序,该程序将在运行时/运行时查找并加载单独的模块。这些模块将在将完成的对象传递给另一个模块之前执
目前正在创建一个代码,使用两种类型的优先级队列作为单独的方法,方法之间的代码相似,试图将它们模块化为一个方法,但优先级队列类型的参数不同 我当前正在运行 eclipse,尝试添加 if 语句(如果 1
今天我无法将 apply 函数应用到 modularity 函数,后者的函数在 'igraph' 包中。以下是代码和结果" > library(igraph) > g = graph.full(2)
目标:创建一个模块化应用程序,其上的插件必须具有 UI(这是关键点)。我有关于主应用程序(“服务器”)的所有信息,也有关于所有插件的信息(所有这些都将由我们制作)。所以我们想把主 apk 给用户,让他
我无法为 body1TextProvider 和 body2TextProvider 设置白色文本颜色。只有灰色可供选择。 我的代码: let modularLarge = CLKComplicati
我想使用 Rails 构建一个可扩展的模块化应用程序,该应用程序可以配置以满足个人需求。 让我解释一下我对“可扩展”和“模块化”的理解。例如,假设我正在开发一个博客应用程序引擎并且我有一个名为 Blo
我是一名在大学工程项目团队工作的学生。 我们的软件子团队正在寻求创建一个模块化的 GUI,允许通过捕捉面板进行实时重新配置,用户可以在 GUI 周围移动和分离(具有此类 GUI 的流行程序:Adobe
如果我用 emcc 编译我的 C++ 代码没有 -s MODULARIZE=1 -s 'EXPORT_NAME="createMyModule"' ,我可以加载我的 WebAssembly 并访问 F
基于此结构:http://flask.pocoo.org/docs/patterns/packages/ 我也尝试过这篇文章:Deploying Flask app to Heroku 我无法让它在
我是一名优秀的程序员,十分优秀!