I'm trying to create a custom Swift Framework. Within that Framework I've added the Bolts Framework. When trying to use my new Swift Framework in another projects, I get the following error:
我正在尝试创建一个自定义Swift框架。在该框架内,我添加了Bolts框架。当试图在另一个项目中使用我的新Swift框架时,我收到以下错误:
framework not found Bolts for architecture x86_64 linker command failed with exit code 1 (use -v to see invocation)
找不到框架架构x86_64链接器命令的螺栓失败,退出代码为1(使用-v查看调用)
Interesting part is that other Frameworks included (Parse) load fine, its just Bolts that is having the issue. I've tried changing the Build Active Architectures settings already.
有趣的是,其他框架包括(Parse)加载正常,它只是有问题的螺栓。我已经尝试过更改Build Active Architectures设置了。
Thanks
2 个解决方案
#1
0
Use CocoaPods for including your other frameworks. Bolts will then be automatically installed through Parse.
使用CocoaPods包含您的其他框架。然后通过Parse自动安装螺栓。
#2
0
Create new Copy Files Phase by going to:
通过转到:创建新的复制文件阶段
Project Settings -> Build Phases -> +
-> New Copy Files Phase. Expand the Copy Files Phase and set destination to Frameworks. Then click on the little +
icon and select Bolts
framework. Also add it to the linked frameworks and libraries if its not added.
项目设置 - >构建阶段 - > + - >新建复制文件阶段。展开“复制文件阶段”并将目标设置为“框架”。然后单击小+图标并选择螺栓框架。如果未添加链接框架和库,也将其添加到链接框架和库中。
The error you are experiencing is thrown when the framework you use is not in the Frameworks folder that your app uses.
当您使用的框架不在您的应用程序使用的Frameworks文件夹中时,将引发您遇到的错误。
#1
0
Use CocoaPods for including your other frameworks. Bolts will then be automatically installed through Parse.
使用CocoaPods包含您的其他框架。然后通过Parse自动安装螺栓。
#2
0
Create new Copy Files Phase by going to:
通过转到:创建新的复制文件阶段
Project Settings -> Build Phases -> +
-> New Copy Files Phase. Expand the Copy Files Phase and set destination to Frameworks. Then click on the little +
icon and select Bolts
framework. Also add it to the linked frameworks and libraries if its not added.
项目设置 - >构建阶段 - > + - >新建复制文件阶段。展开“复制文件阶段”并将目标设置为“框架”。然后单击小+图标并选择螺栓框架。如果未添加链接框架和库,也将其添加到链接框架和库中。
The error you are experiencing is thrown when the framework you use is not in the Frameworks folder that your app uses.
当您使用的框架不在您的应用程序使用的Frameworks文件夹中时,将引发您遇到的错误。