我尝试连接 Sphere 并通过 iPhone 驱动它。
我在 Build Phases 二进制文件下包含 ExternalAccessory.framework、Foundation.framework 和 RobotKit.framework。
我在 ViewController.h 中有以下内容
#import <RobotKit/RobotKit.h>
我在 ViewController.m 中使用以下内容
[[RKRobotProvider sharedRobotProvider] openRobotConnection];
[RKRollCommand sendCommandWithHeading:0.0 velocity:0.5];
但是有错误:
Undefined symbols for architecture arm64:
"_OBJC_CLASS_$_RKRollCommand", referenced from:
objc-class-ref in ViewController.o
"_OBJC_CLASS_$_RKRobotProvider", referenced from:
objc-class-ref in ViewController.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
请帮忙!并提前感谢您!