0

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:

framework not found Bolts for architecture x86_64 linker command failed with exit code 1 (use -v to see invocation)

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.

Thanks

Liran Cohen
  • 194
  • 2
  • 9

2 Answers2

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.

Copy Files

The error you are experiencing is thrown when the framework you use is not in the Frameworks folder that your app uses.

Said Sikira
  • 4,482
  • 29
  • 42
0

Use CocoaPods for including your other frameworks. Bolts will then be automatically installed through Parse.

Marius Waldal
  • 9,537
  • 4
  • 30
  • 44
  • So I was able to build the app I imported my new framework in with no problems. But actually running the app is giving me a Library not loaded: @rpath/Bolts.framework/Bolts Referenced from: /Users/..... Reason: image not found. Any ideas? – Liran Cohen Dec 26 '15 at 01:49
  • Check if any of these help you: http://stackoverflow.com/questions/29485035/dyld-library-not-loaded-rpath-alamofire-framework-versions-a-alamofire-reason or https://github.com/CocoaPods/CocoaPods/issues/3661 – Marius Waldal Dec 26 '15 at 02:45