iOS异常答疑
根据作者日常工作及开发遇到的问题进行总结记录,是最直接的解决方案
Jabony
只要还有明天,今天就永远是起跑点
展开
-
[iOS]NSPhotoLibraryAddUsageDescription 错误的解决办法
项目将图片并保存到本地的功能,一点发现闪退了。发现 Xcode 报以下错误:This app has crashed because it attempted to access privacy-sensitive data without a usage description. The app's Info.plist must contain an NSPhotoLibraryAd...原创 2018-10-15 23:35:19 · 2657 阅读 · 0 评论 -
【iOS异常】导入SDWebImage时SDWebImageDownloaderOperation.m错误
导入工程后编译,SDWebImageDownloaderOperation.m 和 UIImage+MultiFormat.m 文件报错如下:No matching function for call to 'CFNumberGetValue'解决办法:builder setting - Compile Sources As 改为According to fie type,之前是ObjectC++...原创 2018-06-07 20:53:35 · 943 阅读 · 0 评论 -
【iOS异常】 JSonKit does not support Objective-C Automatic Reference Counting(ARC)
iOS开发 JSonKit does not support Objective-C Automatic Reference Counting(ARC)使用JSonKit遇到“JSonKit does not support Objective-C Automatic Reference Counting(ARC)”这种情况,可参照如下方法:点击项目根目录->targets->Buil...原创 2018-06-07 20:49:22 · 699 阅读 · 0 评论 -
[iOS已解决]:linker command failed with exit code 1 (use -v to see invocation)
linker command failed with exit code 1 (use -v to see invocation)根据输入错误日志log,能够看到某些类重复引用出现这种情况很可能是,项目中引入了多个相同的文件。我的项目出错就是项目中出现了两个相同的文件引用(来自腾讯直播和腾讯IMsdk集成造成),不得不说这两个demo的集成非常坑,集成不仅仅要替换整套IM的framework,还要...原创 2018-06-07 19:06:19 · 1147 阅读 · 0 评论 -
【iOS】The run destination My Mac 64-bit is not valid for Running the scheme '*'
感谢浏览换了imac,Xcode换到了5.0 遇到了一些问题,之前的代码很多都不能运行,提示如标题所示的错误,在国外论坛上给出了解决办法,如下:How to changethe SDK: 1) 选择你的工程徐图标. 2)在右侧选择 Build Settings ——all. 3)找到Architectures ——Base SDK 修改成 the latest OS X原创 2014-01-19 17:40:28 · 1340 阅读 · 0 评论 -
【iOS】Autosynthesized property警告解决方案
warning:Autosynthesized property 'myTimer' will use synthesized instance variable '_myTimer', not existing instance variable 'myTimer'.我所有在@synthesize 里的变量或者说在@property里面的变量都有这个警告。在我的.h 文件中我声明了一原创 2014-02-09 23:54:11 · 7977 阅读 · 0 评论 -
[iOS]xcode 项目关联git,并将代码提交到远程remote服务器
第一步:cd 到项目根目录,执行git init第二步:git add . 后面的.是必须要加的第三步:git commit -m "commit init"第四步:git remote add origin 远程地址第五步:git pull -u origin master第六步:git push -u origin master 提交项目Git有两种连接方式原创 2017-06-17 14:04:22 · 1927 阅读 · 0 评论 -
【已解决】xcode autoLayout约束布局问题解决
链接:https://www.jianshu.com/p/737bf71c4dd9在项目中使用了autoLayout来对自定义的cell进行约束。cell可以正常显示, 看是控制台打印了如下报错信息:Unable to simultaneously satisfy constraints. Probably at least one of the constraints in the follow...转载 2018-05-14 11:39:15 · 2016 阅读 · 0 评论 -
获取iOS各种文件路径
//得到Document目录:NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);NSString *documentsDirectory = [paths objectAtIndex:0]; //得到temp临时目录:NSString *temp转载 2013-06-06 09:05:09 · 931 阅读 · 0 评论 -
[有图有真相]Mac显示隐藏文件夹
在MAC终端输入命令defaults write com.apple.finder AppleShowAllFiles -bool true然后重启如下图,看大啊半灰半透明的文件或文件夹就算成功了附:cmd+A:全选全屏截图:Command-Shift-3使用快捷键后会马上截取当前的全屏指定区域截图:Command-Shift-4原创 2013-06-07 11:06:13 · 1236 阅读 · 0 评论 -
[已验证]关于ld: file is universal (4 slices) but does not contain a(n) armv7s slice
升级了xcode之后,真机iPhone5调试,Build项目的时候,出现了标题所示错误提示信息 ld: file is universal (4 slices) but does not contain a(n) armv7s slice。原因是引用的第三方库导致了这个链接错误。出现这个情况,是之前的第三方库已经做好了,但是呢iPhone5 那时还没发布,支持到原创 2013-06-10 15:10:11 · 2093 阅读 · 0 评论 -
[资料丢失]当时学习iOS基础是这么开始的
一、 Objective-C语言基础预计时间:16小时*source例子:-相关文档:-要求:能够创建简单的类,会使用NSString、NSLog、集合等相关类,了解alloc、copy、retain、release、dealloc的用法和含义练习APP要求:-二、开发环境与工具1. 开发环境构建预计时间:2小时相关文档:-2.Xcode的使原创 2013-06-21 16:37:04 · 1069 阅读 · 0 评论 -
[有图有真相]帮你看懂 iPhone 6 Plus 的屏幕分辨率
转载 2017-06-17 11:12:56 · 946 阅读 · 0 评论 -
swift3.0 IndexPath替换 NSIndexPath
Swift之前2.3版本 NSIndexPath(forRow: index, inSection: 0) 替换3.0或更高版本为 IndexPath(row: 0, section: 0)原创 2018-04-26 17:56:05 · 2771 阅读 · 0 评论 -
【已解决】compiling IB documents for earlier than ios 7 is no longer supported
使用一些老版本的demo或者网上一些案例项目时会出现此类问题如图操作修改成你的系统版本便可原创 2018-05-11 11:06:45 · 1578 阅读 · 1 评论