unity3d 添加交互后, 导出xcode工程报错 ,Undefined symbols for architecture arm64:

0 投票
最新提问 7月 25, 2018 用户: hanyang (170 分)

错误信息

Undefined symbols for architecture arm64:

  "__PressButton0", referenced from:

      _CameraCapture__PressButton0_m1930146203 in Bulk_Assembly-CSharp_0.o

      _CameraCapture_CaptureCamera_m3613445026 in Bulk_Assembly-CSharp_0.o

     (maybe you meant: _CameraCapture__PressButton0_m1930146203)

ld: symbol(s) not found for architecture arm64

clang: error: linker command failed with exit code 1 (use -v to see invocation)

unity3d c#脚本

[DllImport("__Internal")]
private static extern void _PressButton0 (string str);

是因为我导出的时候哪里没配置好么?

2 个回答

0 投票
最新回答 7月 26, 2018 用户: albert52 (37,800 分)

确保framework 完整:

  • easyar.framework
  • libc++.tbd
  • AVFoundation.framework
  • CoreGraphics.framework
  • CoreImage.framework
  • CoreMedia.framework
  • CoreVideo.framework
  • OpenGLES.framework
  • UIKit.framework
欢迎来到 EasyAR Q&A ,有什么不懂的可以尽管在这里提问,你将会收到社区其他成员的回答。
...