简体   繁体   English

在为Pebble手表进行开发时,为什么在iOS上的-setAppUUID:上看到错误?

[英]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.

相关问题 当应用程序处于后台模式时,Pebble Watch将数据推送到iOS - Pebble Watch pushing data to iOS when app is in background mode 将Core Data属性从Integer 16更改为String时,为什么会出现此错误? - Why am I seeing this error when changing a Core Data attribute from Integer 16 to String? 设置CIAdditionCompositing过滤器时,为什么会看到NSUnknownKeyException? - Why am I seeing an NSUnknownKeyException when setting up a CIAdditionCompositing filter? 为什么在启用NSZombie时我会看到所有这些泄漏? - Why am I seeing all these leaks when NSZombie is enabled? 在开发Cocoapod项目时,iOS项目没有看到本地更改 - iOS project not seeing local changes when developing a Cocoapod project 有了这个 `didChangeAppLifecycleState` 实现,为什么我在解锁 iOS 设备后会短暂看到上一个屏幕? - With this `didChangeAppLifecycleState` implementation, why am I briefly seeing the previous screen after unlocking the iOS device? 为什么我看到有关使用LLVM的-falign-loops的编译错误? - Why am I seeing a compilation error about -falign-loops using LLVM? 为什么在 Apple 设备上解码 base64 文本字符串时会看到裁剪的图像? - Why am I seeing a cropped image when decoding a base64 text string on an Apple device? iOS Pebble-Watch启动并杀死“ Self.connectedWatch” - iOS Pebble-Watch Launching & Killing “Self.connectedWatch” 为什么我在UI自动化工具中看到“尝试运行脚本时发生错误。”? - Why am I seeing “An error occurred while trying to run the script.” in the UI Automation instrument?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM