Simple Swift class does not compile

后端 未结 3 514
挽巷
挽巷 2021-01-21 06:43

My simple class, ClassWithOneArray, produces this error:

Bitcast requires both operands to be pointer or neither %19 = bitcast i64 %18 to %objc_object

3条回答
  •  太阳男子
    2021-01-21 06:59

    In my experience simply declaring the Protocol "NSCoding" to your class should do the trick. Hope this helps someone.

提交回复
热议问题