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

时间: 2024-10-09 21:46:34

cocoaPods 真机报错的相关文章

真机报错:dyld: Symbol not found:OBJC_CLASS_$_CIKernel

环境: mac10.10 xcode6.1 错误描述: 在模拟器上正常运行,在真机上报错.dyld: Symbol not found:OBJC_CLASS_$_CIKernel 错误详情: dyld: Symbol not found:OBJC_CLASS_$_CIKernel Referenced from : /var/mobile/Application-. 感觉就是 coreImage 这个框架出了问题,但是模拟器没有问题.最后在 stackflow 中找到了解决办法: 把对应的框架由

xcode运行到真机报错原因之加载图片保存格式问题

当出现以上错误的时候: 是提示的png并不是ps导出的png,而是手动修改jpeg后缀名为png,在模拟器上不会报错,但在真机,不 识别这种所谓  的“png”图片.(随便批下美工) 这是因为png图片的问题,png图片在存储的时候有一个NOT INTERLACED/INTERLACED(无交错/交错)的选项,因为设计师在切图的时候的存储错误,图片在XCode中就会报这个错误,但是还是会编译成功并运行,请设计师将图片重新按无交错存储就行了.

React Native真机报错总结

一.run-android报红错:unable to load script from assets 'index.android.bundl' 解决: 1.进入\android\app\src\main 2.新建assets文件夹 3.执行 react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.andro

Xcode真机报错clang: error: linker command failed with exit code 1 (use -v to see invocation)

出现这种错误,如下图所示,搜索bitcode,置为NO即可.

iOS10遇到有推送的Demo真机报错的解决

1.打开project.pbxproj,搜com.apple.Push 改成enabled = 0(在projectName.xcodeproj文件上右键"显示包内容",用文本编辑器打开"project.pbxproj"文件) 2.在build settings里搜索code sign,并把后面的路径清空 3.重新编译

cocoapods导入afnetworking报错问题

使用cocoapods导入afnetworking报错,原因是当前xcode的版本低使用了最新版本的afnetworking,就会出现如下错误,这时候只只要使用终端,更新使用低版本的afnetwork ing即可. 如果是其他情况下导致出现了APPLE   LLVM  6.0 Error 错误,可以尝试去资源库--Developer--xcode--DerivedData文件夾,删除 DerivedData文件夹下的内容(如DerivedData文件夹下无重要文件).如无法全部删除,则删除 De

Cocoapods ----- pod install报错

1.问题描述: 将MAC更新到最新版本后,使用cocoapods安装一些第三发库,执行pod install的时候报错: -bash:/usr/local/bin/pod:/System/Library/Frameworks/Ruby.framework/Versions/2/0/usr/bin/ruby: bad interpreter : No such file or directory 2.解决办法: (1)gem sources -l  // 查看所有gem源,检查是否是最新的 (2)

【iOS】更新 CocoaPods 后 Podfile 报错

更新了 CocoaPods 后,再执行 "pod install" 时报了如下错误: [!] The dependency `AFOnoResponseSerializer` is not used in any concrete target. The dependency `SDWebImage` is not used in any concrete target. The dependency `SSKeychain` is not used in any concrete t

virtualbox启动虚机报错:The VM session was closed before any attempt to power it on.

解决方法: image.png 点击清除即可. 或者在控制>清除保存的状态.然后重启虚机即可! 原文地址:https://www.cnblogs.com/SofuBlue/p/11237275.html