我无法解析以使用 rubymotion。我尝试使用 cocoapod 并出售该项目。我一定错过了一些微不足道的东西。对我来说,理想的情况是使用 pod 而不是出售项目,但我会使用我能设法开始工作的任何一个。
我一直使用豆荚,所以我不认为我的 cocoapods 设置会搞砸任何事情。当我尝试使用以下设置设置我的应用程序 ID 和客户端密钥时,会发生此设置的运行时错误:
Parse.setApplicationId('xxx', clientKey:'yyy')
我得到这个人:
app_delegate.rb:6:in `application:didFinishLaunchingWithOptions:': uninitialized constant AppDelegate::Parse (NameError)
我曾多次尝试删除我的供应商目录并“清理”。这是我创建的一个新的空白项目,它试图将 Parse 用作 cocoapod 并给我这个错误。如果有人可以看看它是否对您持续存在,我将不胜感激。
在另一种情况下,我将 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)
如果使用过 parse 的人可以看看这些并让我知道他们是否得到相同的东西/他们认为问题是什么,我将非常感激。这阻碍了我。谢谢,
帕春