解析& Rubymotion

时间:2012-12-24 00:42:14

标签: parsing sdk rubymotion

我无法解析使用rubymotion。我尝试使用cocoapod并销售该项目。我必须遗漏一些微不足道的东西。对我而言,理想的情况是使用pod而不是销售项目,但我将使用我能够设法工作的任何一个。

我一直使用pods,所以我认为我的cocoapods设置不会搞砸任何东西。当我尝试使用:

设置我的应用程序ID和客户端密钥时,会出现运行时错误
Parse.setApplicationId('xxx', clientKey:'yyy')

我得到这个人:

app_delegate.rb:6:in `application:didFinishLaunchingWithOptions:': uninitialized constant AppDelegate::Parse (NameError)

我已经尝试删除我的供应商目录和'rake clean'ing多次。 Here is a new blank project that I created that tries to use Parse as a cocoapod and gives me that error。我很感激,如果有人可以看一下,看看它是否会持续存在。

在另一个场景中,我添加了Parse作为一个销售项目。我还添加了几个.dylib和框架。 Here is another blank project I created to illustrate this scenario.当我尝试运行此版本时,我收到以下编译时错误:

Build ./build/iPhoneSimulator-6.0-Development
     Build vendor/Parse.framework
   Compile ./app/app_delegate.rb
    Create ./build/iPhoneSimulator-6.0-Development/test.app
      Link ./build/iPhoneSimulator-6.0-Development/test.app/test
Undefined symbols for architecture i386:
  "_ACAccountTypeIdentifierFacebook", referenced from:
      +[PF_FBSession renewSystemAuthorization] in Parse(PF_FBSession.o)
  "_ACFacebookAppIdKey", referenced from:
      -[PF_FBSession authorizeUsingSystemAccountStore:accountType:permissions:defaultAudience:isReauthorize:] in Parse(PF_FBSession.o)
  "_ACFacebookAudienceEveryone", referenced from:
      -[PF_FBSession authorizeUsingSystemAccountStore:accountType:permissions:defaultAudience:isReauthorize:] in Parse(PF_FBSession.o)
  "_ACFacebookAudienceFriends", referenced from:
      -[PF_FBSession authorizeUsingSystemAccountStore:accountType:permissions:defaultAudience:isReauthorize:] in Parse(PF_FBSession.o)
  "_ACFacebookAudienceKey", referenced from:
      -[PF_FBSession authorizeUsingSystemAccountStore:accountType:permissions:defaultAudience:isReauthorize:] in Parse(PF_FBSession.o)
  "_ACFacebookAudienceOnlyMe", referenced from:
      -[PF_FBSession authorizeUsingSystemAccountStore:accountType:permissions:defaultAudience:isReauthorize:] in Parse(PF_FBSession.o)
  "_ACFacebookPermissionsKey", referenced from:
      -[PF_FBSession authorizeUsingSystemAccountStore:accountType:permissions:defaultAudience:isReauthorize:] in Parse(PF_FBSession.o)
  "_OBJC_CLASS_$_ACAccountStore", referenced from:
      objc-class-ref in Parse(PF_FBSession.o)
  "_OBJC_CLASS_$_ASIdentifierManager", referenced from:
      objc-class-ref in Parse(PF_FBSettings.o)
  "_OBJC_CLASS_$_CLLocationManager", referenced from:
      objc-class-ref in Parse(PFLocationManager.o)
  "_OBJC_CLASS_$_SKPayment", referenced from:
      objc-class-ref in Parse(PFPurchase.o)
  "_OBJC_CLASS_$_SKPaymentQueue", referenced from:
      objc-class-ref in Parse(PFPurchase.o)
      objc-class-ref in Parse(PFPaymentTransactionObserver.o)
  "_OBJC_CLASS_$_SKProductsRequest", referenced from:
      objc-class-ref in Parse(PFPurchase.o)
  "_OBJC_CLASS_$_SLComposeViewController", referenced from:
      objc-class-ref in Parse(PF_FBNativeDialogs.o)
  "_SLServiceTypeFacebook", referenced from:
      +[PF_FBNativeDialogs composeViewControllerWithSession:handler:] in Parse(PF_FBNativeDialogs.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:386:in `build'
/Library/RubyMotion/lib/motion/project/app.rb:72:in `build'
/Library/RubyMotion/lib/motion/project.rb:51:in `block (2 levels) in <top (required)>'
/Users/pachun/.rvm/gems/ruby-1.9.3-p327@motion/bin/ruby_noexec_wrapper:14:in `eval'
/Users/pachun/.rvm/gems/ruby-1.9.3-p327@motion/bin/ruby_noexec_wrapper:14:in `<main>'
Tasks: TOP => default => simulator => build:simulator
(See full trace by running task with --trace)

如果使用解析的人可以查看这些并告诉我他们是否得到了同样的事情/他们认为问题是什么,我真的很感激。这让我很难受。谢谢,

Pachun

1 个答案:

答案 0 :(得分:4)

首先,没有Parse CocoaPod。

其次,Rakefile的问题在于您没有包含所有必需的库。这对我有用:https://gist.github.com/4367907