2

I have a problem when I try to compile my project on real device. It says build succeeded and then I get the error below.

dyld: Library not loaded: @rpath/Agrume.framework/Agrume Referenced from: /var/containers/Bundle/Application/E3ABC8B5-A3C0-4FE3-B395-6A171C9E0EF6/myapp.app/myapp Reason: image not found (lldb)

I tried to add the framework in the settings Build Phases/Build settings but it doesn't work.

kjeraska
  • 41
  • 7

2 Answers2

1

You are probably not embedding the framework in your application.

Look at the General settings for your application target. There should be a section called "embedded binaries". Add your linked framework to that, and it should be OK. Here's an example:

enter image description here

JeremyP
  • 84,577
  • 15
  • 123
  • 161
  • In the comment above I mentioned that I have done this. When I add it, I get the PBXCp error. – kjeraska May 22 '18 at 09:48
  • @kjeraska You should edit the question to put that information in it because otherwise people like me might miss it :-) – JeremyP May 22 '18 at 10:58
0

I had the same issue and it was only fixed by rebuilding the used framework with newer swift version (4.0.3 -> 4.1). I had to download the library source and make a build myself.

T. Pasichnyk
  • 702
  • 3
  • 16