作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我的项目是 React Native
,我在清理和构建项目时尝试将 native 框架文件添加到我的项目中,但出现错误
未找到 BRPtouchPrinterLit 框架
这是我尝试的
第一步:
将框架文件拖到我的Frameworks 文件夹
下,然后选中“Link Binary With Libraries”包含它。
第 2 步:
在框架搜索路径上键入 $(PROJECT_DIR)/Frameworks/
:
然后清理并构建项目出现错误
ld: warning: directory not found for option '-F/Users/morton.hsu/PureIosProject/testIosBrother/ios/Frameworks/'
ld: framework not found BRPtouchPrinterKit
clang: error: linker command failed with exit code 1 (use -v to see invocation)
我错过了哪一步?
我从这个链接下载sdk https://support.brother.com/g/b/agreement.aspx?dlid=dlfp100621_000&c=us_ot&lang=en&redirect=on
最佳答案
尝试使用 $(SRCROOT)/Frameworks 和标志 Recursive。我为公司写了一个自定义模块,你可以查看我的文档。这个自定义模块有内部框架,我把这个框架链接到主项目。
关于ios - 如何在没有cocoapods的情况下导入框架文件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56002778/
我是一名优秀的程序员,十分优秀!