iOS开发错误日志
错误提示:fatal error: file '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIWebView.h' has been modified since the precompiled header '/Users/Rain/Library/Developer/Xcode/DerivedData/ModuleCache/VAU3ZWN6T3KV/UIKit-2M4VYLEDI34V0.pcm' was built
note: please rebuild precompiled header '/Users/Rain/Library/Developer/Xcode/DerivedData/ModuleCache/VAU3ZWN6T3KV/UIKit-2M4VYLEDI34V0.pcm'
1 error generated.
解决办法:删除以上标记的’/Users/imac/Library/Developer/Xcode/DerivedData/ModuleCache/1M29HZNHW3I5B/UIKit-2M4VYLEDI34V0.pcm文件。
删除之后好有可能出现fatal error: could not build module ‘UIKit’错误提示, 办法是删除/Users/imac/Library/Developer/Xcode/DerivedData/ModuleCache文件夹,重新编译、运行方可。
注意:imac下的Library(资源库)一般都隐藏啦,进入终端,输入chflags nohidden ~/Library/就可以了。
错误提示:Failed to instantiate the default view controller for UIMainStoryboardFile 'Main' - perhaps the designated entry point is not set?
原因分析:在StoryBoard中没有一个view controller设置了Initial Scene。
解决方案:在Storyboard中,选择一个view conroller作为story board的第一启动界面。如果导航控制器是初始界面,那应该把导航控制器设为初始启动界面,而不是登录界面。
错误提示:target specifies product type 'com.Apple.product-type.bundle.ui-testing', but there's no such product type for the 'iPhonesimulator' platform!
解决方案:http://www.07net01.com/2015/09/930192.html
错误提示:ld: library not found for -lPods-AFNetworking
clang: error: linker command failed with exit code 1 (use -v to see invocation)
解决方案:下载的开源APP使用了使用了CocoaPods,要使用workspace打开,而不是直接打开xcodeproj文件。
错误提示:diff: /../Podfile.lock: No such file or directory
diff: /Manifest.lock: No such file or directory
error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.
解决办法:1.安装CocoaPods;2.用pod install命令导入项目依赖框架;3.打开xcworkspace文件(不要用xcproj文件打开)
安装依赖框架需要定位到项目所在目录“cd /Users/Rain/Documents/开源/开源APP/GreatReader-master”再执行“pod install”命令(这个命令会运行项目里包含的Podfile文件)
错误提示:Unable to add a source with url `https://github.com/CocoaPods/Specs.git` named `master`
解决办法:sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer,后面的地址可以打开Xcode显示包内容,找到那个文件夹拖到终端里。
错误提示:"this class is not key value coding-compliant for the key ..."
解决办法:一般此问题都是由Interface Build与代码中IBOutlet的连接所引起的。可能是在代码中对IBOutlet的名称进行了修改,导致Interface Build中的连接实效。
iOS开发错误日志的更多相关文章
- ios开发——错误总结篇&开发中常见错误和警告总结(四)
ios开发——开发总结&开发中常见错误和警告总结(四) 网易彩票实战总结(错误) 错误总结之类的实现 经典错误之重复定义与导入错误 经典错误关于父类的实现 通知对象: 控制器的定义 Xcode ...
- IOS开发错误
After modifying system headers, please delete the module cache at '/Users/XXX/Library/Developer/Xcod ...
- ios开发错误之: Undefined symbols for architecture x86_64
错误如下: Undefined symbols for architecture x86_64: "_OBJC_CLASS_$_RoutingHTTPServer", refere ...
- ios开发错误笔记
今天的奇葩错误,最后解决方式是删除了手机上面的快捷方式,然后再clean,然后再重启了xcode.无语了,xcode也经常出些奇葩问题,真无语啊. ios技术交流群:378501081..期待你加入. ...
- 开发错误日志之Unix/Linux命令未执行或无结果等且程序无错误
在Unix/Linux环境中开发时,特别要注意权限问题,否则经常找不到错误的原因,其实就是因为权限所致.
- iOS开发错误汇总
人非圣贤孰能无过 dyld: Library not loaded: /... 过而能改善莫大焉 iOS下dyld: Library not loaded: 错误信息解决方案
- iOS开发进阶 - 日志输出框架CocoaLumberjack与XcodeColors插件的简单使用(swift版)
CocoaLumberjack是Mac和iOS上一个集快捷.简单.强大和灵活于一身的日志框架.XcodeColors是用于控制台着色的工具,配合着CocoaLumberjack用有更好的效果,不废话, ...
- IOS开发错误提示原因集合-----长期更新
"[__NSCFConstantString size]: unrecognized selector sent to instance." =>将NSString类型的参数 ...
- 开发错误日志之FTP协议传输文件问题
从开发端用FTP协议向服务器(Linux系统)传输文件时,cat -A查询文件内容中行尾会有^M出现. 解决方案:改用SFTP协议上传文件.
随机推荐
- So easy Webservice 5.WSDL 文件说明
WSDL – WebService Description Language – Web服务描述语言 通过XML形式说明服务在什么地方-地址. 通过XML形式说明服务提供什么样的方法 – 如何调用. ...
- React生命周期浅析
引言 关于React的生命周期API,官网,有着详细说明.但在实际写代码的过程中,这些说明不能解决所有的疑惑. 所以我列举了一些编码中常见用例,供大家参考. 示例代码如下 /* use case 1. ...
- DICOM标准相关资料
由于需要阅读影像,对DICOM需要先熟悉起来.关于DICOM,找了一些资料,可以学习.如下: DICOM标准:http://dicom.nema.org/standard.html 中文 DICOM ...
- XAF使用数据库访问层缓存的提升性能
很多时候,为了提升性能,我们可以给数据库访问层做缓存. 以下几步可以完成这个任务:1. 使用自定义的 XPObjectSpaceProvider1.1. 创建自定义的 XPObjectSpacePro ...
- intanceof以及引出的__proto__和prototype
instanceof运算代码 function instance_of(L, R) { //L 表示左表达式,R 表示右表达式 var O = R.prototype; // 取 R 的显示原型 L ...
- mysql 索引的原理
1.考虑下面的情况,mysql> desc student;+----------+-------------+------+-----+---------+-------+| Field | ...
- ajax请求成功或失败的参数
success:function(response, status, xhr){ }, error:function(xhr, errorText, errorType){ alert(errorTe ...
- [html] Webp、Apng图片格式
WebP格式,谷歌(google)开发的一种旨在加快图片加载速度的图片格式.图片压缩体积大约只有JPEG的2/3,并能节省大量的服务器带宽资源和数据空间. 与JPEG相同,WebP是一种有损压缩.但谷 ...
- Maven项目的发布,发布到Nexus
原文:http://blog.csdn.net/mexican_jacky/article/details/50277505 第一步: 配置信息如下: <!-- 发布项目的配置 --> ...
- haskell rust相关文章
Combining Rust and Haskell http://tab.snarc.org/posts/haskell/2015-09-29-rust-with-haskell.html