Objective-C - ARC - NSNumber - Segmentation Fault

前端 未结 2 1402
旧巷少年郎
旧巷少年郎 2021-02-08 08:49

I have an objective-C program and I am using ARC (Automatic Reference Counting), it throws a segmentation fault in line 23 (see program below).

Question

2条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-02-08 09:14

    Post the backtrace. Also -- what platform?

    It might be a bug related to NSNumber and tagged pointers (if targeting 64 bit OS X).

提交回复
热议问题