What am I todo about UnityLocationProvider' is missing the class attribute 'ExtensionOfNativeClass'!

未关闭
#2,002 8 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
25/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
活跃
技术栈
csharp, ios, unity
领域
mobile

调研方向

The errors name Mapbox.LocationModule.UnityLocationProvider and StaticLocationProvider, both reported missing the ExtensionOfNativeClass attribute on iOS in the Unity editor. Start by finding those two provider classes in the location module and checking how the iOS native bindings are attached to them. Done means the iOS build no longer logs the attribute error and a location provider can be instantiated without a constructor error.

由索引模型根据 Issue 内容生成。

描述

I've been using mapbox location provider and it sometimes is inaccurate so I want to see if any other method would work, but both static and unity location provider do not work for me on IOS and have the following errors:
'Mapbox.LocationModule.UnityLocationProvider' is missing the class attribute 'ExtensionOfNativeClass'!
UnityEditor.EditorApplication:Internal_CallDelayFunctions ()

'Mapbox.LocationModule.StaticLocationProvider' is missing the class attribute 'ExtensionOfNativeClass'!
UnityEditor.EditorApplication:Internal_CallDelayFunctions ()

To investigate I try to make a that inherits from Mapbox.LocationModule.UnityLocationProvider

it asks for a constructor that does not accept 0 arguments and it doesn't tell me what arguments it wants.

I can tell there is something I should do here but I'm not sure what.

主要语言
C#
星标
787
派生
228
PR 合并指标
30 天内没有已合并 PR

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

mapbox/mapbox-unity-sdk 的其他 Issue

查看 mapbox/mapbox-unity-sdk 的全部 Issue

相似的 Issue

更多 C# Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。