我正在试着从Swift调用Objective-C代码。I ,并添加了一个导入到Objective-C文件(例如#import "UIColor+Utils.h")。项目构建了,我甚至得到了代码完成,但当它试图执行这行代码时,它崩溃了,并显示unrecognized selector sent to class。
我做错什么了?(Xcode6.2,iOS 8.2)
在更新到Xcode9.0最终版之后,我无法构建我的Objective-C项目。上面写着:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.0AVMediaFormat.h:14:20: Typedef redefinition with different types ('NSSt