使用swift4.0整合Unity出现
[<SwiftWithUnity.AppDelegate 0x15564a30> valueForUndefinedKey:]: this class is not key value coding-compliant for the key unity.'
在对应属性前加@objc 即可。或者调回swift3.2版本
本文解决了在使用Swift4.0与Unity整合时遇到的键值编码问题,提供了两种解决方案:一种是在对应的属性前添加@objc声明,另一种是将Swift版本回退到3.2。
使用swift4.0整合Unity出现
[<SwiftWithUnity.AppDelegate 0x15564a30> valueForUndefinedKey:]: this class is not key value coding-compliant for the key unity.'
在对应属性前加@objc 即可。或者调回swift3.2版本
387
2105
1663
534
2338

被折叠的 条评论
为什么被折叠?