出错
深海飞鸟
你好~
展开
-
错误:默认的自动布局影响Fram
1.原错误代码:- (void)viewDidLoad {_historyList = [[HistoryTableViewController alloc] init];_historyList.view.frame = CGRectZero;---这里中间代码省略---NSLog(@"1.%@",NSStringFromCGRect(_historyList.view.frame));/原创 2016-08-05 18:26:58 · 355 阅读 · 0 评论 -
错误:Xcode8 “xx”is missing from working copy
问题:iOS开发时,将Xcode升级到8后,工程运行后出现了很多的报错警告,如下图所示,几乎每个文件都有“xx”is missing from working copy的警告。某某文件 is missing from working copy字面意思来看是类似使用SVN时出现的删除某个文件后,此文件仍出现在SVN缓存的问题。但是奇怪的是这个工程我暂时还没有使用SVN,所以个人推断原因可能是文件路径缓转载 2016-10-24 17:08:17 · 351 阅读 · 0 评论 -
问题:Xcode 8 升级后注释快捷键不能使用
这个是因为苹果解决xcode ghost。把插件屏蔽了。解决方法:命令运行: sudo /usr/libexec/xpccachectl 然后必须重启电脑后生效转载自http://blog.csdn.net/icash/article/details/52536496转载 2016-10-22 15:54:49 · 302 阅读 · 0 评论 -
问题:Xcode8更新之后模拟器找不到了
更新了Xcode8后,模拟器莫名的消失了。看了一下Xcode文件夹,SDK都在 分析原因大概是因为之前的SDK被覆盖了。所以只能重新建模拟器了。 方法如下: 1.打开Xcode->Winwos->Devices 2.点击左下角小图标Add Simulator 3.可以添加对应的模拟器了 4.有些模拟器比如4s的不能升级iOS10了,所以要添加4s设备就需要到C转载 2016-10-22 14:59:35 · 599 阅读 · 0 评论 -
问题:ios10,xcode8,真机不能调试
问题: 1.提示Development cannot be enabled while your device is locked.Please unlock your device and reattach. 已经解锁了手机。还是会一直报这个错。 2.Xcode真机调试出现“ XXX is busy: Processing symbol files”以上问题解决方法: 1、尝试重新拔插测试原创 2016-10-22 14:54:27 · 2036 阅读 · 0 评论 -
问题:添加文件时路径错误导致到不到文件
问题: 添加文件时路径错误导致到不到文件 解决方法: 例如: 文件路径如下 第一种方法: 添加时写成 #import "Include/PPCS/NDT_API.h"第二种方法:在Build Settings->Search Paths->Header Search Paths中添加路径如下:(PROJECTDIR)/WiPNClient/Include/PPCS(其中(PROJ原创 2016-07-28 18:11:04 · 636 阅读 · 0 评论 -
问题:文件显示不全,无法添加文件
问题: 项目里的文件添加不进去了,而且好多文件其实存在但是看不见了 解决方法: 新建了一个类,所有文件就都出来了原创 2016-07-25 15:00:36 · 688 阅读 · 0 评论 -
问题:加入导航条后webView的UIWebBrowserView位置偏移
解决方法://self为ViewControllerself.automaticallyAdjustsScrollViewInsets = NO; //是否自动适应滚动视图的内嵌入;默认为YES,这里设置为NO,避免网页控件中_UIWebViewScrollView的UIWebBrowserView位置偏移原创 2016-07-21 15:57:43 · 1740 阅读 · 0 评论 -
问题:后台线程修改自动布局引擎
错误代码: This application is modifying the autolayout engine from a background thread, which can lead to engine corruption and weird crashes. This will cause an exception in a future release. 原因:一个后台线程原创 2016-07-18 18:46:57 · 566 阅读 · 0 评论 -
问题:资源错误找不到
Xcode内的资源查看 调试app运行后的html文件 资源找不到一般是路径错误,如 HTML相对路径和绝对路径HTML初学者会经常遇到这样一个问题,如何正确引用一个文件。比如,怎样在一个HTML网页中引用另外一个HTML网页作为超链接(hyperlink)?怎样在一个网页中插入一张图片?如果你在引用文件时(如加入超链接,或者插入图片等),使用了错误的文件路径,就会导致引用失效(无法浏原创 2016-07-14 14:23:37 · 812 阅读 · 0 评论 -
错误:使用NSURLSession发送HTTP请求报错
控制台打印:Application Transport Security has blocked a cleartext HTTP (http://) resource load since it is insecure. Temporary exceptions can be configured via your app’s Info.plist file.解决办法:修改info.plist文件原创 2016-02-27 16:45:34 · 803 阅读 · 0 评论 -
问题:iOS 10 权限Crash问题
问题:iOS 10后调用麦克风,程序崩了。控制台输出以下信息:This app has crashed because it attempted to access privacy-sensitive data without a usage description. The app's Info.plist must contain an NSMicrophoneUsageDescription原创 2016-10-26 10:52:38 · 387 阅读 · 0 评论 -
问题:没有加TabBar出现Autolayout的Bottom Layout Guide
问题:由于加入NavigationController,View的底部明明没有加TabBar还是出现了Bottom Layout Guide,如下图所示: 解决方法:先点击所在Controller的右侧面板,在第四项(show the attributes inspector)下Simulated Metrics >Bottom Bar >Inferred.可以把底部去掉。 如下图:原创 2016-10-27 16:38:08 · 1197 阅读 · 0 评论 -
错误:The file “XXX” couldn’t be opened because you don’t have permission to view it.
1.错误:The file “XXX” couldn’t be opened because you don’t have permission to view it.2.解决方法:点击Xcode -> Preferences -> Locations -> 找到DerivedData删除即可. 1. 2. 3.原创 2016-09-12 17:30:48 · 685 阅读 · 0 评论 -
错误:'XXX/XXX' does not contain bitcode.
1.错误:错误提示:’XXX/XXX’ does not contain bit code.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转载 2016-08-22 15:24:48 · 414 阅读 · 0 评论 -
错误:#warning:尚未配置[QQ]URL Scheme:QQXXX, 无法进行分享
1.错误:错误:#warning:尚未配置[QQ]URL Scheme:QQXXX, 无法进行分享解决方法: 登录QQ互联(http://connect.qq.com/ )注册成为开发者并登记应用取得AppId,然后打开下图位置,在URL Types中添加QQ的AppID,其格式为:”QQ” + AppId的16进制(如果appId转换的16进制数不够8位则在前面补0,如转换的是:原创 2016-08-22 15:30:52 · 9139 阅读 · 0 评论 -
ShareSDK常见问题汇总(iOS版)
ShareSDK 是Mob移动开发者服务平台为开发者实现社会化分享功能的SDK产品,自2012年发布以来,受到广大开发者的厚爱。我们坚持不懈更新优化ShareSDK,力求为开发者提供最便捷集成、功能强大的产品。本贴汇总了iOS & Android平台集成过程中最经常遇到的问题及解决方案,希望能给各位开发者提供帮助。ShareSDK常见问题汇总(2016.08.22更新)ShareSDK各社交平台申请转载 2016-08-23 09:31:45 · 1138 阅读 · 0 评论 -
错误:The executable was signed with invalid entitlements.
错误:真机测试过程中,更换Provisioning Profile之后,出现错误: The executable was signed with invalid entitlements. The entitlements specified in your application’s Code Signing Entitlements file do not match those speci原创 2016-10-13 17:38:38 · 1942 阅读 · 0 评论 -
Xcode8控制台输出警告:subsystem: com.apple.UIKit, category: HIDEventFiltered, enable_level: 0
问题:更新Xcode8后,运行工程控制台报出如下警告:2016-10-31 17:35:47.542133 BookBook[9016:205481] subsystem: com.apple.UIKit, category: HIDEventFiltered, enable_level: 0, persist_level: 0, default_ttl: 0, info_ttl: 0, debug原创 2016-10-31 17:45:16 · 1004 阅读 · 0 评论 -
错误:writeToFile没有写入成功
错误:[_Array writeToFile:[self Path] atomically:YES];没有写入成功。原因:查阅手册发现: If an array or dictionary contains objects that are not property-list objects, then you cannot save and restore the hierarchy of da原创 2016-11-19 11:40:58 · 936 阅读 · 0 评论 -
问题:textview的内容不顶格显示
问题:textview的内容不顶格显示,如下图所示: 解决方法:self.automaticallyAdjustsScrollViewInsets = NO;textview的内容不顶格显示,这好似由于用导航 跳转过去 他会减去 64像素 也就是导航的高度 都是ScrollView 引起的 ,加上self.automaticallyAdjustsScrollViewInsets = NO;就可以解转载 2016-12-15 15:52:28 · 1787 阅读 · 0 评论 -
问题:The certificate used to sign "XXX" has either expired or has been revoked
在Xcode真机调试开发过程中,无论是使用个人证书或者是企业证书,经常会遇到这样的问题: The certificate used to sign “XXX” has either expired or has been revoked. An updated certificate is required to sign and install the application. 刚开始在key转载 2017-01-19 15:54:00 · 2345 阅读 · 0 评论 -
问题:IOS懒加载不调用的解决方案
问题:懒加载不调用原因:忽略了一个基础性的错误,那就是_xxx和self.xxx的区别:当使用self.xxx会调用xxx的get方法而_xxx并不会调用。解决方法:正确的使用懒加载方式是:通过self去调用才会执行懒加载方法。注意:还有一点值得注意既然我们的self.XXX是调用其get方法所以在判断时不能用self.XXX是否为空否则的话会陷入死循环转载自http://blog.csdn.net转载 2016-10-31 11:36:57 · 1200 阅读 · 0 评论 -
问题:iOS 11 定位问题
问题1:iOS11 定位权限未通过,控制台输出以下信息: This app has attempted to access privacy-sensitive data without a usage description. The app’s Info.plist must contain both NSLocationAlwaysAndWhenInUseUsageDescrip原创 2017-11-15 15:02:03 · 980 阅读 · 0 评论