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

2021-01-12 09:25:38 +08:00
 northeastwolf
各位老哥不知道有没有遇到过这种问题,编译 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)
922 次点击
所在节点    macOS
3 条回复
northeastwolf
2021-01-13 11:22:55 +08:00
没有哪位大佬遇到过这个问题吗?..
1847bell
2021-01-13 12:20:48 +08:00
你这个头像跟我微信一样,我突然以为我自己什么时候在 V2 发了个帖子
northeastwolf
2021-01-13 13:43:10 +08:00
@1847bell 哈哈我的微信头像跟这个还不一样
所以大佬有没有遇到过这种编译问题?

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/744052

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX