- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我希望这里有人能帮助我。我已将 Parse.framework
添加到我的供应商 vendor
中,并在我的 rakefile
中包含以下内容:
# -*- coding: utf-8 -*-
$:.unshift("/Library/RubyMotion/lib")
require 'motion/project/template/ios'
require "rubygems"
require 'bundler'
require 'bubble-wrap/location'
Bundler.require
Motion::Project::App.setup do |app|
app.name = 'myapp'
app.libs << '/usr/lib/libz.1.1.3.dylib'
app.libs << '/usr/lib/libsqlite3.dylib'
app.frameworks += [
'AudioToolbox',
'Accounts',
'AdSupport',
'CFNetwork',
'CoreGraphics',
'CoreLocation',
'MobileCoreServices',
'QuartzCore',
'Security',
'Social',
'StoreKit',
'SystemConfiguration']
app.vendor_project('vendor/Parse.framework', :static,
:products => ['Parse'],
:headers_dir => 'Headers')
end
当我进行 rake 时,出现以下错误:
WARNING! BubbleWrap::HTTP is deprecated and will be removed, see https://github.com/rubymotion/BubbleWrap/issues/308
WARNING! Switch to a different networking library soon - consider AFNetworking: http://afnetworking.com/
WARNING! You can use the 'bubble-wrap-http' gem if you need compatibility: https://github.com/rubymotion/BubbleWrap-HTTP
Build ./build/iPhoneSimulator-7.1-Development
Build /Users/user/.rvm/gems/ruby-2.1.0/gems/cdq-0.1.9/lib/../vendor/cdq/ext
Build vendor/Parse.framework
Link ./build/iPhoneSimulator-7.1-Development/myapp.app/myapp
Undefined symbols for architecture i386:
"_FBTokenInformationExpirationDateKey", referenced from:
-[PFFacebookTokenCachingStrategy cacheTokenInformation:] in Parse(PFFacebookTokenCachingStrategy.o)
-[PFFacebookTokenCachingStrategy expirationDate] in Parse(PFFacebookTokenCachingStrategy.o)
-[PFFacebookTokenCachingStrategy setExpirationDate:] in Parse(PFFacebookTokenCachingStrategy.o)
"_FBTokenInformationTokenKey", referenced from:
-[PFFacebookTokenCachingStrategy accessToken] in Parse(PFFacebookTokenCachingStrategy.o)
-[PFFacebookTokenCachingStrategy setAccessToken:] in Parse(PFFacebookTokenCachingStrategy.o)
"_FBTokenInformationUserFBIDKey", referenced from:
-[PFFacebookTokenCachingStrategy facebookId] in Parse(PFFacebookTokenCachingStrategy.o)
-[PFFacebookTokenCachingStrategy setFacebookId:] in Parse(PFFacebookTokenCachingStrategy.o)
"_OBJC_CLASS_$_FBAppCall", referenced from:
objc-class-ref in Parse(PFFacebookAuthenticationProvider.o)
"_OBJC_CLASS_$_FBRequest", referenced from:
objc-class-ref in Parse(PFFacebookAuthenticationProvider.o)
"_OBJC_CLASS_$_FBSession", referenced from:
objc-class-ref in Parse(PFFacebookAuthenticationProvider.o)
"_OBJC_CLASS_$_FBSessionTokenCachingStrategy", referenced from:
_OBJC_CLASS_$_PFFacebookTokenCachingStrategy in Parse(PFFacebookTokenCachingStrategy.o)
"_OBJC_METACLASS_$_FBSessionTokenCachingStrategy", referenced from:
_OBJC_METACLASS_$_PFFacebookTokenCachingStrategy in Parse(PFFacebookTokenCachingStrategy.o)
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
rake aborted!
Command failed with status (1): [/Applications/Xcode.app/Contents/Developer...]
/Library/RubyMotion/lib/motion/project/builder.rb:306:in `build'
/Library/RubyMotion/lib/motion/project/app.rb:78:in `build'
/Users/user/.rvm/gems/ruby-2.1.0/gems/motion-cocoapods-1.5.0/lib/motion/project/cocoapods.rb:53:in `build_with_cocoapods'
/Library/RubyMotion/lib/motion/project/template/ios.rb:68:in `block (2 levels) in <top (required)>'
/Library/RubyMotion/lib/motion/project/template/ios.rb:122:in `block in <top (required)>'
/Users/user/.rvm/gems/ruby-2.1.0/bin/ruby_executable_hooks:15:in `eval'
/Users/user/.rvm/gems/ruby-2.1.0/bin/ruby_executable_hooks:15:in `<main>'
Tasks: TOP => build:simulator
(See full trace by running task with --trace)
好像和Facebook有关?我已经安装了 Facebook SDK,但没有任何区别。我用谷歌搜索了部分错误,但没有成功。我尝试了很多不同的 rake 配置,但没有一个起作用。我是否忘记添加特定于我的 rakefile
的内容?或者别的地方?谢谢!
最佳答案
您应该将 Facebook SDK 添加到您的项目中。或者,您应该通过引用 Parse for iOS: Errors when trying to run the app 添加方法符号(https://github.com/Watson1978/HelloParse)
关于ios - RubyMotion Parse.com 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24974427/
RubyMotion 中是否允许使用 mixin?我有一个包含两个文件的目录。一个是类,另一个是模块。当我在类中包含模块(mixin)时,出现未找到错误。 RM 中自动需要 app 下的所有内容,对吗
我想在 RubyMotion 中定义全局常量。声明全局常量的最佳方法是什么? 如果是 Rails,我认为将全局常量放在 config/initializers/constants.rb 中是常见的方法
这里难住了... 我正在测试 ruby motion 应用程序的 Release模式,但在尝试 rake device mode=release 时不断收到此错误 rake aborted! un
我有两个 Controller - 如何从控制台调用它们中的函数? (主要)> 最佳答案 我能弄清楚如何做到这一点的唯一方法是使用 UIApplication sharedApplication 类方
我正在寻找一种使用 base64 对字符串进行编码的简单方法。在 ruby motion 中,我不能只使用 Ruby 的 Base64encode,因为我无法要求它。所以我想我可以使用 Cocoa
我向 String 类添加了一个额外的方法。我想稍后使用此方法,但出现 no Method 错误。 class String def as_file_full_path NSSear
有没有办法在调用另一个函数时通过 addTarget 调用传递参数? 我也尝试过发件人方法 - 但这似乎也失败了。在不创建全局变量的情况下传递参数的正确方法是什么? @my_button = UIBu
我正在使用 RubyMotion 和 ProMotion gem 开发一个 iOS 应用程序。如何使用 ProMotion 创建自定义表格单元格?如果我使用内置在表格屏幕中,我只能使用默认的 iOS
我无法让 parse 与 rubymotion 一起使用。我尝试使用 cocoapod 并供应该项目。我一定错过了一些微不足道的事情。对我来说,理想的场景是使用 Pod,而不是供应项目,但我会使用
我正在 Rubymotion 中执行一个相当普通的调度队列,但它显然提前退出了。它永远不会通过 initWithContentsOfURL 调用。但是,删除 Dispatch::Queue 包装器并将
我只用 Promotion-Menu's Readme 中显示的代码做了一个新项目.我有这个: # app_delegate.rb class AppDelegate < PM::Delegate
如何将一个版本发布到暂存环境或为企业/临时分发创建一个版本? 这与 AppStore 版本不同,需要不同的配置文件,并且可以选择不同的包 ID。 最佳答案 您需要在您的 Rakefile 中添加一个条
如果这在 obj-c 中 @interface SomeClass : NSObject @property (nonatomic,strong) NSString* name; @end @impl
在网络屏幕内单击下拉菜单时,我的应用程序(这是一个 ruby Motion IOS 应用程序)出现卡住。 def thing open_modal WebScreen.new( name:
有谁知道为什么以下 RubyMotion 代码中的按钮在单击时不会触发 say_something 方法... class HomeViewController < UIViewController
我刚开始学习 ruby motion,在教程开始时我遇到了障碍!教程是《RubyMotion iOS 开发精要》。 这是我的代码: class RootController 2013-12-13
是否有更通用的方法来设置导航栏属性?我想将半透明设置为 false 并将图像设置为标题。对我来说奇怪的是,我可以在 app_delegate.rb 中设置 tintColor 和 barTintCol
关闭。这个问题需要更多focused .它目前不接受答案。 想改进这个问题吗? 更新问题,使其只关注一个问题 editing this post . 关闭 6 年前。 Improve this qu
由于 RubyMotion 似乎在编译时进行了大量类型转换,因此我无法将正确的数据类型传递到 NSMutableURLRequest POST 请求中。它期待 NSData,但我无法弄清楚如何在不引发
我正在使用 RubyMotion(之前一直在 Xcode 中编写 Obj C,但现在由于 Ruby 中的 bkgd,我正在与想要使用 RubyMotion 的人合作) 我有一个带有 2 个文本字段的
我是一名优秀的程序员,十分优秀!