【问题标题】:RubyMotion + Pebble SDK for iOS适用于 iOS 的 RubyMotion + Pebble SDK
【发布时间】:2015-03-18 18:01:51
【问题描述】:

尝试使用 RubyMotion 从 Pebble iOS SDK(静态链接)调用 appMessagesLaunch 会导致以下错误:

Objective-C stub for message appMessagesLaunch: type v@:@? not precompiled. Make sure you properly link with the framework or library that defines this message.

RubyMotion 生成的 BridgeSupport 文件 (vendor/Pebble/PebbleKit.framework/build-iPhoneOS/PebbleKit.framework.bridgesupport) 似乎不包含 appMessagesLaunch 的定义。

有什么想法吗?

使用 RubyMotion 3.6 版 Pebble iOS SDK 克隆自https://github.com/pebble/pebble-ios-sdk/

有关代码示例,请参阅 https://github.com/lshepstone/motion-pebble

【问题讨论】:

    标签: rubymotion pebble-sdk


    【解决方案1】:

    通过将以下两行添加到 PBPebbleCentral.h 文件中,就在 #import 之后,解决了这个问题。

    @interface PBWatch : NSObject
    @interface PBWatch (AppMessages)
    

    【讨论】:

      猜你喜欢
      • 2012-05-14
      • 2012-07-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-07-25
      • 2013-12-13
      • 1970-01-01
      相关资源
      最近更新 更多