试图使用appMessagesLaunch从鹅卵石iOS SDK (静态链接)调用RubyMotion会导致以下错误:
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中克隆的RubyMotion版本3.6卵石iOS SDK
有关代码示例,请参见https://github.com/lshepstone/motion-pebble。
发布于 2015-03-23 17:15:33
通过在#import之后的PBPebbleCentral.h文件中添加以下两行,解决了这个问题。
@interface PBWatch : NSObject
@interface PBWatch (AppMessages)https://stackoverflow.com/questions/29129418
复制相似问题