
iOS 调试
iOS开发-上海
一点一滴 汇成大海
展开
-
iOS Bug---UIAlertController 异常log
UIAlertController *alertController = [UIAlertController alertControllerWithTitle:@"提示" message:@"请在iPhone的“设置”-“隐私”-“相机”功能中,找到“XXXXXX”打开相机访问权限" preferredStyle:UIAlertControllerStyleAlert]; UIAlertAction *ok = [UIAlertAction actionWithTit...原创 2021-03-10 14:46:49 · 236 阅读 · 0 评论 -
iOS Bug---CoreLocation 部分机型卡界面
错误摘要Application threw exception NSInvalidArgumentException: *** -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[5] Thread 0 Crashed:目前不是的是什么原因。。。iOS开发 --- 定位功能(系统框架CoreLocation)...原创 2021-03-10 14:30:49 · 459 阅读 · 0 评论 -
iOS Bug --- 信鸽推送报错:+[NSObject checkTargetOtherLinkFlagForObjc]: unrecognized selector sent to ......
报错信息2018-08-24 16:24:50.055062+0800 Manager[541:230890] +[NSObject checkTargetOtherLinkFlagForObjc]: unrecognized selector sent to class 0x1b2610ea02018-08-24 16:24:50.432582+0800 Manager[541:23...原创 2018-09-20 16:27:03 · 755 阅读 · 0 评论 -
iOS Bug --- 信鸽推送报错:Code Signing Error: No profile for team '299MFJ63GP' matching 'common_dev' ......
最近在接信鸽推送SDK,官方Demo运行直接崩溃。。。报错信息:Code Signing Error: No profile for team '299MFJ63GP' matching 'common_dev' found: Xcode couldn't find any provisioning profiles matching '299MFJ63GP/common_dev'. ...原创 2018-09-11 11:09:02 · 5932 阅读 · 0 评论 -
iOS Bug --- 信鸽推送报错:dyld: Library not loaded: /System/Library/Frameworks/UserNotifications.fra......
最近在接信鸽推送SDK,官方Demo运行直接崩溃。。。报错信息:dyld: Library not loaded: /System/Library/Frameworks/UserNotifications.framework/UserNotifications Referenced from: /Users/pengjiaxin/Library/Developer/CoreSimu...原创 2018-09-11 11:10:43 · 547 阅读 · 0 评论 -
iOS Bug---CocoaPods $ pod install报错 -bash: pod: command not found
1、在常规使用cocoapods添加管理三方类库时,竟然报错!看图感受一下2、还以为是本地cocoapods 出现了问题,然而并不是,在各种研究搜索之后终于找到了有效的解决办法。输入cd回到根目录,逐次输入以下语句:mkdir -p $HOME/Software/rubyexport GEM_HOME=$HOME/Software/rubygem install cocoapods(执...原创 2018-07-13 14:38:34 · 2051 阅读 · 0 评论 -
iOS Bug---cocoapods报错
1,podfile编辑platform :ios, ‘8.0’project ‘项目名/项目名.xcodeproj’target ‘项目名’ doend原创 2018-07-12 15:23:09 · 230 阅读 · 0 评论 -
iOS Bug --- 信鸽推送报错:Fail error Error Domain=NSCocoaErrorDomain Code=0 "Notification permission ......
背景 最近在接信鸽推送功能,打包ipa安装到手机上,当弹出是否允许开启推送服务的弹框后,点击 “允许”或“好”以后报下面的错误信息(真机安装ipa包收不到推送消息):-(void)xgPushDidFinishStart:(BOOL)isSuccess error:(NSError *)error;Fail error Error Domain=NSCocoaErrorDomain ...原创 2018-10-16 16:03:04 · 1197 阅读 · 0 评论 -
iOS Bug --- 打包报错:Code Signing Error: Provisioning profile "ase_AdHoc" doesn't include signing c.....
报错信息:Code Signing Error: Provisioning profile "ase_AdHoc" doesn't include signing certificate "iPhone Developer: Hu jiqi (GUP6XTAN24)".Code Signing Error: Code signing is required for product typ...转载 2018-10-17 15:28:54 · 4500 阅读 · 0 评论 -
iOS Bug---WKWebView 加载页面报系统日志 Could not signal service com.apple.WebKit.WebContent: 113: Could not f
系统日志Could not signal service com.apple.WebKit.WebContent: 113: Could not find specified service相关文章ios WKWebView Could not signal service com.apple.WebKit.WebConte...原创 2019-07-01 14:56:35 · 4343 阅读 · 0 评论 -
iOS开发 --- 接入友盟分享(微信、QQ)功能(v6.9.5 &更新日期:2018年11月1日)(一)
前期准备工作注册友盟账号获取AppKey; 注册分享途径账号:QQ:腾讯开放平台注册,获取APP ID和APP KEY;微信:微信开放平台注册,获取AppID和AppSecret ;.....一,下载友盟分享SDK,并导入到项目。将U-Common基础功能库(UMCommon.framework)添加到项目。 将U-Share SDK添加到项目。 ...原创 2019-06-27 09:46:49 · 1555 阅读 · 0 评论 -
iOS Bug---Github上下载项目cocoapods报错 diff: /../Podfile.lock No such file or directory
错误描述:Github上下载的项目cocoapods出现错误,左边目录Pods.xcodeproj文件变红,运行后显示以下错误:diff: /../Podfile.lock: No such file or directorydiff: /Manifest.lock: No such file or directoryerror: The sandbox is not in sync with t...原创 2018-07-12 11:34:04 · 1323 阅读 · 0 评论 -
iOS Bug --- Xcode9.2( 坑 )打包部分图片显示异常问题
问题:环境:Xcode9.2;iOS7.0~iOS8.2(可能还有其他版本,暂时未测试.....)显示异常的图片是放在Assets里面的,其他未放在Assets里面的图片显示正常;如下图所示,图片显示异常( 出现很多斜杠 ); ...原创 2018-07-17 15:00:03 · 860 阅读 · 0 评论 -
Xcode8 iOS 上传App Store提示WARNING ITMS-90703错误的说明
本篇文章主要介绍了"iOS 上传App Store提示WARNING ITMS-90703错误的说明 ",主要涉及到iOS 上传App Store提示WARNING ITMS-90703错误的说明 方面的内容,对于iOS 上传App Store提示WARNING ITMS-90703错误的说明 感兴趣的同学可以参考一下。今天上传app原创 2017-05-10 11:44:42 · 2255 阅读 · 0 评论 -
微信支付接入那些坑1-----[__NSArrayM enqueue:]: unrecognized selector sent to instance
1,崩溃界面2,log :3,解决方法微信的demo也是如此。4,问题解决对于初次接微信SDK的小伙伴来说,这个问题可能会遇到.原创 2017-05-03 16:03:44 · 7592 阅读 · 0 评论 -
iOS10下UIWebView加载页面时出现log求解
WF: _userSettingsForUser mobile: { filterBlacklist = ( ); filterWhitelist = ( ); restrictWeb = 1; useContentFilter = 0; useContentFilterOverrid原创 2017-04-05 15:06:03 · 4286 阅读 · 0 评论 -
Xcode8真机测试问题 code signing is required for product type 'Application' in SDK 'iOS 10.0'
在日常测试中会遇到code signing is required for product type 'xxxxx' in SDK 'iOS 10.0' ,具体如下解决方法按照以下步骤依次设置,clean再运行顶1原创 2017-04-10 15:18:03 · 1928 阅读 · 0 评论 -
The executable was signed with invalid entitlements.
场景:当在一部新的苹果设备安装程序出现the executable was signed with invalid entitlements.有关问题的解决方法当在一部新的苹果设备安装程序出现the executable was signed with invalid entitlements.问题的解决办法1.找到设备的identifier2.进入https:原创 2017-03-06 16:43:02 · 592 阅读 · 0 评论 -
启动图尺寸
原创 2016-11-16 14:46:05 · 363 阅读 · 0 评论 -
iOS-运行程序屏幕上下有黑边
iOS-运行程序屏幕上下有黑边字数166 阅读149 评论3 喜欢0程序启动后效果(如下图):程序启动后-黑边效果.png解决办法(如下图):黑边解决办法.png解决后效果(如下图):解决后效果.png产生的原因分析(如下图):产生的原因分析.png原创 2016-11-16 14:44:43 · 975 阅读 · 0 评论 -
即时通信(环信) EaseUI 集成视频
http://community.easemob.com/video/23原创 2016-04-20 15:54:00 · 1354 阅读 · 0 评论 -
解决EXC_BAD_ACCESS错误的一种方法--NSZombieEnabled
我们做iOS 程序开发时经常用遇到 EXC_BAD_ACCESS 错误导致 Crash,出现这种错误时一般 Xcode 不会给我们太多的信息来定位错误来源,只是在应用 Delegate 上留下像Thread 1: Program received signal:"EXC_BAD_ACCESS",让问题无从找起。比如你对已释放的对象发送消息时就会出现,EXC_BAD_ACCESS,再如rel原创 2016-03-15 11:43:27 · 330 阅读 · 0 评论 -
iOS 10.0的网络问题:设置使用无线局域网与蜂窝移动的应用
在开发App的过程中,需要网络连接,使用Apple提供的Reachability库判断网络状态[objc] view plain copy+ (BOOL)isNetworkReachable{ Reachability *internetReach = [Reachability reachabilityForInt转载 2017-07-10 15:05:05 · 8210 阅读 · 0 评论 -
Xcode8 iOS上传App Store报错:this action cannot be completed.Try again.( -22421 )解决方案
最近Object-C项目升了xcode8,提交版本时,遇到这个:瞬间懵逼,连具体报错原因都没有,只有一个代码 22421,找了一圈资料,发现很简单:直接Cancel掉,重新Upload一次就行了,如果还不行,等几分钟再试一次。 原因就是:苹果服务器那边繁忙导致的,并不是我们打包的问题。话说这个倒是第一次遇到,蛮奇怪。原创 2017-05-10 10:50:56 · 1457 阅读 · 0 评论 -
iOS调试 --- iOS7关于UIButton不改变title的问题
// 在发短信的界面中遇到一个问题,点击了发送短信,将发送短信的按钮设置为disable的状态,如下 sendMsgBtn.enabled = NO; //然后在倒计时中的方法为 seconds --; if (seconds <= 0) { [sendMsgBtn setTitle:@"重新获取" forState:UIControlStateNormal]; ...原创 2018-06-20 16:26:02 · 317 阅读 · 0 评论 -
iOS Bug---iPhone X闪退(UIStatusBar_Modern 0x7fb8eee05a00)
在iPhone X手机 wifi情况下,启动时候闪退,在4G网络时候不闪退。这是项目中使用状态栏中图标判断当前网络的具体状态,而 iPhone X手机状态栏和其他版本手机存在差异,状态栏是多嵌套了一层,所以在读取时候需要注意。可以在代码里面搜索 foregroundView 这个关键字,找到位置进行必要修改。Error:[<UIStatusBar_Modern 0x7fb8eee05a00&...原创 2018-05-08 15:02:55 · 3033 阅读 · 0 评论 -
iOS开发 --- 推送 SDK: Main Thread Checker: UI API called on a background thread
Xcode 升级到 Xcode 9后,集成时若提示下述错误:Main Thread Checker: UI API called on a background thread请检查工程中,是否在后台线程(非主线程)调用 AppKit、UIKit相关的API,比如iOS 10+ 请求通知权限时,[application registerForRemoteNotifications];原创 2018-01-10 17:29:22 · 5441 阅读 · 0 评论 -
Xcode --- Xcode9新特性无线调试
软硬件要求:- Xcode 9.0 beat 及以上版本- macOS 10.12.5 及以上版本- iOS 11.0 beat 及以上版本连接要求电脑和设备处于同一 Wifi 环境虽然Xcode支持无线调试, 但让你的设备支持无线调试之前, 必须连接上数据线, 做好相应配置通过数据线将您的设备,连接至Xcode.打开菜单栏 Window >原创 2017-10-26 16:36:40 · 299 阅读 · 0 评论 -
Xcode8.3 加载WebView时报错
Class PLBuildVersion is implemented in both /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/AssetsLibr原创 2017-08-16 09:42:37 · 340 阅读 · 0 评论 -
[UIImage imageWithContentsOfFile:]引发的图片显示异常问题(一半图片是黑的)
一,bug出现描述最近在项目中出现了一个图片显示异常问题,在做带有缓存图像功能时遇到了极少情况下,图片变成了一半黑色,没有报任何Error,因为不知道具体错误在哪里,所以一直没有解决。很偶然,在最近几次调试中,看到了报错信息。 [Error] ImageIO: createDataWithMappedFile:1322: 'open' failed '/v原创 2017-08-01 17:23:02 · 3263 阅读 · 0 评论 -
即时通讯(环信) bug -"_iconv", referenced from: _avcodec_decode_subtitle2 in libHyphenateFullSDK.a(utils.o)
因在开发公司项目有即时通讯模块,经商量之后选择了第三方即时通讯sdk环信,由于3.0文档还不是非常全面,且本人之前没有过开发即时通讯的经验,查阅了很多资料,磕磕绊绊几天终于完成了对该模块的开发,故此记录所遇到的问题及解决办法,方便以后自己或朋友的查阅: 首先,对于第一次接触的朋友需要初步了解下环信,官方文档非常详尽的介绍了,在此就不赘述.附上官方文档链接:http://docs.ea原创 2016-04-19 17:15:08 · 3348 阅读 · 0 评论 -
从SVN上checkout下来的工程报linker错误
错误原因分析:工程中的后缀.a的类库文件丢失解决办法:找到之前上传工程的同事要所有缺失的.a文件,添加到工程中即可.原创 2016-09-13 15:27:09 · 512 阅读 · 0 评论 -
使用AFNetWorking请求错误
一、请求超时连接错误返回的Error: Error Domain=NSURLErrorDomain Code=-1001 "请求超时。" UserInfo={NSUnderlyingError=0x1408a8eb0 {Error Domain=kCFErrorDomainCFNetwork Code=-1001 "(null)" UserInfo={_kCFStreamErrorCo原创 2016-12-07 09:12:05 · 1120 阅读 · 0 评论 -
application windows are expected to have a root view controller错误
产生这个提示的操作:在xcode4.6中创建一个名字为appTest空工程,create一个ios-application-empty application,直接编译运行错误提示:虽然编译通过,也能运行,但是底下有错误提示“application windows are expected to have a root view controller”原因:在较新的xcod原创 2016-02-27 09:49:04 · 1098 阅读 · 0 评论