您的位置:首页 > 移动开发 > IOS开发

[2014-10-18]iOS8开发错误整理(持…

2015-06-26 09:20 459 查看
1、问题一:

file'/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UITableView.h'
has been modified since the precompiled header
'/Users/pengrun/Library/Developer/Xcode/DerivedData/project***-glkewxbzvsfsubbpgmwoqhfxeutk/Build/Intermediates/PrecompiledHeaders/project***-Prefix-algjbegmcymyyrgoosigycqetmoe/project***-Prefix.pch.pch'
was built

解决办法:先退出xcode,再把/Users/pengrun/Library/Developer/Xcode/DerivedData/下面的东西都删除(DerivedData本身不要删),再启动xcode,再rebuild.
(Pengrun 换成你的电脑名。)

2、问题二:

error: failed to
launch"/private/var/mobile/Applications/XX"-- timed out waiting for
app to launch
解决办法:证书不对,比如,debug里面选了release证书

3、问题三:

CodeSign error: code signing is required for product type
'Application' in SDK 'iOS 8.0'





解决办法:

把Any iOS SDK 从 Dont Code
Sign改为developer就好了



4、问题四

objc_msgSend()报错Too many arguments to function call ,expected
0,have3

解决办法:

Build Setting--> Apple LLVM 6.0 - Preprocessing--> Enable
Strict Checking of objc_msgSend Calls 改为
NO
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: