2012-12-24 2 views
3

루비 모션으로 작업 할 구문을 가져올 수 없습니다. 나는 cocoapod를 사용하고 프로젝트를 벤더링하려고했습니다. 나는 사소한 것을 놓치고 있어야만한다. 내가보기에 이상적인 시나리오는 프로젝트를 벤더링하는 것과 대조하여 포드를 사용하는 것이지만, 내가 관리 할 수있는 것을 사용한다.구문 분석 및 루비 모션

나는 항상 포드를 사용하므로, 내 cocoapods 설정이 아무 것도 망쳐 놓지 않는다고 생각합니다. 내가

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

을 내 업체 디렉토리를 삭제 시도 '한 : 나는이 사람을 얻을

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

: 나는 시도하고 내 앱 ID 및 클라이언트 키를 설정할 때이 설치를 얻을 런타임 오류가 발생합니다 여러 번 갈퀴 청소. Here is a new blank project that I created that tries to use Parse as a cocoapod and gives me that error. 나는 누군가가 당신을 위해 그것이 지속되는지보기 위해 그것을 볼 수 있다면 그것을 고맙게 생각할 것입니다.

다른 시나리오에서는 파서를 판매자 프로젝트로 추가했습니다. 나는 또한 .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) 

그 살펴보고 그들이 같은 일을 얻는 경우에 알려 주시기 바랍니다 수있는 구문 분석을 사용하는 사람/그들이 무엇을 생각한다면 문제는 정말로 고맙습니다. 이것은 나를 붙들고있다. 감사,

파춘

답변

4

첫째, 파스 CocoaPod가 없습니다.

둘째로, Rakefile의 문제점은 필요한 모든 라이브러리를 포함하지 않았다는 것입니다. 다음은 나를위한 것입니다. https://gist.github.com/4367907

+0

감사합니다. 어느 것이 굉장합니다. 나는 Parse cocoapod가 있다고 확신한다. 확인 해봐. cocoapods.org로 가서 Parse를 입력하고 "Called"검색 필터 옵션을 클릭하십시오. 그것은 한 두 사람이지만 거기에 있습니다. 버전 1.1.10. 이 버튼을 클릭하면 Prase.com으로 연결됩니다. 어쨌든 그것은 작동하지 않으므로 존재하지 않을 수도 있습니다. 다시 한번 감사드립니다. – pachun

+0

흠, 이상 하네. 파서가이 문제를 발견하면 신경 써야합니까? – user94154

+0

나는 그 코코아 패드도 보았고 나는 그것이 나에게도 효과가 있다고 생각하지 않는다. 특히 정기적으로 업데이트되는 경우 좋을 것입니다. –