ios - 更新 Xcode 后的 EXC_BAD_ACCESS (SIGABRT)

标签 ios xcode visual-studio xamarin.ios crash

在我将 Xcode 从 9.4 更新到 9.4.1 和 Xcode 的 命令行工具(macOS High Sierra 版本 10.13)(6 月 18 日更新)后,我一直收到以下错误提交我的应用程序以供审核。

{"app_name":"MyApp.Ios","timestamp":"2018-07-01 10:10:46.55 -0700","app_version":"1.2.40","slice_uuid":"9a14ed6c-6f2f-36e9-8336-1a4b3c9598c8","adam_id":1355950508,"build_version":"1.2.40","bundleID":"com.MyApp.Ios","share_with_app_devs":false,"is_first_party":false,"bug_type":"109","os_version":"iPhone OS 11.4 (15F79)","incident_id":"A5CF0458-08A8-42BA-B9CA-65D14BF18BF4","name":"MyApp.Ios"}
Incident Identifier: A5CF0458-08A8-42BA-B9CA-65D14BF18BF4
CrashReporter Key:   2b045d46ab37908d244c6a4194a66f9b479d11ad
Hardware Model:      xxx1
Process:             MyApp.Ios [6982]
Path:                /private/var/containers/Bundle/Application/74539A73-C2CA-4EF8-AAB8-DCE44E4796CF/MyApp.Ios.app/MyApp.Ios
Identifier:          com.MyApp.Ios
Version:             1.2.40 (1.2.40)
Code Type:           ARM-64 (Native)
Role:                Foreground
Parent Process:      launchd [1]
Coalition:           com.MyApp.Ios [3134]


Date/Time:           2018-07-01 10:10:46.4214 -0700
Launch Time:         2018-07-01 10:10:44.5776 -0700
OS Version:          iPhone OS 11.4 (15F79)
Baseband Version:    n/a
Report Version:      104

Exception Type:  EXC_BAD_ACCESS (SIGABRT)
Exception Subtype: KERN_INVALID_ADDRESS at 0x0000000000000000
VM Region Info: 0 is not in any region.  Bytes before following region: 4368449536
      REGION TYPE                      START - END             [ VSIZE] PRT/MAX SHRMOD  REGION DETAIL
      UNUSED SPACE AT START
--->  
      __TEXT                 0000000104614000-0000000104618000 [   16K] r-x/r-x SM=COW  .../MyApp.Ios

Triggered by Thread:  0

Application Specific Information:
abort() called

Filtered syslog:
None found

