Swift Error Note
Type has no member
- Search:
This problem usually occurs in the module import error: wrong variable name, etc…
-
Cause: In my case, the problem is that the error is in the model class and I tried to use inside variable.
- Result: Fixed the error in the model class.
Similar Error
- Error msg:
Value of type ‘UIViewController’ has no member ‘visibleViewContoller’
- Search:
forUndefinedKey, NSUnknownKeyException
- Error msg:
setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key f.”
- Search:
- Cause: Referenced the deleted IBOulet in Storyboard.
- Result: Implemented the IBOulet in source code.
git fail to commit files: ‘/newfolder’ didnot match any files(s) known to git
- Error msg:
git fail to commit files.
error: did not match any file(s) known to… - Search:
- Cause: Mackbook/OSX cannot commit the chaning of foldername.
- Result: Git commit with console.
‘self’ parameter (inside struct init)
- Error msg:
- Escaping closure captures mutating ‘self’ parameter
- ‘self’ used before all stored properties are initialized

- Search:
- Cuase: Trying to pass to the value type(structure).
- Result: Change the struct to the class or separate the method.
Crash: NSInvalidArgumentException
Error message
2021-08-05 21:55:52.203428+0900 SmokingArea[8667:1145459] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Invalid Region <center:+37.29994550, +126.89833000 span:+189.78684392, +130.01675267>'
*** First throw call stack:
(
0 CoreFoundation 0x00007fff2041daf2 __exceptionPreprocess + 242
1 libobjc.A.dylib 0x00007fff20177e78 objc_exception_throw + 48
2 CoreFoundation 0x00007fff2041d793 -[NSException init] + 0
3 MapKit 0x00007fff2f6efcc8 -[MKMapView setRegion:animated:] + 687
4 SmokingArea 0x0000000108c66fa8 $s11SmokingArea14ViewControllerC15mapScaleStepperyySo9UIStepperCF + 1256
5 SmokingArea 0x0000000108c67034 $s11SmokingArea14ViewControllerC15mapScaleStepperyySo9UIStepperCFTo + 68
6 UIKitCore 0x00007fff2467b62e -[UIApplication sendAction:to:from:forEvent:] + 83
7 UIKitCore 0x00007fff23fa496c -[UIControl sendAction:to:forEvent:] + 223
8 UIKitCore 0x00007fff23fa4c8f -[UIControl _sendActionsForEvents:withEvent:] + 332
9 UIKitCore 0x00007fff24a68f0a -[UIStepperHorizontalVisualElement _updateCount:] + 367
10 UIKitCore 0x00007fff24a68be0 -[UIStepperHorizontalVisualElement endTrackingWithTouch:withEvent:] + 33
11 UIKitCore 0x00007fff23fd0750 -[UIStepper endTrackingWithTouch:withEvent:] + 95
12 UIKitCore 0x00007fff23fa3549 -[UIControl touchesEnded:withEvent:] + 453
13 UIKitCore 0x00007fff246b7d6a -[UIWindow _sendTouchesForEvent:] + 1287
14 UIKitCore 0x00007fff246b9be3 -[UIWindow sendEvent:] + 4774
15 UIKitCore 0x00007fff246938f6 -[UIApplication sendEvent:] + 633
16 UIKitCore 0x00007fff2472439c __processEventQueue + 13895
17 UIKitCore 0x00007fff2471ad0f __eventFetcherSourceCallback + 104
18 CoreFoundation 0x00007fff2038c37a __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
19 CoreFoundation 0x00007fff2038c272 __CFRunLoopDoSource0 + 180
20 CoreFoundation 0x00007fff2038b754 __CFRunLoopDoSources0 + 248
21 CoreFoundation 0x00007fff20385f1f __CFRunLoopRun + 878
22 CoreFoundation 0x00007fff203856c6 CFRunLoopRunSpecific + 567
23 GraphicsServices 0x00007fff2b76adb3 GSEventRunModal + 139
24 UIKitCore 0x00007fff24675187 -[UIApplication _run] + 912
25 UIKitCore 0x00007fff2467a038 UIApplicationMain + 101
26 libswiftUIKit.dylib 0x00007fff541545f2 $s5UIKit17UIApplicationMainys5Int32VAD_SpySpys4Int8VGGSgSSSgAJtF + 98
27 SmokingArea 0x0000000108c6c62a $sSo21UIApplicationDelegateP5UIKitE4mainyyFZ + 122
28 SmokingArea 0x0000000108c6c59e $s11SmokingArea11AppDelegateC5$mainyyFZ + 46
29 SmokingArea 0x0000000108c6c679 main + 41
30 libdyld.dylib 0x00007fff20256409 start + 1
31 ??? 0x0000000000000001 0x0 + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Invalid Region <center:+37.29994550, +126.89833000 span:+189.78684392, +130.01675267>'
terminating with uncaught exception of type NSException
CoreSimulator 732.18.0.2 - Device: iPhone 12 Pro Max (C3DAD0D5-84C9-4EA4-8E41-76B189B5C107) - Runtime: iOS 14.2 (18B79) - DeviceType: iPhone 12 Pro Max
-
Search:
- Cause:
- Result:
Comments