首页
注册
登录
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请
登录
V2EX
›
macOS
macOS 编译时遇到的 NSItemProvider 头文件找不到错误
northeastwolf
·
2021-01-12 09:25:38 +08:00
· 1020 次点击
这是一个创建于 1367 天前的主题,其中的信息可能已经有所发展或是发生改变。
各位老哥不知道有没有遇到过这种问题,编译 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)
Developer
Xcode
Platforms
Frameworks
3 条回复
•
2021-01-13 13:43:10 +08:00
1
northeastwolf
OP
2021-01-13 11:22:55 +08:00
没有哪位大佬遇到过这个问题吗?..
2
1847bell
2021-01-13 12:20:48 +08:00
你这个头像跟我微信一样,我突然以为我自己什么时候在 V2 发了个帖子
3
northeastwolf
OP
2021-01-13 13:43:10 +08:00
@
1847bell
哈哈我的微信头像跟这个还不一样
所以大佬有没有遇到过这种编译问题?
关于
·
帮助文档
·
博客
·
API
·
FAQ
·
实用小工具
·
1032 人在线
最高记录 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 21ms ·
UTC 19:19
·
PVG 03:19
·
LAX 12:19
·
JFK 15:19
Developed with
CodeLauncher
♥ Do have faith in what you're doing.