iOS开发错误日志
2016-01-07 11:43
399 查看
错误提示: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中的连接实效。
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探索之从拍照中获取图像对应的ALAsset
- 自定义iOS上双击Home键截屏切换,保护应用程序隐私
- iOS Newbie - Xcode 7 & iOS 9 前篇(非技术)
- iOS应用程序的生命周期
- iOS 百度地图_回调不走_onGetGeoCodeResult不执行
- Mac&iOS Socket
- 浅谈iOS Push 在iOS6/7/8/9中的进化
- IOS 枚举定义
- 微软自拍应用iOS版发布
- iOS类别(Category)和扩展(Extension)
- ios 隐藏顶部状态栏
- IOS后台运行 之 后台播放音乐
- IOS为文字和图片添加阴影效果
- iOS每日一记----------密码输入工具 InputPasswordView
- ios9下,使用storyboard进行多人合作新改变/
- iOS 摇一摇
- IOS开发NSBundle对象使用详解
- iOS 报错问题大搜集(常更)
- ios开发必备第三方库
- iOS数据持久化之NSKeyedArchiver(归档)