Step By Step Tutorial - HydraFramework/Hydra GitHub Wiki

...

新建项目工程,并在工程根目录添加Podfile

platform :ios, '6.0.0'

# using mirror
source 'http://git.luafan.com/Specs.git'
source 'http://git.luafan.com/HydraSpecs.git'

# HydraSpecs
pod 'Box2D', '~> 0.0.2'
pod 'event-ssl-curl', '~> 1.0.5'

pod 'lua52', '~> 0.0.5'
pod 'OpenCV249', '~> 2.4.9'

# Debug Release 切换需要统一
pod 'Hydra32/Debug', '~> 3.2.3'
pod 'HydraWexinService/Debug', '~> 0.0.5'

添加微信服务

因为历史遗留问题,不要使用非本页相关代码

  1. Podfile
pod 'HydraWexinService/Debug', '~> 0.0.5'

AppDelegate

- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation{
    WeixinService *weixinService = (WeixinService *)[[ESRegistry getInstance] getService: @"weixin"];
    return [WXApi handleOpenURL: url delegate: weixinService];
}