前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >错误——持续更新

错误——持续更新

作者头像
用户1451823
发布2018-09-13 17:17:46
1.7K0
发布2018-09-13 17:17:46
举报
文章被收录于专栏:DannyHoo的专栏

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://cloud.tencent.com/developer/article/1338166

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 objects0'

原因:  有一个数组为空

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 objects0'

原因:有空的地方

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
  • 感想:苹果公司更加注重安全了
本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
原始发表:2015年09月18日,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档