
首先是 Xcode11.1 不支持 iOS13.2 调试,Xcode11.2 延迟推送更新不说,今早更新完就开始各种问题。
UITextView 是使用 interface builder 添加的话,iOS13.2 以下必然崩溃。
*** Terminating app due to uncaught exception 'NSInvalidUnarchiveOperationException', reason: 'Could not instantiate class named _UITextLayoutView because no class named _UITextLayoutView was found; the class needs to be defined in source code or linked in from a library (ensure the class is part of the correct target)' 打开 xib 的速度史无前例的慢。
模拟器打开速度慢不说,卡的要命。。
1 yumutoutou 2019-11-01 16:00:02 +08:00 第一个 bug 有解决的方法吗? md 真坑 |
2 1002xin 2019-11-01 16:02:22 +08:00 参考喵大微博,垃圾 11.2 |
3 neverfall 2019-11-01 16:06:56 +08:00 不要使用 xib 开发 |
4 sxiaojian 2019-11-01 16:24:52 +08:00 对于这种崩溃,真的不想改代码与 xib,所以就退回 xcode11.1 了 |
5 mcluyu OP @yumutoutou 使用代码重写所有 UITextview || 下载一个 xcode11.1 || 等苹果爹更新解决 |
7 coldmn3 2019-11-01 16:49:07 +08:00 至今不敢升 10.15 Xcode 看了吐槽暂时还是 11.1 吧 |
8 yumutoutou 2019-11-01 16:49:09 +08:00 本来想着是优化的版本 没想到是制造 bug 的版本 |
9 flowerains 2019-11-01 17:29:19 +08:00 xcode 如果没有必要,不需要频繁升级。 我司还在用 10.1 版本呢 |
10 yumutoutou 2019-11-01 17:31:39 +08:00 @mcluyu 老哥 你下载成功了吗? 快结束的时候 停止了 |
11 mcluyu OP @yumutoutou 下完了,在开发者网站下载的,速度还算稳定 |
12 mcluyu OP @flowerains 10.1 就过分了吧。。你调试的手机不升级系统吗? xcode11.1 不支持 iOS13.2,所以第一时间升级了,平时其实我也基本都是第一时间升级的,经过这次以后还是先等等吧,今天还得上线,真是被小坑了一把。 |
13 yumutoutou 2019-11-01 18:22:29 +08:00 @mcluyu 不崩溃了? |
14 adamwang 2019-11-01 18:39:56 +08:00 别的不说了,就说 Xcode11 的断点,上次一个加了一个断点,之后 po 一个参数,等了一分钟毫无反应。。。。还遇到过很多次断点压根不走的情况。= =# |
15 mcluyu OP @yumutoutou 肯定的不了 |
16 sxiaojian 2019-11-01 19:40:30 +08:00 via iPhone @flowerains 10.1 版本的,打不出支持 iOS13 新特性的包 |
17 flowerains 2019-11-01 19:42:28 +08:00 |
18 lizhuoli 2019-11-02 19:46:26 +08:00 via iPhone 苹果自己不用 Storyboard,所以别想啦,看看 Xcode 11.0~11.2 三个小版本的 Bug 11.0: There is an issue with UITabBarController where decoding an instance from a storyboard will create some extra views at the left end of the screen. Developers may remove these by applying a workaround. (55310448) 11.1: Fixed a crash that sometimes occurred when compiling XIB files in iOS projects that backwards deploy to iOS versions earlier than 13.0. (55271752) 11.2 Setting the Selected Segment Tint Color of a segmented control in Interface Builder to a named color will cause a failure when the view is loaded on iOS 12 and earlier. (55254963) |
19 mcluyu OP @lizhuoli 苹果自己不用我觉得不可能,WWDC 演示都用你觉得他开发不用?但是他最新版本的 APP 只支持最新的 iOS 版本是真的,他根本不适配旧版系统。 |
20 lizhuoli 2019-11-04 13:19:05 +08:00 via iPhone |
21 mcluyu OP @lizhuoli 我没太理解你的意思,你是指 Xcode 这个 APP 本身没有使用 IB ?还是 Apple 开发的其他 APP 没有使用?如果是后者那肯定是有用的,我随手看了一下 Apple Store,Keynote 这俩 APP, 里面都有.storyboardc 和.nib 文件,而且还很多。 |
22 mistak1992 2019-11-04 19:22:08 +08:00 @neverfall 看情况啦, 如果赶时间, ib 还是挺好的, 特别是不同考虑后期维护的情况哈哈哈 |
23 YanXiF 2019-11-05 11:12:10 +08:00 @yumutoutou https://stackoverflow.com/questions/58657087/after-upgrading-to-xcode-11-2-from-xcode-11-1-app-crashes-due-to-uitextlayoutv 可以参考其中的 UITextViewWorkaround 这个方案 |
24 h386926074 2019-11-08 09:18:22 +08:00 关键我用 xcode11.2 跑了 代码 再用 xcode11.1 能跑起来吗 |
25 mcluyu OP @h386926074 为什么不能呢 |
26 h386926074 2019-11-08 09:37:53 +08:00 @YanXiF 这个办法可行 |
27 RiceNoodle 2019-12-16 17:04:39 +08:00 被卡到怀疑人生~ 不得不来顶一下这个帖子 |
28 maxmax 2020-08-18 14:34:58 +08:00 pure code 吧,xib 真心烂 |