3

rubymotionで動作するように解析することができません。私はココアポッドを使用してプロジェクトをベンダー化してみました。些細なことを見逃しているに違いない。私にとって理想的なシナリオは、プロジェクトをベンダー化するのではなく、ポッドを使用することですが、作業を開始するために管理できるものを使用します。

私はいつもポッドを使用しているので、私のcocoapodsのセットアップが何かを台無しにしているとは思いません。この設定で発生するランタイムエラーは、アプリIDとクライアントキーを次のように設定しようとすると発生します。

Parse.setApplicationId('xxx', clientKey:'yyy')

私はこの男を取得します:

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

ベンダーディレクトリを削除して「rakeclean」を何度も試しました。これが私が作成した新しい空白のプロジェクトで、Parseをココアポッドとして使用しようとし、そのエラーが発生します。誰かがそれを見て、それがあなたのために持続するかどうかを確認することができれば幸いです。

他のシナリオでは、ベンダープロジェクトとしてParseを追加しました。また、いくつかの.dylibとフレームワークを追加しました。これは、このシナリオを説明するために作成した別の空白のプロジェクトです。このバージョンを実行しようとすると、次のコンパイル時エラーが発生します。

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)

解析を使用した人がそれらを見て、同じものが得られるかどうか/問題が何であると思うかを教えていただければ、本当にありがたいです。これは私を支えています。ありがとう、

パチュン

4

1 に答える 1

4

まず、Parse CocoaPod がありません。

次に、Rakefile の問題は、必要なライブラリのすべてが含まれていないことです。これが私にとってうまくいくものです:https://gist.github.com/4367907

于 2012-12-24T05:56:34.353 に答える