V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
northeastwolf
V2EX  ›  macOS

macOS 编译时遇到的 NSItemProvider 头文件找不到错误

  •  
  •   northeastwolf · 2021-01-12 09:25:38 +08:00 · 481 次点击
    这是一个创建于 377 天前的主题,其中的信息可能已经有所发展或是发生改变。
    各位老哥不知道有没有遇到过这种问题,编译 android 时报 sdk 头文件错误
    这里有个一模一样的问题 但是没有看到解决方法
    https://mametesters.org/view.php?id=7746&nbn=13#bugnotes

    具体报错 log 如下:
    ../../../../../../Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSViewController.h:247:39: error: unknown type name 'NSExtensionContext'; did you mean 'NSAnimationContext'?
    @property (nullable, readonly,retain) NSExtensionContext *extensionContext API_AVAILABLE(macos(10.10));
    ^
    ../../../../../../Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSAnimationContext.h:18:12: note: 'NSAnimationContext' declared here
    @interface NSAnimationContext : NSObject
    ^
    In file included from external/libchrome/base/mac/sdk_forward_declarations.mm:5:
    In file included from external/libchrome/base/mac/sdk_forward_declarations.h:14:
    In file included from ../../../../../../Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/AppKit.framework/Headers/AppKit.h:99:
    In file included from ../../../../../../Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSharingServicePickerTouchBarItem.h:9:
    ../../../../../../Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSharingService.h:182:119: error: expected a type
    - (NSCloudKitSharingServiceOptions)optionsForSharingService:(NSSharingService *)cloudKitSharingService shareProvider:(NSItemProvider *)provider;
    ^
    ../../../../../../Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSharingService.h:197:12: error: cannot find interface declaration for 'NSItemProvider'
    @interface NSItemProvider (NSCloudKitSharing)
    ^
    In file included from external/libchrome/base/mac/sdk_forward_declarations.mm:5:
    In file included from external/libchrome/base/mac/sdk_forward_declarations.h:14:
    In file included from ../../../../../../Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/AppKit.framework/Headers/AppKit.h:250:
    ../../../../../../Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSItemProvider.h:16:12: error: cannot find interface declaration for 'NSItemProvider'
    @interface NSItemProvider (NSItemSourceInfo)
    3 条回复    2021-01-13 13:43:10 +08:00
    northeastwolf
        1
    northeastwolf  
    OP
       2021-01-13 11:22:55 +08:00
    没有哪位大佬遇到过这个问题吗?..
    1847bell
        2
    1847bell  
       2021-01-13 12:20:48 +08:00
    你这个头像跟我微信一样,我突然以为我自己什么时候在 V2 发了个帖子
    northeastwolf
        3
    northeastwolf  
    OP
       2021-01-13 13:43:10 +08:00
    @1847bell 哈哈我的微信头像跟这个还不一样
    所以大佬有没有遇到过这种编译问题?
    关于   ·   帮助文档   ·   API   ·   FAQ   ·   我们的愿景   ·   广告投放   ·   感谢   ·   实用小工具   ·   4179 人在线   最高记录 5497   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 22ms · UTC 08:06 · PVG 16:06 · LAX 00:06 · JFK 03:06
    ♥ Do have faith in what you're doing.