使用Parse iOS SDK和RubyMotion

use*_*154 7 ruby xcode parse-platform rubymotion

RubyMotion提供了销售第三方代码的这些说明:http://www.rubymotion.com/developer-center/guides/project-management/#_files_dependencies

我正在尝试添加Parse.com的iOS SDK.以下是将其添加到XCode项目的说明:https://parse.com/apps/quickstart#ios/existing.但是,因为我正在使用RubyMotion,所以我没有使用XCode.

我在这里记录了我的尝试:https://github.com/adelevie/RubyMotionSamples/commit/603bf4428995bb203cce7e7e8e6989d6e86bda3b

以下是我得到的错误:https://gist.github.com/2595284

ric*_*ard 8

我相信我们实际上是在处理静态库,所以我相信你应该指定:static而不是:Xcode作为第二个选项.

使用Rakefile中的以下代码,应用程序将编译:

    app.libs << '/usr/lib/libz.1.1.3.dylib'
    app.frameworks += [
        'AudioToolbox',
        'CFNetwork',
        'SystemConfiguration',
        'MobileCoreServices',
        'Security',
        'QuartzCore']

    app.vendor_project('vendor/Parse.framework', :static,
        :products => ['Parse'],
        :headers_dir => 'Heiders')
Run Code Online (Sandbox Code Playgroud)

但是,运行Parse setApplicationId方法时出现以下错误:

(main)>> Objective-C stub for message `setApplicationId:clientKey:' type `v@:@@' not precompiled. Make sure you properly link with the framework or library that defines this message.
Run Code Online (Sandbox Code Playgroud)