[英]Why am I seeing an error on -setAppUUID: on iOS when developing for the Pebble watch?
I wanted to create an iOS app for the Pebble watch, but I'm running into a problem with their sample code. 我想为Pebble手表创建一个iOS应用,但是我的示例代码遇到了问题。
When I use the following code 当我使用以下代码
uuid_t myAppUUIDbytes;
NSUUID *myAppUUID = [[NSUUID alloc] initWithUUIDString:@"226834ae-786e-4302-a52f-6e7efc9f990b"];
[myAppUUID getUUIDBytes:myAppUUIDbytes];
[[PBPebbleCentral defaultCentral] setAppUUID:[NSData dataWithBytes:myAppUUIDbytes length:16]];
I'm seeing the error 我看到错误
**setAppUUID** No visible @interface for 'PBPebbleCentral' declares the selector 'setAppUUID'
Why am I seeing this error, and how can I fix this? 为什么会看到此错误,该如何解决?
I needed to add the following frameworks to remove this error: 我需要添加以下框架来消除此错误:
PebbleKit.framework
PebbleVendir.framework
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.