0

Hi I'm making an application for ios that uses a pod library called Signature.Framework (Substantially allows you to make the signature). When I start the application on the XCode simulator everything works perfectly when I go to test the application on the physical device, I get the error below. What is more due and how can I solve it?

Error:

dyld: Library not loaded: @rpath/Signature.framework/Signature
  Referenced from: /var/containers/Bundle/Application/DD816747-0B6F-46FB-93E6-6C28DCFFED7F/myapp.app/myapp
  Reason: no suitable image found.  Did find:
    /private/var/containers/Bundle/Application/DD816747-0B6F-46FB-93E6-6C28DCFFED7F/myapp.app/Frameworks/Signature.framework/Signature: code signing blocked mmap() of '/private/var/containers/Bundle/Application/DD816747-0B6F-46FB-93E6-6C28DCFFED7F/myapp.app/Frameworks/Signature.framework/Signature'
    /private/var/containers/Bundle/Application/DD816747-0B6F-46FB-93E6-6C28DCFFED7F/myapp.app/Frameworks/Signature.framework/Signature: code signing blocked mmap() of '/private/var/containers/Bundle/Application/DD816747-0B6F-46FB-93E6-6C28DCFFED7F/myapp.app/Frameworks/Signature.framework/Signature'
    /private/var/containers/Bundle/Application/DD816747-0B6F-46FB-93E6-6C28DCFFED7F/myapp.app/Frameworks/Signature.framework/Signature: stat() failed with errno=1
    /private/var/containers/Bundle/Application/DD816747-0B6F-46FB-93E6-6C28DCFFED7F/myapp.app/Frameworks/Signature.framework/Signature: code signing blocked mmap() of '/private/var/containers/Bundle/Application/DD816747-0B6F-46FB-93E6-6C28DCFFED7F/myapp.app/Frameworks/Signature.framework/Signature'
    /private/var/containers/Bundle/Application/DD816747-0B6F-46FB-93E6-6C28DCFFED7F/myapp.app/Frameworks/Signature.framework/Signature: stat() failed with errno=1
(lldb) 

Linking:

enter image description here

riki
  • 892
  • 2
  • 11
  • 28
  • https://stackoverflow.com/questions/24333981/ios-app-with-framework-crashed-on-device-dyld-library-not-loaded-xcode-6-beta check this link – chirag shah Jul 25 '18 at 06:54
  • @chiragshah I already tried with the answers in this question but it does not work – riki Jul 25 '18 at 06:56
  • https://stackoverflow.com/questions/30053144/dyld-library-not-loaded-with-cocoapods-0-37-and-xcode-6-3/30166310#30166310 try this out – chirag shah Jul 25 '18 at 06:58
  • @chiragshah I also tried these solutions, but nothing – riki Jul 25 '18 at 07:07

1 Answers1

2

Solution 1

In my case i set the Pods.framework to optional and it fixed the issue , It wasn't being copied to device by the .sh script and so the app crashed:

Picture

Solution 2

remove your project from DerivedData

User/YourPcName/Library/Developer/Xcode/DerivedData/ProjectNameFolder

Mohammad Reza Koohkan
  • 1,648
  • 1
  • 11
  • 29