
Error
高冷的钢背兽
iOS开发&前端开发
展开
-
Xcode12 iOS14踩坑
又到了一年一度的踩坑环节,下面开始,更新了一天Xcode,打开项目,意料之内的报错:报错1:error: different definitions in different modules发现是会多个Category同名造成了,比如UIView+Additions和UIImage+Additions就会报错,解决办法:删掉,重新起个不一样的名字。报错2:一个三方库SJBaseVideoPlayer报错,用Pod更新一下,Pod更新成功之后发现终端打印了3行红色日志 -&g原创 2020-09-21 14:00:09 · 5812 阅读 · 0 评论 -
iOS MapFileParser.sh: No such file or directory
iOS集成unity 3D 项目报错是因为Build Phases里的Run Script 设置的路径不对,在项目左侧文件Show in Finder,查看到正确位置,并设置就可以了。例如我的:...原创 2019-05-05 16:20:14 · 1623 阅读 · 0 评论 -
iOS does not support the Push Notifications capability
直接下载其他人项目在真机上编译时, 有时遇到这个编译错误, 因为该项目开启了通知, 但是我们的证书又不支持这个推送证书, 我们到项目中找到配置文件,将其删除掉即可。在项目内搜索 entitlements, 找到这个单词后缀的文件 将其 aps-environment key 删除掉即可...原创 2019-04-10 11:05:39 · 3181 阅读 · 0 评论 -
Error invalid mode 'kCFRunLoopCommonModes' provided to CFRunLoopRunSpecific
invalid mode 'kCFRunLoopCommonModes' provided to CFRunLoopRunSpecific - break on _CFRunLoopError_RunCalledWithInvalidMode to debug. This message will only appear once per execution.一般是因为在masonry绘制布局...原创 2019-03-22 10:00:17 · 2187 阅读 · 0 评论 -
Error: simctl error running 'list': xcrun: error: unable to find utility "simctl", not a devel
在用Weex时从终端启动Xcode报错,解决方法就是去xcode设置里面,将Command line Tools设置一下,在Xcode>preferences>Locations里面,设置之后再运行终端即可原创 2018-03-16 17:05:18 · 2436 阅读 · 0 评论 -
CornerStone SVN报错 The working copy is locked due to a previous error
The working copy is locked due to a previous error.不仅无法提交,也无法更新,错误提示被锁。解决方法1:在CornerStone左侧工程列表找到对应代码工程 - 右键 - 点击clean 即可。解决方法2:使用终端命令,cd找到项目工程所在目录,执行find . | grep ".svn/lock" | xargs rm原创 2017-09-14 23:08:10 · 1923 阅读 · 0 评论 -
Swift Call can throw, but it is not marked with 'try' and the error is not handled
出现这种错误的原因就是没有处理错误解决方法,在报错的方法外加上try catch,即 do{ try ..} catch {}如下 do { try mananger.removeItem(atPath: fullPath) debugPrint("已删除" + path)原创 2017-09-14 13:29:13 · 3268 阅读 · 0 评论 -
Error libc++abi.dylib handler threw exception
iOS libc++abi.dylib handler threw exception iOS开发过程中,有时候会有libc++abi.dylib handler threw exception这样的异常, 虽然在断点出加上了All Exceptions,也断到相应的代码了,但是没打印对应的日志这时候可以使用来捕获异常 @try{ }原创 2017-07-05 18:22:10 · 399 阅读 · 0 评论 -
HTTP请求常见Code
HTTP Status Code常见的状态码:HTTP: Status 200 – 服务器成功返回网页HTTP: Status 404 – 请求的网页不存在HTTP: Status 503 – 服务不可用说明:HTTP: Status 1xx (临时响应)->表示临时响应并需要请求者继续执行操作的状态代码。详细代码及说明:HTTP: Status 100 (继续)-原创 2017-05-22 19:06:22 · 2645 阅读 · 0 评论 -
Error Use Legacy Swift Language Version” (SWIFT_VERSION) is required...
“Use Legacy Swift Language Version” (SWIFT_VERSION) is required to be configured correctly for targets which use Swift. Use the [Edit > Convert > To Current Swift Syntax…] menu to choose a Swift versi原创 2017-04-01 11:47:53 · 1306 阅读 · 0 评论 -
invalid virtual filesystem overlay file '/[Path]/all-product-headers.yaml
1、运行或者打包时提示如下问题“fatal error: invalid virtual filesystem overlay file '/[Path]/all-product-headers.yaml”2、解决问题工程-Target-Build Settings设置 "Defines Module = YES"这个属性是OC和Swift混编的工程中原创 2017-02-28 11:28:38 · 843 阅读 · 0 评论