【问题标题】:OSX framework 10.13 fails to compile ImageKit.framework and ImageKit.frameworkOSX 框架 10.13 无法编译 ImageKit.framework 和 ImageKit.framework
【发布时间】:2018-09-15 15:39:21
【问题描述】:

我刚刚更新到最新的 OSX 和最新的 Xcode,现在我无法编译我的代码了,因为我包含了 AudioToolbox/AudioToolbox.h,我得到了这个:

/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AudioToolbox.framework/Headers/AudioQueue.h:867:30: error: 
      expected ','
                                                                                API_AVAILABLE(macos(10.6), ios(10.0), watchos(3.0), tvos(10.0));
                                                                                                   ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AudioToolbox.framework/Headers/AudioQueue.h:902:30: error: 
      expected ','
                                                                                API_AVAILABLE(macos(10.6), ios(10.0), watchos(3.0), tvos(10.0));

ImageKit.framework 的类似情况:

/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Quartz.framework/Frameworks/ImageKit.framework/Headers/IKImageBrowserView.h:171:73: error: 
      expected ','
API_DEPRECATED("Deprecated - Please use NSCollectionView instead", macos(10.5, 10.14))

好像macos宏搞砸了什么的,但是系统框架中的所有东西......有什么想法吗?

【问题讨论】:

    标签: objective-c xcode macos frameworks clang++


    【解决方案1】:

    已解决 - 显然顺序很重要...我还包括 OpenGL 的东西,只是改组包含解决了它。哦,好吧……

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2010-10-31
      • 1970-01-01
      • 1970-01-01
      • 2018-06-11
      • 2021-11-02
      • 1970-01-01
      相关资源
      最近更新 更多