gpt4 book ai didi

ios - 如何在没有cocoapods的情况下导入框架文件?

转载 作者:行者123 更新时间:2023-11-28 23:32:29 24 4
gpt4 key购买 nike

我的项目是 React Native,我在清理和构建项目时尝试将 native 框架文件添加到我的项目中,但出现错误

未找到 BRPtouchPrinterLit 框架

这是我尝试的

第一步:

将框架文件拖到我的Frameworks 文件夹下,然后选中“Link Binary With Libraries”包含它。

enter image description here

第 2 步:

在框架搜索路径上键入 $(PROJECT_DIR)/Frameworks/:

enter image description here

然后清理并构建项目出现错误

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。我为公司写了一个自定义模块,你可以查看我的文档。这个自定义模块有内部框架,我把这个框架链接到主项目。

https://github.com/Hardy1207/RNOkay

关于ios - 如何在没有cocoapods的情况下导入框架文件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56002778/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com