
iOS Error
大大大大大桃子
这个作者很懒,什么都没留下…
展开
-
iOS 10相机崩溃 The app's Info.plist must contain an NSCameraUsageDescription key with a string value
报错: This app has crashed because it attempted to access privacy-sensitive data without a usage description. The app’s Info.plist must contain an NSCameraUsageDescription key with a string value explai原创 2016-11-02 14:26:37 · 6302 阅读 · 0 评论 -
Error: An App ID with identifier "*****" is not avaliable. Please enter a different string.
Error: An App ID with identifier "*****" is not avaliable. Please enter a different string.错误原因是这个bundle ID已经被别人提前占用了.这种错误一般发生在你运行别人的项目.原创 2015-08-03 10:42:14 · 17941 阅读 · 0 评论 -
iWatch报错: Fail to code sign "***" No valid signing identities (i.e. certificate and private key pair
iWatch报错: Fail to code sign "***" No valid signing identities (i.e. certificate and private key pair) matching the team ID "****" were found.原创 2015-08-01 15:36:42 · 1525 阅读 · 0 评论 -
X-code7 beta error: warning: Is a directory
X-code7 beta error: warning: Is a directory原创 2015-08-01 19:12:26 · 1077 阅读 · 0 评论 -
error: WatchKit App doesn't contain any WatchKit Extensions whose WKAppBundleIdentifier matches "***
error: WatchKit App doesn't contain any WatchKit Extensions whose WKAppBundleIdentifier matches "*****". Verify that the value if WKAppBundleIdentifier in your WatchKit Extension's Info.plist matches the value of CFBundleIndetifier in your WatchKit App's I原创 2015-08-01 19:21:14 · 6076 阅读 · 0 评论 -
如何运行从网上下载的iWatch项目详细步骤.
如何运行从网上下载的iWatch项目详细步骤.错误1: Fail to code sign "***" No valid signing identities (i.e. certificate and private key pair) matching the team ID "****" were found.错误2: Unable to find a team with the given Team ID '****' to which you belong. Please contact Ap原创 2015-08-01 15:23:29 · 19060 阅读 · 3 评论 -
iWatch error: Embedded binary's bundle identifier is not prefixed with the parent app's bundle ident
error: Embedded binary's bundle identifier is not prefixed with the parent app's bundle identifier.错误原因: iPhone APP, watch APP 和 watch extension 三者的bundle ID 不符合苹果的命名规范.其命名规范必须遵循固定的格式.原创 2015-08-01 15:47:23 · 9628 阅读 · 0 评论 -
Cannot find an initializer for type '[(String)]' that accepts an argument list of type '(LazyForward
Swift编译错误: Cannot find an initializer for type '[(String)]' that accepts an argument list of type '(LazyForwardCollection<MapCollectionView<Dictionary<Int, String>, Int>>)'原创 2015-07-15 18:05:34 · 1698 阅读 · 0 评论 -
Swift Compiler Error Arithmetic operation '** ' (on type '**') results in an overflow (溢出运算符'&+')
Swift Compiler Error Arithmetic operation '****** ' (on type '****') results in an overflow 错误代码:错误原因是数值运算中出现溢出情况.其结果超过了UInt8的0~255的范围. 和OC不同的是默认不允许在运算中数值溢出.但可以使用溢出运算符来运算原创 2015-07-07 16:11:49 · 2593 阅读 · 0 评论 -
Swift Error fatal error: unexpectedly found nil while unwrapping an Optional value
Swift Error fatal error: unexpectedly found nil while unwrapping an Optional value 强制解包(forced unwrapping)原创 2015-07-07 10:49:37 · 13994 阅读 · 0 评论 -
X-code beta 开发iWatch项目,运行没有错误,但是某些操作一点就崩,而且找不错误的原因场景一
X-code beta 开发iWatch项目,运行没有错误,但是某些操作一点就崩,而且找不错误的原因场景一最近在写iWatch的项目,遇到一个很奇葩的问题.运行完全没有问题的demo,在我升级到watch OS beta 3 以后,一获取心率数据就崩,而且完全找不到错误的原因.Xcode也不报错.后来帮朋友改他的项目,发现他项目的好多方法在我的Xcode里面都报错,说找不到该方法.然后我就点进头文件查看,发现方法名都改了.后来我问他Xcode的版本,才发现原来Xcode 7 刚更新到beta 4. 而我还原创 2015-08-04 11:29:13 · 902 阅读 · 0 评论 -
Xcode 报错: Extra argument in call
Xcode 报错: Extra argument in call原创 2015-08-04 11:49:59 · 5491 阅读 · 0 评论 -
share sdk分享失败-QQAPI- QQApi.m:235 param error: preview image data is too big
share sdk分享失败-QQAPI- QQApi.m:235 param error: preview image data is too big顾名思义,分享的图片太大了,把图片压缩一下就好了.原创 2015-11-30 11:51:54 · 5295 阅读 · 0 评论 -
iOS 7 使用CGAffineTransformMakeRotation在autolayout布局下旋转图片变形.
今天将项目的布局换成了autolayout,结果遇到一个很奇葩的问题,使用CGAffineTransformMakeRotation旋转图片时,在iOS 8以上的版本都没有问题,但是在iOS 7上出现了怪怪的效果.想都不用想肯定是autolayout的问题喽,简单粗暴的方法,换回手码呗.可是对于一个懒货来说,能拖线解决的绝对不手码.因为不同于之前了嘛,现在4种屏幕了,手码好累错误原因:原创 2015-12-15 17:54:36 · 2845 阅读 · 0 评论 -
-canOpenURL: failed for URL: "wechat://" - error: "This app is not allowed to query for scheme wech
-canOpenURL: failed for URL: "wechat://" - error: "This app is not allowed to query for scheme wech原创 2015-10-12 10:58:59 · 5135 阅读 · 0 评论 -
"This app is not allowed to query for scheme ***"
Xcode报错: -canOpenURL: failed for URL: "weixin://app/*************/" - error: "This app is not allowed to query for scheme weixin"iOS 9系统策略更新,限制了http协议的访问,此外应用需要在“Info.plist”中将要使用的URL Schemes列为白名单,才可正常检查其他应用是否安装。受此影响,当你的应用在iOS 9中需要使用微信SDK的相关能力(分享、收藏、支付、登原创 2015-09-23 18:37:29 · 16610 阅读 · 0 评论 -
Undefined symbols for architecture armv7: "_OBJC_CLASS_$_CTTelephonyNetworkInfo", referenced from:
Xcode报错: Undefined symbols for architecture armv7: "_OBJC_CLASS_$_CTTelephonyNetworkInfo", referenced from: objc-class-ref in libWeChatSDK.a(MTAHelper.o)ld: symbol(s) not found for architecture armv7clang: error: linker command failed with exit c原创 2015-09-22 17:08:18 · 5324 阅读 · 0 评论 -
*** does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE
*** does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. for architecture armv7由于Xcode自身的一些小问题,运行项目时一直报错 错误1的内容.然后我就检查项目友盟这个库的依赖呀原创 2015-09-17 11:37:10 · 10145 阅读 · 3 评论 -
#import <Cocoa/Cocoa.h> 报错 Lexical or Preprocessor Issue 'Cocoa/Cocoa.h' file not found
#import <Cocoa/Cocoa.h> 报错 Lexical or Preprocessor Issue 'Cocoa/Cocoa.h' file not found错误原因: Cocoa是Mac的库,在iOS上不支持.解决办法: #import <Foundation/Foundation.h>原创 2015-09-16 15:02:38 · 3805 阅读 · 0 评论 -
iWatch报错: Missing com.apple.developer.healthkit entitlement
iWatch 开发 Optional (Error "Missing come.apple.developer.healthkit entitlement.") Userinfo = 0X15daab50(NSLocalizedDescription = Missing com.apple.developer.healthkit entitlement.))原创 2015-07-24 12:34:53 · 3970 阅读 · 0 评论 -
iWatch报错: Authorizationsession time out
iWatch报错: Optional (Error Domin = com.apple.healthkit Code = 100 "Autherization session time out" Userinfo = 0x16d79da0 {NSLocalizedDescription = Authorizationsession time out})原创 2015-07-24 15:23:28 · 1084 阅读 · 0 评论 -
Swift Compiler Error Type 'int' does not conform to protocol 'Boolean Type'
Swift Compiler Error Type 'int' does not conform to protocol 'Boolean Type'原创 2015-07-06 14:55:45 · 1784 阅读 · 0 评论 -
Swift Compiler Error Binary oprator '+' cannot be applied to operands of type 'UInt16' and 'UInt8'
Swift Compiler Error Binary oprator '+' cannot be applied to operands of type 'UInt16' and 'UInt8'Swift Compiler Error Binary oprator '+' cannot be applied to operands of type 'Int' and 'Double'原创 2015-07-06 11:30:20 · 1597 阅读 · 0 评论 -
iOS报错[__NSArrayI removeObjectAtIndex:]: unrecognized selector sent to instance
将NSArray转成NSMutableArray的时候要这样写 NSMutableArray *dbArray = [NSMutableArray array]; NSArray *array = [..........]; dbArray = [array mutableCopy];如果将mutableCopy换成copy 就会报以上错误或者[__NSArray原创 2015-03-02 23:34:14 · 5215 阅读 · 0 评论 -
iOS 报错 setValue:forUndefinedKey:]: this class is not key value coding
storyboard连线出问题了 检查连线原创 2015-02-17 20:53:37 · 1651 阅读 · 0 评论 -
X-code 报错Installation of apps is prohibited by a policy on the device.
打开设置 -> 通用 -> 访问限制 -> 安装应用程序按钮打开原创 2015-02-06 14:24:24 · 1313 阅读 · 0 评论 -
X-code 报错dyld: Symbol not found: _NSURLSessionTransferSizeUnknown
今天在iPhone4 6.0系统上运行项目 报错dyld: Symbol not found: _NSURLSessionTransferSizeUnknown.使用AFN2.0之前就已经知道6.0不支持session.所以根本没有使用session的方便,怎么还会报错.其实AFN2.0就是算你没有使用session的方法,也已经关联了session部分的文件.所以如果你使用了Cocoa原创 2015-02-06 15:25:01 · 2613 阅读 · 0 评论 -
关于QQ第三方授权登录总是提示安装最新版的QQ问题
QQ第三方授权登录,总是提示安装最新版的QQ,但明明已经是最新版的QQ了X-code6 默认没有单独设置Bundle display name,但SDK需要它的值,所以要设置上.参考:http://bbs.umeng.com/thread-6395-1-1.html转载 2014-12-29 17:21:01 · 8630 阅读 · 0 评论 -
cocoaPods 报错ld: library not found for -lPods
cocoaPods 报错ld: library not found for -lPods旧项目在X-code6里面使用cocoapodsX-code -> preferences -> locations -> 点击Advanced 改成Unique 或者Custom 的Relative to Workspace原创 2014-12-25 21:22:46 · 1700 阅读 · 0 评论 -
AFNetworking json解析报错 unrecognized selector sent to instance
AFNetworking 解析数据报错 unrecognized selector sent to instance将返回的数据 json序列化id response = [NSJSONSerializationJSONObjectWithData:responseObject options:NSJSONReadingMutableContainerserror:原创 2014-12-25 21:56:18 · 1495 阅读 · 0 评论 -
AFNetworking 报错 Request failed: unacceptable content-type: text/html
AFNetworking 报错 Request failed: unacceptable content-type: text/html添加 AFHTTPRequestOperationManager *mgr = [AFHTTPRequestOperationManagermanager]; mgr.responseSerializer = [AFHTTPR原创 2014-12-25 21:14:57 · 998 阅读 · 0 评论 -
iOS 使用X-code打包
问题1:An SSL error has occurred and a secure connection to the server cannot be made 此问题是因为在打包的时候连接不上官网的证书.开始尝试网上的解决办法,把DNS改成114.114.114.114,但是改完以后发现网都上不去了. 后来突然脑残的发现,原来连官网都上不去了.然后换了个网络就咩有问题原创 2015-01-27 09:25:25 · 1669 阅读 · 0 评论 -
关于UILocalNotification 的soundName问题(通知的自定义声音问题)
最近写闹钟项目.设置了通知的soundName,但还是提醒的是系统声音.1.声音文件必须在项目的mainBundle中.将文件拖入项目的时候默认没有 添加到target中.所以要勾选add target.在播放的时候可以先打印一下文件路径看看存不存在 NSString *path = [[NSBundle mainBundle]pathForResource:@"sound" ofTy原创 2015-03-19 11:51:57 · 4843 阅读 · 0 评论 -
iOS 报错Collection <__NSArrayM: 0x7fdf0b8154c0> was mutated while being enumerated.'
顾名思义,在遍历NSMutableArray的时候对其进行了操作.1. 最简单的方法是创建一个新的相同的数组,一个用来进行遍历,一个进行操作.错误写法是: NSMutableArray *dbArray = [....]; for (... in dbArray) { if (.....) { [dbArray re原创 2015-03-02 23:59:59 · 1058 阅读 · 0 评论 -
Swift Compiler Error Integer literal overflows when stored into 'UInt8'
Swift Compiler Error Integer literal overflows when stored into 'UInt8'原创 2015-07-06 11:56:29 · 2438 阅读 · 0 评论 -
使用cocoapods install友盟时报错Error installing UMengAnalytics
报错:[!] /usr/bin/unzip /Users/soindy/Documents/SmartThermo/ios/SmartThermo/Pods/UMengAnalytics/file.zip -d /Users/soindy/Documents/SmartThermo/ios/SmartThermo/Pods/UMengAnalyticsArchive原创 2015-06-12 13:22:57 · 6254 阅读 · 0 评论 -
Swift Compiler Error Cannot assign to the result of this expression
Swift Compiler Error Cannot assign to the result of this expression原创 2015-07-08 10:38:00 · 1272 阅读 · 0 评论 -
iOS duplicate symbol 错误
1. 项目中有相同名字的文件(可能自己写了2个一样的也可能和其他库名字一样) 看项目中有没有相同的名字的文件.这个问题会出现在初学者或者写项目太多的人身上,初学者有时候手忙脚乱的,就把文件名起重复了,而写代码太多了,都有自己封装好的代码,都是直接拿来用,可能就和当前项目的文件名重复了.而对于我们写外包项目的来说,这种情况更容易发生了.一些特定的模块比如登录,分享什么的都是封装的模块.放进原创 2015-05-30 14:59:57 · 1525 阅读 · 0 评论 -
Error Domain=NSCocoaErrorDomain Code=3000 "未找到应用程序的“aps-environment”的授权字符串" UserInfo=0x17426e940 {NS
注册远程通知是报错 Error Domain=NSCocoaErrorDomain Code=3000 "未找到应用程序的“aps-environment”的授权字符串" UserInfo=0x17426e940 {NSLocalizedDescription=未找到应用程序的“aps-environment”的授权字符串} 解决方法:重新生成一下证书,要生成prod原创 2015-06-17 19:01:43 · 9532 阅读 · 0 评论 -
X-code Pods was rejected as an implicit dependency for 'libPods.a' because its architectures 'armv7'
CocoaPods要求使用CocoaPods 的项目要将 Debug 的Build Active Architecture Only 改为NO,原创 2015-05-15 15:05:17 · 936 阅读 · 0 评论