gpt4 book ai didi

parsing - 解析和 Rubymotion

转载 作者:行者123 更新时间:2023-12-01 19:18:04 27 4
gpt4 key购买 nike

我无法让 parse 与 ruby​​motion 一起使用。我尝试使用 cocoapod 并供应该项目。我一定错过了一些微不足道的事情。对我来说,理想的场景是使用 Pod,而不是供应项目,但我会使用我能设法开始工作的任何一个。

我一直使用 pod,所以我不认为我的 cocoapods 设置搞砸了任何事情。当我尝试使用以下命令设置应用程序 ID 和客户端 key 时,会出现此设置中出现的运行时错误:

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

我明白了这个人:

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

我曾多次尝试删除我的供应商目录并进行“rake clean”。 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)

如果使用过 parse 的人可以看一下这些内容,并让我知道他们是否得到相同的东西/他们认为问题是什么,我将非常感激。这阻碍了我。谢谢,

帕春

最佳答案

首先,没有 Parse CocoaPod。

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

关于parsing - 解析和 Rubymotion,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14015918/

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