cocoaPods 真机报错

dyld`dyld_fatal_error:

->  0x120069088 <+0>: brk    #0x3

 

 

dyld: Library not loaded: @rpath/SDWebImage.framework/SDWebImage

  Referenced from: /var/containers/Bundle/Application/FEA32462-DCC6-41B2-98FE-635DD41C41F7/nococoapods.app/nococoapods

  Reason: no suitable image found.  Did find:

/private/var/containers/Bundle/Application/FEA32462-DCC6-41B2-98FE-635DD41C41F7/nococoapods.app/Frameworks/SDWebImage.framework/SDWebImage: mmap() errno=1 validating first page of '/private/var/containers/Bundle/Application/FEA32462-DCC6-41B2-98FE-635DD41C41F7/nococoapods.app/Frameworks/SDWebImage.framework/SDWebImage'

/private/var/containers/Bundle/Application/FEA32462-DCC6-41B2-98FE-635DD41C41F7/nococoapods.app/Frameworks/SDWebImage.framework/SDWebImage: mmap() errno=1 validating first page of '/private/var/containers/Bundle/Application/FEA32462-DCC6-41B2-98FE-635DD41C41F7/nococoapods.app/Frameworks/SDWebImage.framework/SDWebImage'

/private/var/containers/Bundle/Application/FEA32462-DCC6-41B2-98FE-635DD41C41F7/nococoapods.app/Frameworks/SDWebImage.framework/SDWebImage: mma(lldb) 

 

 

 

 

解决办法: 1、卸载cocoapods :

        sudo gem uninstall cocoapods -v 0.35.0    

        或者

        sudo gem uninstall cocoapods

      2、继续卸载

         sudo gem uninstall cocoapods-core -v 1.0.0

        或者

        sudo gem uninstall cocoapods-core

      3、清除cocoapods缓存

         sudo rm -fr ~/.cocoapods/repos/master 

      4、重装cocoapods

        sudo gem install -n /usr/local/bin cocoapods --pre

posted @ 2016-05-15 11:21  sunflower-lhb  阅读(412)  评论(0编辑  收藏  举报