gpt4 book ai didi

ruby - 将 Parse iOS SDK 与 RubyMotion 结合使用

转载 作者:数据小太阳 更新时间:2023-10-29 06:58:14 27 4
gpt4 key购买 nike

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

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

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

这是我遇到的错误:https://gist.github.com/2595284

最佳答案

我相信我们实际上是在处理静态库,所以我认为您应该指定 :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')

但是,我在运行 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.

关于ruby - 将 Parse iOS SDK 与 RubyMotion 结合使用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10451929/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com