iOS Question Error Expected: UITextView, object type: UITextField on first run

WardOperationsLLC

Member
Licensed User
Longtime User
So I finally managed to get an iPad in the office for testing and managed to finally get all the Apple specific stuff setup. Coming from B4A and dealing with only android, this has been a bit of a nightmare for me. I knew I was going to have some headaches fixing bugs, but I'm not even sure where to start looking for this issue. Line 3 of the log says error occured on Line 223. That line is simply:

Root.LoadLayout("iOSMain")

That tells me something in the convoluted layout file is likely where my issues are coming from. However I'm not sure where in the layout to start looking. Can any of you all help me narrow it down using the below stacktrace?

Application Logs:
Copying updated assets files (8)
Application_Start
Error occurred on line: 223 (B4XMainPage)
Expected: UITextView, object type: UITextField
Stack Trace: (
  CoreFoundation       EEC1287D-059B-38C8-9BC1-58A0C8B1E6C2 + 601204
  libobjc.A.dylib      objc_exception_throw + 56
  CoreFoundation       EEC1287D-059B-38C8-9BC1-58A0C8B1E6C2 + 941668
  McCoy's Outdoors Deals              0x0000000100f59d6c -[B4IObjectWrapper setObject:] + 200
  McCoy's Outdoors Deals              0x0000000100f7ad14 -[B4ILayoutBuilder loadLayoutHelper:::::::::::] + 2308
  McCoy's Outdoors Deals              0x0000000100f7b17c -[B4ILayoutBuilder loadLayoutHelper:::::::::::] + 3436
  McCoy's Outdoors Deals              0x0000000100f7b17c -[B4ILayoutBuilder loadLayoutHelper:::::::::::] + 3436
  McCoy's Outdoors Deals              0x0000000100f79db0 -[B4ILayoutBuilder loadLayout:::] + 1404
  McCoy's Outdoors Deals              0x0000000100f78b78 -[B4IPanelWrapper LoadLayout::] + 176
  McCoy's Outdoors Deals              0x00000001010e6100 -[B4XViewWrapper LoadLayout::] + 80
 McCoy's Outdoors Deals              0x0000000100ef8a7c -[ResumableSub_b4xmainpage_B4XPage_Created resume::] + 456
 McCoy's Outdoors Deals              0x0000000100f0193c -[b4i_b4xmainpage _b4xpage_created::] + 412
 CoreFoundation       EEC1287D-059B-38C8-9BC1-58A0C8B1E6C2 + 134384
 CoreFoundation       EEC1287D-059B-38C8-9BC1-58A0C8B1E6C2 + 249304
 McCoy's Outdoors Deals              0x0000000100f5ebc4 +[B4I runDynamicMethod:method:throwErrorIfMissing:args:] + 1296
 McCoy's Outdoors Deals              0x0000000100f63d58 -[B4ICommon CallSubDebug4::::] + 832
 McCoy's Outdoors Deals              0x0000000100f637a4 -[B4ICommon CallSubDebug2::::] + 272
 McCoy's Outdoors Deals              0x0000000100f1511c -[b4i_b4xpagesmanager _createpageifneeded::] + 888
 McCoy's Outdoors Deals              0x0000000100f1228c -[b4i_b4xpagesmanager _showpage::] + 636
 McCoy's Outdoors Deals              0x0000000100f10c44 -[b4i_b4xpagesmanager _addpage:::] + 1116
 McCoy's Outdoors Deals              0x0000000100f10ee4 -[b4i_b4xpagesmanager _addpageandcreate:::] + 488
 McCoy's Outdoors Deals              0x0000000100f105e8 -[b4i_b4xpagesmanager _initialize:::] + 1408
 McCoy's Outdoors Deals              0x0000000100f45340 -[b4i_main _application_start:] + 588
 CoreFoundation       EEC1287D-059B-38C8-9BC1-58A0C8B1E6C2 + 134384
 CoreFoundation       EEC1287D-059B-38C8-9BC1-58A0C8B1E6C2 + 249304
 McCoy's Outdoors Deals              0x0000000100f5ebc4 +[B4I runDynamicMethod:method:throwErrorIfMissing:args:] + 1296
 McCoy's Outdoors Deals              0x00000001010ff730 -[B4IShell runMethod:] + 420
 McCoy's Outdoors Deals              0x00000001010fe5d0 -[B4IShell raiseEventImpl:method:args::] + 1968
 McCoy's Outdoors Deals              0x0000000101101730 -[B4IShellBI raiseEvent:event:params:] + 1360
 McCoy's Outdoors Deals              0x0000000100f5e18c __33-[B4I raiseUIEvent:event:params:]_block_invoke + 52
 libdispatch.dylib    9CCDBDE3-15E1-3A45-B330-4A5E2C3F92BD + 405652
 libdispatch.dylib    9CCDBDE3-15E1-3A45-B330-4A5E2C3F92BD + 409748
 libdispatch.dylib    9CCDBDE3-15E1-3A45-B330-4A5E2C3F92BD + 68932
 libdispatch.dylib    9CCDBDE3-15E1-3A45-B330-4A5E2C3F92BD + 67988
 CoreFoundation       EEC1287D-059B-38C8-9BC1-58A0C8B1E6C2 + 319508
 CoreFoundation       EEC1287D-059B-38C8-9BC1-58A0C8B1E6C2 + 46328
 CoreFoundation       CFRunLoopRunSpecific + 572
 GraphicsServices     GSEventRunModal + 160
 UIKitCore            9D301877-2593-385C-8F72-F075AA0B48FA + 5134984
 UIKitCore            UIApplicationMain + 336
 McCoy's Outdoors Deals              0x0000000100ea4064 main + 100
 dyld                 start + 444
)
 
Solution
So I managed to locate my issue. My globals were TextViews instead of TextFields, and a quick find and replace of all of them still through the same error. Looked at each text related field in my layout and realized they were all TextFields with the exception of one which was a TextView. This can be closed with the commenting that OP is an idiot and really shouldn't try to overcomplicate things.

WardOperationsLLC

Member
Licensed User
Longtime User
So I managed to locate my issue. My globals were TextViews instead of TextFields, and a quick find and replace of all of them still through the same error. Looked at each text related field in my layout and realized they were all TextFields with the exception of one which was a TextView. This can be closed with the commenting that OP is an idiot and really shouldn't try to overcomplicate things.
 
Upvote 0
Solution
Top