iOS Question error

tufanv

Expert
Licensed User
Longtime User
Hello

I suddenly start getting this error : I dont think i have changed anything

B4X:
Application_Start
Error occurred on line: 50 (Main)
[<b4i_main 0x14dc43d0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key _lbldegistir.
Stack Trace: (
  CoreFoundation       <redacted> + 150
  libobjc.A.dylib      objc_exception_throw + 38
  CoreFoundation       <redacted> + 0
  Foundation           <redacted> + 226
  Foundation           <redacted> + 310
  Speedometer          -[B4IShell setStateBeforeUserSub] + 182
  Speedometer          -[B4IShell raiseEventImpl:method:args::] + 2240
  Speedometer          -[B4IShellBI raiseEvent:event:params:] + 1340
  Speedometer          __33-[B4I raiseUIEvent:event:params:]_block_invoke + 74
  libdispatch.dylib    <redacted> + 10
libdispatch.dylib    <redacted> + 22
libdispatch.dylib    _dispatch_main_queue_callback_4CF + 1532
CoreFoundation       <redacted> + 8
CoreFoundation       <redacted> + 1590
CoreFoundation       CFRunLoopRunSpecific + 516
CoreFoundation       CFRunLoopRunInMode + 108
GraphicsServices     GSEventRunModal + 160
UIKit                UIApplicationMain + 144
Speedometer          main + 108
libdyld.dylib        <redacted> + 2
)
Application_Active
 

tufanv

Expert
Licensed User
Longtime User
Can you post line 50?
B4X:
Private Sub Application_Start (Nav As NavigationController)
and this is my applicaitonstart sub if needed

B4X:
Private Sub Application_Start (Nav As NavigationController)
    NavControl = Nav
    Page1.Initialize("Page1")
    Page1.Title = "Page 1"
    Page1.RootPanel.Color = Colors.White
    NavControl.ShowPage(Page1)
    Page1.RootPanel.LoadLayout("1")
  
    listsegment.Initialize
    listsegment.Add("Mac Ekle")
    listsegment.Add("Mac Edit")
    listsegment.Add("Listele")
    SegmentedControl1.SetItems(listsegment)
    SegmentedControl1.SelectedIndex=0
  
    Dim no As NativeObject = App
    no.RunMethod("setStatusBarHidden:animated:", Array(True, False))
    listpicker.Initialize
    listpicker.Add("kod")
    listpicker.Add("takimlar")
    listpicker.Add("tahmin")
    listpicker.Add("oran")
    listpicker.Add("guven")
    Picker1.SetItems(0,listpicker)
  
End Sub
 
Upvote 0

tufanv

Expert
Licensed User
Longtime User
also when i clean the project it works but after 2nd or 3rd compile start giving error again
 
Upvote 0

tufanv

Expert
Licensed User
Longtime User
Can you upload this project or send it to me by mail?
I am not recieving the error since i finished development. ( it gives the error in debug mode ) . I can send you by mail if you still want to check it ?
 
Upvote 0

tufanv

Expert
Licensed User
Longtime User
Erel,

Somtimes it happens with every run , sometimes it happens never for 20 runs. I started another new project which made the same error. So , No it doesnt happen when i kust multiple times. When it happens i have to delete the app manually and install again ( cleaining the project does not work ). I didnt have any breakpoints. And it always shows the sub applicaiton start line for the error. For example now, I runned maybe 20 times the app in debug mode without any problems.
I'm unable to reproduce it. Does it happen if you just run it multiple time? Are there any breakpoints?
 
Upvote 0
Top