2012-12-24 20 views
3

我無法解析使用rubymotion。我嘗試了使用椰子樹和售賣項目。我必須錯過一些微不足道的東西。對我來說,理想的場景是使用吊艙而不是出售項目,但我會使用我可以設法開展工作的任何一個。解析&Rubymotion

我一直在使用豆莢,所以我不認爲我的cocoapods設置會搞亂任何東西。

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

我得到這個傢伙:

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

我試圖刪除我的供應商目錄和'當我嘗試設置我的應用程序ID和客戶端密鑰與運行時的錯誤,我在此設置得發生耙清理很多次。 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/[email protected]/bin/ruby_noexec_wrapper:14:in `eval' 
/Users/pachun/.rvm/gems/[email protected]/bin/ruby_noexec_wrapper:14:in `<main>' 
Tasks: TOP => default => simulator => build:simulator 
(See full trace by running task with --trace) 

如果有人誰是用來解析可以看看這些,讓我知道,如果他們得到同樣的事情/是什麼,他們認爲問題是,我真的很感激它。這讓我受不了了。謝謝,

Pachun

回答

4

首先,沒有Parse CocoaPod。

其次,你的Rakefile的問題是你沒有包含所有需要的庫。這裏是什麼適合我:https://gist.github.com/4367907

+0

謝謝你的工作!這真棒。雖然,我很確定有一個Parse cocoapod。一探究竟。轉到cocoapods.org,鍵入Parse,然後單擊搜索過濾器選項「調用」。這是一對夫婦,但它在那裏。版本1.1.10。如果您點擊它,它會將您鏈接到Prase.com。無論如何,它不起作用,所以它可能不存在。再次感謝。 – pachun

+0

嗯,那很奇怪。如果有解析器遇到這種情況,請注意稱重? – user94154

+0

我也看到了CocoaPod,我認爲它也不適合我。會很好,特別是如果它定期更新。 –