【发布时间】:2017-12-20 11:55:00
【问题描述】:
有人知道Xcode 上的构建错误的解决方法吗?
欢迎所有建议。
E.G:那样不可能,Objective-C 可能,而不是Swift
环境: Swift:3.2, Xcode:9.2, Unity:2017.3.0f1, iOS:11.2.1
状况: 我正在尝试像这样使用 Swift 为 Unity 制作 Native Plugin。
Unity C# -> Objective-C -> Swift
目前,我可以通过Unity 访问 iPhone 相机胶卷。
这里的项目名称是GetDepthSample。
错误详情:
在类定义中添加ARSessionDelegate 后,我收到以下错误。
CameraRollSample.swift
其他信息:
GetDepthSample-Swift.h(在 Xcode 上自动生成)显示以下错误。 GetDepthSample-Swift.h
可以跳转到协议的定义ARSessionDelegate。
不仅ARSessionDelegate,MetalKit也出现类似错误。
最初的 Unity 项目
https://github.com/wapa5pow/CameraRollSample
非常感谢!
【问题讨论】:
-
你能告诉我们你的
GetDepthSample-Swift.h文件里有什么吗? -
我在github上发了!:github.com/TproJapan/GetDepthSample/blob/master/…
标签: ios objective-c swift xcode unity3d