Naresh Reddy M Naresh Reddy M - 1 month ago 10
Objective-C Question

Objective-C Error : dyld: Library not loaded: @rpath/custom_framework.framework/VT_custom_framework

im working on a iOS Project with XCODE Version 7.1.1 with iOS Version : 7.0 as Deployment Target & im using Objective-C Only .
I'm Using one of our custom frameworks inside my project .
But the issue is my project is running pretty fine in my simulator and is failing with the Error dyld: Library not loaded: when i'm running same in Device(iOS8) .
when im trying to run the same project with out modifying any content of info.plist in one of my colleague's System,It's working in the other systems pretty fine in Simulator & Device as well .
I really dont know whats happening .
I re-installed my XCODE but the issue remained same .
I added my framework in to the Embedded binaries also .
i disabled Bit-code both in my project and in the framework's project also .
 
For your reference I'm posting the complete error below .
 

dyld: Library not loaded: @rpath/custom_framework.framework/custom_framework
  Referenced from: /private/var/mobile/Containers/Bundle/Application/632142A6-4485-41D1-8A65-238112513129/MY_APP.app/MY_APP
  Reason: no suitable image found.  Did find:
    /private/var/mobile/Containers/Bundle/Application/632142A6-4485-41D1-8A65-238112513129/MY_APP.app/Frameworks/custom_framework.framework/custom_framework: mmap() error 1 at address=0x008C2000, size=0x0000C000 segment=__TEXT in Segment::map() mapping /private/var/mobile/Containers/Bundle/Application/632142A6-4485-41D1-8A65-238112513129/MY_APP.app/Frameworks/custom_framework.framework/custom_framework
 

Answer

FYI,

Dynamic library loading has been introduced from iOS 8.1,Please take a note of this,

Hope this helps you in someway as work around.

Thanks, janu.