this class is not key value coding-compliant for the key myButton
原因:xib连线时出错 解决:将控件一起删除掉
原因:映射时出错
[HeadTitleApplication pics]: unrecognized selector sent to instance 0x7fc473744220'
原因:没有找到地址
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'unable to dequeue a cell with identifier InstagramFeedTableViewCellCellIdentifider111 - must register a nib or a class for the identifier or connect a prototype cell in a storyboard'
local declaration of 'tableView' hides instance variable
当地宣言tableView隐藏实例变量 解决:可能有重名的
[PictureTableViewCell updateCellWithApplication:andIndexPath:]: unrecognized selector sent to instance 0x7fd4f5987400'
解决:单元格标识 字符串可能相同
linker command failed with exit code 1 (use -v to see invocation)
#warning:尚未配置[新浪微博]URL Scheme:sinaweibosso.568898243
解决:info.plist 文件中的Bundle Identifier有问题 可能和创建应用时填写的不一致
iPad mini2 may be running a version of iOS that is not supported by this version of Xcode.
解决:软件无法解决, 只能升级xcode的SDK或者ipad降级
Your account already has a valid ios distribution certificate : 你的账户已经有一个有效的ios分布证书
if you have your signing identity on another mac, you can import a developer profile. you can also revoke the current certificate and request again: 如果你签署的身份在另一个mac,你可以导入一个开发人员。你也可以取消当前证书并再次请求
Command /usr/bin/codesign failed with exit code 1
解决:我没有双击证书
The app icon set named "AppIcon" did not have any applicable content
解决:
An error was encountered while running (Domain = FBSOpenApplicationErrorDomain, Code = 4)
解决:重置模拟器
问题:导入的shareSDK第三方明明导入了工程却报错找不到这个文件
解决:删除再导入一次 (删除不是删除到垃圾桶中) 不需要的一些库也可以删除
报错:
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_MobClick", referenced from:
objc-class-ref in AppDelegate.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
原因:没有导入lib....解决:导入lib
error:redirect_uri_mismatch
原因:新浪微博的授权设置没有设置
解决:

[__NSPlaceholderArray initWithObjects:count:]: attempt to insert nil object from objects[0]'
原因: 有一个数组为空
reason: '[<PersonModel 0x7fe97b7180d0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key age1.'
原因:使用KVC赋值时出现的错误,可能没有age1这个key
使用xcode6.1创建的项目, 添加新浪SDK,运行[WeiboSDK registerApp:kAppKey];这一步崩溃,抛出以下
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSDictionaryM weibosdk_WBSDKJSONString]: unrecognized selector sent to instance 0x7fb7315a89e0'
解决方法:
在 Build Settings 中的 Other Linker Flags 修改为 -all_load
[__NSPlaceholderArray initWithObjects:count:]: attempt to insert nil object from objects[0]'
原因:有空的地方
400: error -66680
原因:设备原因,设备无法播放音乐. 我的设备插上耳机便可以用了
webView无法加载
Error Domain=WebKitErrorDomain Code=101 "The URL can’t be shown" UserInfo=0x7fa8540aa2d0 {NSErrorFailingURLStringKey=itms-appss://itunes.apple.com/cn/app/id583687968?mt=8, NSLocalizedDescription=The URL can’t be shown, NSErrorFailingURLKey=itms-appss://itunes.apple.com/cn/app/id583687968?mt=8}
Error Domain=WebKitErrorDomain Code=102 "Frame load interrupted" UserInfo=0x7fb692b2dd70 {NSErrorFailingURLStringKey=itms-appss://itunes.apple.com/cn/app/id591600601?mt=8, NSLocalizedDescription=Frame load interrupted, NSErrorFailingURLKey=itms-appss://itunes.apple.com/cn/app/id591600601?mt=8}
原因:地址是一个itunes地址,无法用webView加载,可以直接跳到下载页, openURL:
18730616786
This NSPersistentStoreCoordinator has no persistent stores.
上网搜了下,大意是说可能在改变entities的atrributes时损坏了存储文件。直接把存储文件删除即可。
我试了下,果然就ok了
使用xcode6.1创建的项目, 添加新浪SDK,运行[WeiboSDK registerApp:kAppKey];这一步崩溃,抛出以下
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSDictionaryM weibosdk_WBSDKJSONString]: unrecognized selector sent to instance 0x7fb7315a89e0'
解决方法:
在 Build Settings 中的 Other Linker Flags 修改为 -all_load
Attempted to dereference an invalid ObjC Object or send it an unrecognized selector.
The process has been returned to the state before expression evaluation
安装cocoapos时遇到的问题
[!] /usr/bin/git clone https://github.com/CocoaPods/Specs.git master --depth=1
xcrun: error: active developer path ("/Volumes/Xcode/Xcode.app/Contents/Developer") does not exist, use `xcode-select --switch path/to/Xcode.app` to specify the Xcode that you wish to use for command line developer tools (or see `man xcode-select`)
解决:
sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer
将App 上传到Appstore审核时,提示错误,ERROR ITMS-90049:"This bundle is invalid. The bundle identifier contains disallowed characters. [See the section of the Application Programming Guide entitled The Application Bundle.]"
解决方法:
在项目导航栏搜索Info.plist文件,如下图
找到第三方的info.plist文件,如ShareSDK中的腾讯Bundle文件下的Info.plist文件。
在该文件下添加或者修改以下几个字段:
• Bundle version
• Bundle identifier
• Bundle versions string, short
需要和系统自带的Info.plist文件一样。
The resource could not be loaded because the App Transport Security policy requires the use of a secure connection
翻译:资源不能被加载,因为应用程序传输安全策略需要使用一个安全的连接
解决:
iOS9引入了新特性App Transport Security (ATS)。详情:App Transport Security (ATS)
新特性要求App内访问的网络必须使用HTTPS协议。
但是现在公司的项目使用的是HTTP协议,使用私有加密方式保证数据安全。现在也不能马上改成HTTPS协议传输。
最终找到以下解决办法:
- 在Info.plist中添加NSAppTransportSecurity类型Dictionary。
- 在NSAppTransportSecurity下添加NSAllowsArbitraryLoads类型Boolean,值设为YES
- 感想:苹果公司更加注重安全了