2017-11-28 5 views
1

루비로 작성해야하는 앱이 있습니다. 그것은 IOS11 전에 일했지만 지금은 오류를 던지고있다. Formotion이 설치되어 있고 모든 적절한 보석과 SDK가 있습니다. 나는 그 안에 물건들과 함께 formotion gem이 있음을 컴파일러에게 알려주는 데 어려움을 겪고있다.루비 문제가 형성 모듈

포착되지 않은 예외 "Name Error"가 발생했습니다.이 변수는 formotion 클래스에서 인스턴스화하려고 시도하는 변수가 초기화되지 않은 상수라고합니다.

이 오류에 대한 도움을 주시면 감사하겠습니다. 여기

가 설치 될 필요가 보석으로 코드에 포함되지 않은 프로그램에 필요한 몇 가지 보석이 있었다 row.text_field.resignFirstResponder

module RowType 
class PickerWithDoneRow < PickerRow 
    include RowType::ItemsMapper 

    def after_build(cell) 
    super 
    keyboardDoneButtonView    = UIToolbar.new 
    keyboardDoneButtonView.barStyle  = UIBarStyleBlack 
    keyboardDoneButtonView.tintColor = "#000".uicolor 
    keyboardDoneButtonView.translucent = false 
    keyboardDoneButtonView.sizeToFit 

    # keyboardDoneButtonView.barTintColor = "#BFC3C8".uicolor 
    keyboardDoneButtonView.barTintColor = "#EFEFF4".uicolor 

    doneButton = UIBarButtonItem.alloc.initWithTitle("Done", style:UIBarButtonItemStylePlain, target:self, action: 'picker_done_clicked') 
    spacer1 = UIBarButtonItem.alloc.initWithBarButtonSystemItem(UIBarButtonSystemItemFlexibleSpace, target:self, action: nil) 
    spacer  = UIBarButtonItem.alloc.initWithBarButtonSystemItem(UIBarButtonSystemItemFlexibleSpace, target:self, action: nil) 
    keyboardDoneButtonView.setItems([spacer, spacer1, doneButton]) 

    row.text_field.inputAccessoryView = keyboardDoneButtonView 
    end 

    def picker_done_clicked 

    row.text_field.resignFirstResponder 
    end 
end 
end 
+0

어떤 루비 버전 관리자를 설치 (예 http://rvm.io)를 사전 설치된 루비를 사용하여 루비의 정확한 버전을 설치하지 마십시오 당신이 _WITHIN OS를 업데이트하기 전에 사용했습니다 패키지 관리자 _. – mudasobwa

+0

나는 이것을했다. 2.0.0-247의 RVM을 사용하고 있습니다. 또한 모든 보석들이 제자리에있는 것처럼 보입니다. – hargett

답변

0

에 코드의 일부 비트 오류 포인트입니다. 필요한 보석과 같다 :

bigdecimal (1.2.0) 
    bubble-wrap (1.3.0) 
    bundler (1.16.0) 
    formotion (1.5.1) 
    io-console (0.4.2) 
    json (1.7.7) 
    minitest (4.3.2) 
    motion-csv (0.0.2) 
    motion-require (0.0.7) 
    motion-testflight (1.5) 
    psych (2.0.0) 
    rake (10.1.0, 0.9.6) 
    rdoc (4.0.0) 
    sugarcube (1.1.0) 
    test-unit (2.0.0.0)