
iOS错误崩溃总结
coding_girl.
这个作者很懒,什么都没留下…
展开
-
Xcode8 Missing file 警告处理
Xcode 提示 Missing file 警告,虽然不影响运行,但是看着就是很不舒服出现这个警告是因为 xcode 找不到隐藏文件造成的解决方案:打开终端输入:defaults write com.apple.finder AppleShowAllFiles YES 回车这句命令的作用是显示 Mac 隐藏文件的然后重新打开 xcode 就没有警告了原创 2017-01-04 14:35:15 · 292 阅读 · 0 评论 -
ios bitcode bundle could not be generated because 'UserszhaoxiaoluHuiLianHuiLianHuiLianLibsJhtMarque
APP运行成功,打包步骤也无遗漏,但是打包总是报错,提示:bitcode bundle could not be generated because ‘UserszhaoxiaoluHuiLianHuiLianHuiLianLibsJhtMarqueeSDKJhtMarqueeSDK.a(JhtHorizontalMarquee.o)’ was built without full bitcode.原创 2017-09-05 09:10:41 · 853 阅读 · 0 评论 -
iOS The 'Apple Developer Program License Agreement' has been updated. In order to access certain mem
自动管理证书时,提示: The ‘Apple Developer Program License Agreement’ has been updated. In order to access certain membership resources, you must accept the latest license agreement.这是苹果提示你:“苹果开发者计划许可协议”已经更新。为了原创 2017-08-23 16:43:59 · 4500 阅读 · 0 评论 -
Xcode8打包上传成功,iTunes构建版本却没有“+”号或看不到应用
Xcode打包上传成功后,我发现iTunes构建版本一直没“+”,我又提交了两次,还是没“+”,我等了一晚上发现还是不显示“+”。原因:iOS10以后,苹果更加注重对用户隐私的保护,APP里边如果需要访问用户隐私,必须做相应的描述,不写描述就相当于没加。相机权限: Privacy - Camera Usage Description 是否允许此App使用您的相机?相册权限: Privacy - Ph原创 2017-09-05 10:51:50 · 2831 阅读 · 0 评论 -
iOS11 不能定位如何解决
系统升级到iOS11之后,发现APP不提示否允许始终访问位置,iBeacon不起作用。我查看了一下手机隐私设置,如图: 原因:因为苹果现在增加了一项新的隐私保护功能 Privacy - Location Always and When In Use Usage Description, 并且原有的 Privacy - Location Always Usage Description 被降级为原创 2017-09-21 09:18:06 · 9843 阅读 · 2 评论 -
linker command failed with exit code 1 错误
这种报错,一般是由于找不到文件所导致,可以从以下几种情况入手。1、多人开发,或者是自己不小心点错,没有注意到可以看到错误中提到了 ManagerAddressVC 这个类,找到这个类,查看右边的Target Membeship,如图:如果没有勾上,点击勾上,然后编译看一下。2、如果添加的第三方是静态库出现这个错误可能因为这个静态库的路原创 2017-11-16 15:42:01 · 3400 阅读 · 0 评论 -
iOS No suitable application records were found. Verify your bundle identifier 'xxx' is correct.
第一种情况:打包工程,Validate 的时候提示: No suitable application records were found. Verify your bundle identifier ‘xxx’ is correct.原因:你没有在 iTunes Connect 中是否建立了对应 bundle id 的 App, 创建好再 Validate 即可。第二种情况:打包好工程,用 A原创 2017-09-05 09:32:04 · 4565 阅读 · 0 评论 -
iOS Unknown type name 'NSString'
用环信做即时通讯,在导入EaseUI的之后报错一堆,如图:解决方法:在pch中引入以下红框内代码原创 2018-01-16 14:13:01 · 437 阅读 · 0 评论 -
iOS11 tableview展开section列表乱跳问题
我做的是tableview折叠列表,再展开每个section对应的列表时,tableview总是会出现胡乱漂移,iOS10及以下是没有问题的,这是iOS11的bug。解决方法://初始化tableview时,添加代码如下self.table.estimatedRowHeight = 0;self.table.estimatedSectionHeaderHeight = 0;self....原创 2018-03-08 11:09:27 · 3162 阅读 · 0 评论 -
RuntimeError - [Xcodeproj] Unknown object version.
在使用终端 pod install 时,提示错误如下在这里可以看到具体错误内容:点这里原因:这是因为你的 Xcode 版本和 CocoaPods 的版本不匹配,你需要更新你的 CocoaPods 解决方法:终端输入命令 $ gem install cocoapods --pre完成之后正常使用 CocoaPods 即可。...原创 2018-04-09 12:05:49 · 7120 阅读 · 2 评论 -
苹果审核被拒总结
Guideline 2.2 - Performance - Beta TestingYour app contains references to test, trial, demo, beta, pre-release or other incomplete content.Please see attached screenshots for details.Next Steps...原创 2018-04-03 11:50:01 · 1057 阅读 · 0 评论 -
iOS 使用宏提示expected expression
使用宏定义时,提示 expected expression,仔细看语法上没有错误后来才发现,是因为宏定义后面多了一个分号。。。低级错误不可再犯原创 2018-05-14 14:35:57 · 11019 阅读 · 0 评论 -
The run destination iPhone is not valid for running the scheme “xx”
真机运行,一直提示The run destination iOS Device is not valid for running the scheme,但是模拟器就没有问题,更改 Deployment Target 也不行最后发现,这应该是 Xcode 的 bug,要完全退出 Xcode,重新打开项目运行就没有问题了。...原创 2018-09-11 16:57:53 · 6449 阅读 · 0 评论 -
iOS Attempt to insert non-property list object xxx for key xx
NSUserDefault存储数据时崩溃,提示解决方法:1、后台返回的数据有null,让后台修改数据2、如果是自定义的对象,需要归档存储,不能直接存储NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];NSData * data = [NSKeyedArchiver archivedDataWithRoot...原创 2018-12-26 14:58:54 · 1939 阅读 · 0 评论 -
iOS “[App] if we're in the real pre-commit handler we can't actually add any new fences due
我在运行程序的时候老是提示一堆”iOS “[App] if we’re in the real pre-commit handler we can’t actually add any new fences due”。这是编译器内部的显示,与 app 正常使用无关.但是身为认真正直的程序媛,看着就是不爽,咋整呢?跟我来第一步: 第二步: 为了方便你们复制粘贴我写一遍: OS_ACTIVI原创 2017-06-27 09:35:18 · 4782 阅读 · 0 评论 -
Error Domain=NSCocoaErrorDomain Code=3840 "JSON text did not start with array or object and option t
开发中进行数据请求时候报了这个错误这是因为AFN网络请求返回数据格式为json,提示这个错误是因为返回数据非json格式解决办法:首先检查一下网络请求方法中是否有这句代码//设置返回数据格式为JSONmanager.responseSerializer = [AFHTTPResponseSerializer serializer];如果没有添加上就可解决 如果有这句代码,那就是后台给你返回数据的原创 2017-07-04 16:58:57 · 16048 阅读 · 1 评论 -
Property follows Cocoa naming convention for returning 'owned' objects
提示这种错误是因为命名方面,苹果不推荐使用new,copy等关键字开头原创 2017-06-29 16:24:09 · 330 阅读 · 0 评论 -
This app has crashed because it attempted to access privacy-sensitive data without a usage descripti
1、崩溃提示:This app has crashed because it attempted to access privacy-sensitive data without a usage description. The app's Info.plist must contain an NSPhotoLibraryUsageDescription key with a strin原创 2016-12-29 09:35:25 · 2218 阅读 · 0 评论 -
真机测试提示App installation failed
真机测试提示这是因为iPhone手机上已经装了包标识符一样的APP,删掉在运行就OK了原创 2016-12-29 09:43:48 · 327 阅读 · 0 评论 -
真机测试崩溃提示code signing is required for product type 'xxxxx' in SDK 'iOS 10.0'
Xcode8 真机测试崩溃:code signing is required for product type 'xxxxx' in SDK 'iOS 10.0' 解决方案:需要配置相关证书原创 2016-12-29 09:57:32 · 1121 阅读 · 0 评论 -
pod install或update 提示 [!] Unable to find a specification for xxxx
pod install 或 update 的时候提示[!] Unable to find a specification for xxxx解决方案:把当前 Pod 目录清理一下就行了$ pod repo remove master$ pod setup成功执行之后在执行 install 或 update原创 2016-12-29 10:00:55 · 6426 阅读 · 4 评论 -
崩溃提示diff: /../Podfile.lock: No such file or directory diff: Manifest.lock: No such file or director
崩溃提示: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 Co原创 2016-12-29 10:02:36 · 627 阅读 · 0 评论 -
xcode提示Unknown class ViewController in Interface Builder file
工程运行警告:Unknown class ViewController in Interface Builder file那应该是你把xcode自带的VIewController给删了,Mainstoryboard 找不到 ViewController解决方案:新建一个空的UIViewController,命名为VIewController原创 2016-12-29 10:06:39 · 481 阅读 · 0 评论 -
Git 提示 No remote repository specified. Please, specify either a URL or a remote name from which new
Git 提示 No remote repository specified. Please, specify either a URL or a remote name from which new revisi ...解决方案:1.进入项目路径,打开 gitconfig 配置文件$ git config -e2.将里面的 url 和 pushurl 换成你项目的原创 2016-12-29 10:07:15 · 5914 阅读 · 0 评论 -
The maximum number of apps for free development profiles has been reached.
我用iPhone7做真机测试,但是当我手机上已经有三个测试的demo,当测试第四个demo的时候就提示这个问题找到Window -> Devices出现这个界面删除你当前没有测试的demo之后再次运行就OK了原创 2016-11-10 15:44:48 · 7650 阅读 · 1 评论 -
xcode8警告Reading from private effective user settings
Xcode8运行警告[MC] System group container for systemgroup.com.apple.configurationprofiles path is /Users/xiaoluzhao/Library/Developer/CoreSimulator/Devices/2FE61567-EEDB-42A1-8E39-E2AE36A7BC94/data/原创 2017-02-24 16:59:40 · 11321 阅读 · 0 评论 -
NSError 错误code对照
http://developer.apple.com/library/mac/#documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_Constants/Reference/reference.htmlFoundation Constants ReferenceNSError Codes转载 2017-02-27 14:25:03 · 939 阅读 · 0 评论 -
The request to open "bundle id" failed.
我把xcode升级到 8.3.1 的时候,运行工程出现了这个问题我clean一下再运行,还是出现这个问题于是我把工程从模拟器上卸载,clean再运行,还是出现这个我问题最后我是这么解决的:将模拟器reset然后clean一下再运行,就没有问题了。原创 2017-04-14 09:01:00 · 1091 阅读 · 0 评论 -
Setting the background color on UITableViewHeaderFooterView has been deprecated. Please use contentV
提示: Setting the background color on UITableViewHeaderFooterView has been deprecated. Please use contentView.backgroundColor instead.当时设置tableView组头视图的颜色时写法如下原创 2017-05-24 17:39:00 · 4522 阅读 · 0 评论 -
-[__NSCFNumber length]: unrecognized selector sent to instance
出现这种崩溃,说明数据类型转换错误 我获取的user_id是NSNumber类型,然而我用的时候是按照NSString类型处理的 解决:NSString *user_id = [NSString stringWithFormat:@"%@", kUserID];//然后再进行处理就不会崩溃了原创 2017-06-19 14:59:03 · 658 阅读 · 0 评论 -
订单参数异常,请重新下单后再发起付款(ALIN42273)
问题描述:最近支付宝支付时常出现:订单参数异常,请重新下单后再发起付款(ALIN42273),之前产品App都是正常支付,现在用户反馈支付成功率很底,导致很多订单无法支付。排除问题:用户手机问题(IOS、安卓)系统。----经测试排除支付宝app版本问题。—经测试排除支付宝接口变更。—经查询,好像没有变更产品app里的sdk版本太低,支付宝不支持了。—应该不可能坑我们的,排除后端服...转载 2018-12-19 10:35:05 · 15003 阅读 · 3 评论