5

My project consists of a main iOS app project and three additional frameworks for Presentation, Domain and Data layers. My own frameworks are embedded in the main target. Third party frameworks are managed by CocoaPods and linked dynamically.

Now if I try to preview my code I get the following error:

RemoteHumanReadableError: Failed to update preview.

Error encountered when sending 'previewInstances' message to agent.

==================================

|  RemoteHumanReadableError
|  
|  LoadingError: failed to load library at path "/Users/lucas/Library/Developer/Xcode/DerivedData/Envim-grqjeyyonytbnxcujdcadldmkoni/Build/Intermediates.noindex/Previews/Envim (iOS)/Products/Debug-iphonesimulator/Presentation.framework/Presentation": Optional(dlopen(/Users/lucas/Library/Developer/Xcode/DerivedData/Envim-grqjeyyonytbnxcujdcadldmkoni/Build/Intermediates.noindex/Previews/Envim (iOS)/Products/Debug-iphonesimulator/Presentation.framework/Presentation, 0): Library not loaded: @rpath/Resolver.framework/Resolver
|    Referenced from: /Users/lucas/Library/Developer/Xcode/DerivedData/Envim-grqjeyyonytbnxcujdcadldmkoni/Build/Intermediates.noindex/Previews/Envim (iOS)/Products/Debug-iphonesimulator/Presentation.framework/Presentation
|    Reason: image not found)

I hope I included all relevant information. In case I forgot something feel free to request it.

the.blaggy
  • 815
  • 5
  • 16
  • Have you found a solution for this? If so can you post it? – Juan Carlos Ospina Gonzalez May 14 '21 at 12:18
  • Same issue here. Any solution? – Aaron Jun 21 '21 at 22:39
  • @Aaron sorry I'm not sure whether I fixed it or whether I just restructured my project. I looked up my git history and I think that I fixed it by editing the search paths in `Build Settings > Linking > Runpath Search Paths` and entered the following three values `$(inherited) @executable_path/Frameworks @loader_path/Frameworks ` Would be great if you could test these changes, then I could create an official answer. – the.blaggy Jun 22 '21 at 10:00
  • Unfortunately those are also my path settings and it's still outputting the error you have in your original question. – Aaron Jun 28 '21 at 21:47
  • @Aaron I don't think that I changed anything else then. But here's my Podfile maybe this helps you out https://gist.github.com/the-blaggyS/b97467b7c966886b6d373dbb800bede6 – the.blaggy Jun 30 '21 at 08:58
  • Interesting, I'll take a look. In any case thanks for your quick replies – Aaron Jun 30 '21 at 18:03

0 Answers0