injectionforxcode: *** Bundle has failed to load

Hello, John. Please, help. During injection I’m receiving such error: Xcode console log:

Compiling /Users/sergei.prikhodko/PR/Project/ProjectLive/Code/Managers/NetworkStatusManager.m 0.05 real 0.03 user 0.01 sys 2016-10-10 10:20:48.948 Project[9481:140869] Error loading /Users/sergei.prikhodko/PR/Project/iOSInjectionProject/build/Debug-iphonesimulator/InjectionBundle5.bundle/InjectionBundle: dlopen(/Users/sergei.prikhodko/PR/Project/iOSInjectionProject/build/Debug-iphonesimulator/InjectionBundle5.bundle/InjectionBundle, 265): Library not loaded: @rpath/AFNetworkActivityLogger.framework/AFNetworkActivityLogger Referenced from: /Users/sergei.prikhodko/PR/Project/iOSInjectionProject/build/Debug-iphonesimulator/InjectionBundle5.bundle/InjectionBundle Reason: image not found 2016-10-10 10:20:48.949 Project[9481:140869] Bundle Load Error 2016-10-10 10:20:48.949 Project[9481:141010] *** Bundle has failed to load. If this is due to symbols not found, this may be due to symbols being hidden from dynamic libraries. *** 4 injections performed so far.

Where shall I have a look?

About this issue

  • Original URL
  • State: open
  • Created 8 years ago
  • Comments: 17 (5 by maintainers)

Most upvoted comments

After several hours’ investigation, I finally make it work for the Library not loaded: @rpath/XCTest.framework/XCTest issue inspired by another similar dyld question.

All you need to do is clear all the derived data (not just your current project). At least this works for me. Hope this helps.