Thread 0 name:  tid_303  Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0   libsystem_kernel.dylib          0x00000001821d52ec 0x1821b3000 + 140012
1   libsystem_pthread.dylib         0x0000000182376288 0x182373000 + 12936
2   libsystem_c.dylib               0x0000000182143db0 0x1820e1000 + 404912
3   libsystem_c.dylib               0x0000000182143d18 0x1820e1000 + 404760
4   MyApp.Ios                   0x0000000105830538 0x104614000 + 18990392
5   MyApp.Ios                   0x000000010572aeb8 0x104614000 + 17919672
6   MyApp.Ios                   0x00000001056e0614 0x104614000 + 17614356
7   MyApp.Ios                   0x00000001056df35c 0x104614000 + 17609564
8   MyApp.Ios                   0x00000001056d6f94 0x104614000 + 17575828
9   MyApp.Ios                   0x000000010467d2a8 0x104614000 + 430760
10  MyApp.Ios                   0x000000010492c6c8 0x104614000 + 3245768
11  MyApp.Ios                   0x00000001056f0748 0x104614000 + 17680200
12  MyApp.Ios                   0x000000010576dc00 0x104614000 + 18193408
13  MyApp.Ios                   0x000000010577141c 0x104614000 + 18207772
14  MyApp.Ios                   0x000000010463cc6c 0x104614000 + 167020
15  MyApp.Ios                   0x00000001046500e4 0x104614000 + 245988
16  UIKit                           0x000000018c366e64 0x18c314000 + 339556
17  UIKit                           0x000000018c366a50 0x18c314000 + 338512
18  UIKit                           0x000000018cf09fd8 0x18c314000 + 12541912
19  UIKit                           0x000000018c590398 0x18c314000 + 2605976
20  UIKit                           0x000000018c58f25c 0x18c314000 + 2601564
21  UIKit                           0x000000018c8084b0 0x18c314000 + 5194928
22  UIKit                           0x000000018c31f148 0x18c314000 + 45384
23  UIKit                           0x000000018c80840c 0x18c314000 + 5194764
24  UIKit                           0x000000018c5463e4 0x18c314000 + 2302948
25  UIKit                           0x000000018c58e7bc 0x18c314000 + 2598844
26  UIKit                           0x000000018c58e654 0x18c314000 + 2598484
27  MyApp.Ios                   0x0000000104a22380 0x104614000 + 4252544
28  MyApp.Ios                   0x00000001049da674 0x104614000 + 3958388
29  MyApp.Ios                   0x000000010466caf0 0x104614000 + 363248
30  MyApp.Ios                   0x00000001049f17b4 0x104614000 + 4052916
31  MyApp.Ios                   0x000000010492c6c8 0x104614000 + 3245768
32  MyApp.Ios                   0x00000001056f0748 0x104614000 + 17680200
33  MyApp.Ios                   0x000000010576dc00 0x104614000 + 18193408
34  MyApp.Ios                   0x000000010577141c 0x104614000 + 18207772
35  MyApp.Ios                   0x000000010463cc6c 0x104614000 + 167020
36  MyApp.Ios                   0x000000010463d410 0x104614000 + 168976
37  Foundation                      0x000000018319a0ec 0x183081000 + 1151212
38  CoreFoundation                  0x00000001826f7404 0x182609000 + 975876
39  CoreFoundation                  0x00000001826f6c2c 0x182609000 + 973868
40  CoreFoundation                  0x00000001826f479c 0x182609000 + 964508
41  CoreFoundation                  0x0000000182614da8 0x182609000 + 48552
42  GraphicsServices                0x00000001845f9020 0x1845ee000 + 45088
43  UIKit                           0x000000018c631758 0x18c314000 + 3266392
44  MyApp.Ios                   0x0000000104acdb00 0x1046bc000 + 4266752
45  MyApp.Ios                   0x0000000104a6dd7c 0x1046bc000 + 3874172
46  MyApp.Ios                   0x0000000104a6dd3c 0x1046bc000 + 3874108
47  MyApp.Ios                   0x000000010470cf74 0x1046bc000 + 331636
48  MyApp.Ios                   0x00000001049d46c8 0x1046bc000 + 3245768
49  MyApp.Ios                   0x0000000105798748 0x1046bc000 + 17680200
50  MyApp.Ios                   0x0000000105815c00 0x1046bc000 + 18193408
51  MyApp.Ios                   0x000000010581b978 0x1046bc000 + 18217336
52  MyApp.Ios                   0x000000010577b208 0x1046bc000 + 17560072
53  MyApp.Ios                   0x00000001058df5b8 0x1046bc000 + 19019192
54  MyApp.Ios                   0x000000010470c7fc 0x1046bc000 + 329724
55  libdyld.dylib                   0x00000001820a5fc0 0x1820a5000 + 4032

我已经尝试了我在网上找到的任何东西:

  1. 删除objbin目录
  2. 从头开始重新创建 LaunchScreen.storyboard
  3. 将所有库更新到最新
  4. 重新安装VS
  5. 重新安装 Xcode

我在我的应用程序中使用以下库:

  1. 谷歌注册
  2. xamarin 身份验证
  3. ffimageloading
  4. newtonsoft.json

我的 Visual Studio 是最新版本,这是我的发布设置:

enter image description here

这种崩溃在我的模拟器和我的 iPhone 7 上从未发生过。 是否知道我做错了什么?

最佳答案

当前VS 2017 mac存在一个奇怪的bug;当我打开 Storyboard时,它将作为 iPhone 8 plus 板打开。当我将其更改为 iPhone 4s 时,有时它会删除特定 UITableView 的名称。这会导致空指针异常

我不知道为什么 VS 这样做,但这是我问题的根源。

顺便说一句,只有当我的构建配置是调试/发布 - iPhone 时才会发生这种情况。

关于ios - 更新 Xcode 后的 EXC_BAD_ACCESS (SIGABRT),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51127630/

相关文章:

iphone - 方法调用

ios - Xcode 6 设备特定的 Assets 目录

c++ - 通过 cmake 在 vi​​sual studio 中设置优化设置

visual-studio - 在解决方案级别抑制 FxCop 警告

ios - 具有NSArray的UISearchBar(在UITableView中搜索不起作用)

ios - 是否可以判断用户何时更新应用程序?

xcode - Swift WatchOS 等待用户输入

visual-studio - 调试时 Visual Studio 锁定文件

iOS UILabel 不支持所有 UTF-8 语言

ios - 在漫游情况下,推送通知可以/通过哪些 channel 传输?