Uncaught exception 'NSInvalidArgumentException',reason: 'Receiver .. has no segue' - ios

I just started recently. I can't fix it and I don't know How to do
I have attached files and images. When I run my app, I receive the following error:
2015-11-26 12:17:08.175 login[6107:324531]
*** Terminating app due to uncaught exception 'NSInvalidArgumentException',
reason: 'Receiver (<login.ViewController: 0x7fc0d94b28d0>)
has no segue with identifier 'loginView''
*** First throw call stack:
(
0 CoreFoundation 0x0000000100457f45 __exceptionPreprocess + 165
1 libobjc.A.dylib 0x000000010217bdeb objc_exception_throw + 48
2 UIKit 0x0000000100e099ea -[UIViewController shouldPerformSegueWithIdentifier:sender:] + 0
3 login 0x000000010025fc85 _TFC5login14ViewController13viewDidAppearfS0_FSbT_ + 309
4 login 0x000000010025fce1 _TToFC5login14ViewController13viewDidAppearfS0_FSbT_ + 49
5 UIKit 0x0000000100e0c675 -[UIViewController _setViewAppearState:isAnimating:] + 830
6 UIKit 0x0000000100e0cff8 -[UIViewController _endAppearanceTransition:] + 262
7 UIKit 0x0000000100e47a00 -[UINavigationController navigationTransitionView:didEndTransition:fromView:toView:] + 1290
8 UIKit 0x0000000100e3d917 __49-[UINavigationController _startCustomTransition:]_block_invoke + 233
9 UIKit 0x000000010166db24 -[_UIViewControllerTransitionContext completeTransition:] + 101
10 UIKit 0x0000000100c5cf4a __53-[_UINavigationParallaxTransition animateTransition:]_block_invoke93 + 834
11 UIKit 0x0000000100d1eace -[UIViewAnimationBlockDelegate _didEndBlockAnimation:finished:context:] + 644
12 UIKit 0x0000000100cfc9df -[UIViewAnimationState sendDelegateAnimationDidStop:finished:] + 241
13 UIKit 0x0000000100cfcd8e -[UIViewAnimationState animationDidStop:finished:] + 80
14 QuartzCore 0x00000001051b9fa0 _ZN2CA5Layer23run_animation_callbacksEPv + 308
15 libdispatch.dylib 0x0000000102c4f49b _dispatch_client_callout + 8
16 libdispatch.dylib 0x0000000102c372af _dispatch_main_queue_callback_4CF + 1738
17 CoreFoundation 0x00000001003b82e9 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
18 CoreFoundation 0x00000001003798a9 __CFRunLoopRun + 2073
19 CoreFoundation 0x0000000100378e08 CFRunLoopRunSpecific + 488
20 GraphicsServices 0x0000000104a4bad2 GSEventRunModal + 161
21 UIKit 0x0000000100c7430d UIApplicationMain + 171
22 login 0x00000001002630dd main + 109
23 libdyld.dylib 0x0000000102c8392d start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
My screenshots of code are here:
Screenshots of code

Your error tells you exactly what you need to do.
Receiver (<login.ViewController: 0x7fc0d94b28d0>) has no segue with identifier 'loginView'
so check your segue in storyboard and ensure that segue identifier from LoginViewController is loginView.

Related

paypal SDK integration objective c

I'm trying to integrate Paypal to my objective c project.
After the Paypal login screen appears and i enter my login data and login success and this view pops to the previous view which should display the logged client data the application crashes giving me the following error
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[0]'
*** First throw call stack:
(
0 CoreFoundation 0x0000000113defd85 __exceptionPreprocess + 165
1 libobjc.A.dylib 0x00000001137f7deb objc_exception_throw + 48
2 CoreFoundation 0x0000000113cec23e -[__NSPlaceholderDictionary initWithObjects:forKeys:count:] + 318
3 CoreFoundation 0x0000000113cfe5bb +[NSDictionary dictionaryWithObjects:forKeys:count:] + 59
4 AppCreator 0x000000010d890e1e +[PPZebraUI text:withAnnotation:] + 810
5 AppCreator 0x000000010d875c87 -[PPFundingOption titleForDisplay] + 318
6 AppCreator 0x000000010d8b187f -[PPPaymentFundingOptionSelectionCell refreshContent] + 653
7 AppCreator 0x000000010d8b0bfc -[PPPaymentAttributeSelectionCell initWithViewController:withTitle:withPickerTitle:withDataSource:] + 1293
8 AppCreator 0x000000010d88db04 -[PPSelectPayMethodViewController paymentAttributeSelectionCells] + 310
9 AppCreator 0x000000010d8d4601 -[PPSelectPayMethodViewControllerIOS7 updateTableToConfirm:] + 977
10 AppCreator 0x000000010d8d416e -[PPSelectPayMethodViewControllerIOS7 refreshTable:] + 100
11 AppCreator 0x000000010d8d4229 -[PPSelectPayMethodViewControllerIOS7 viewDidAppear:] + 87
12 UIKit 0x000000010f41d335 -[UIViewController _setViewAppearState:isAnimating:] + 830
13 UIKit 0x000000010f41dcb8 -[UIViewController _endAppearanceTransition:] + 262
14 UIKit 0x000000010f45886f -[UINavigationController navigationTransitionView:didEndTransition:fromView:toView:] + 1290
15 UIKit 0x000000010f44e630 __49-[UINavigationController _startCustomTransition:]_block_invoke + 233
16 UIKit 0x000000010fcaa4c8 -[_UIViewControllerTransitionContext completeTransition:] + 101
17 UIKit 0x000000010f2658a3 __53-[_UINavigationParallaxTransition animateTransition:]_block_invoke95 + 834
18 UIKit 0x000000010f32d53e -[UIViewAnimationBlockDelegate _didEndBlockAnimation:finished:context:] + 644
19 UIKit 0x000000010f30a7ff -[UIViewAnimationState sendDelegateAnimationDidStop:finished:] + 241
20 UIKit 0x000000010f30abae -[UIViewAnimationState animationDidStop:finished:] + 80
21 QuartzCore 0x000000010f12e3c8 _ZN2CA5Layer23run_animation_callbacksEPv + 308
22 libdispatch.dylib 0x000000011440b3eb _dispatch_client_callout + 8
23 libdispatch.dylib 0x00000001143f31ef _dispatch_main_queue_callback_4CF + 1738
24 CoreFoundation 0x0000000113d490f9 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
25 CoreFoundation 0x0000000113d0ab99 __CFRunLoopRun + 2073
26 CoreFoundation 0x0000000113d0a0f8 CFRunLoopRunSpecific + 488
27 GraphicsServices 0x0000000115780ad2 GSEventRunModal + 161
28 UIKit 0x000000010f27cf09 UIApplicationMain + 171
29 AppCreator 0x000000010d3251df main + 111
30 libdyld.dylib 0x000000011444092d start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
I tried the SDk in separated application and it works perfectly .this error happens when i add the sdk to my project .
can anyone please help me what can be causing this error
I found out that problem was in another Library i was using .
It had a function which override the
"preferredFontForTextStyle" in the "UIFont" class
that was causing the problem for me.
in case anyone facing that kind of unjustified crash , try to remove all the other classes one by one to check that the error is not caused by conflict with another line in a far class

How to return the same viewController multiple times in swift(iOS) in a single run of the program?

I am writing a program using SpriteKit and UIKit.
I have two view controller in my program, first for main page and second for GameViewController (which includes GameScene). I have added a back button to the GameViewController which goes to main page (MainPageViewController). Everything works fine so far.
In my first page, when I wanted to go back again to GameViewController, program crashes and the following error is given:
GitarTelleri[959:47801] 15:21:39.405 ERROR:
AVAudioEngineGraph.mm:1743: _Connect: required condition is false:
!destNodeMixerConns.empty() && !isDestNodeConnectedToIONode 2016-09-19
15:21:39.413 GitarTelleri[959:47801] * Terminating app due to
uncaught exception 'com.apple.coreaudio.avfaudio', reason: 'required
condition is false: !destNodeMixerConns.empty() &&
!isDestNodeConnectedToIONode'
* First throw call stack: ( 0 CoreFoundation 0x0000000104250d85 exceptionPreprocess + 165 1 libobjc.A.dylib
0x00000001061d2deb objc_exception_throw + 48 2 CoreFoundation
0x0000000104250bea +[NSException raise:format:arguments:] + 106 3
libAVFAudio.dylib 0x000000010915eff3
_Z19AVAE_RaiseExceptionP8NSStringz + 176 4 libAVFAudio.dylib 0x0000000109171bc3
_ZN18AVAudioEngineGraph8_ConnectEP19AVAudioNodeImplBaseS1_jjP13AVAudioFormat
+ 1281 5 libAVFAudio.dylib 0x0000000109174df0 _ZN18AVAudioEngineGraph7ConnectEP11AVAudioNodeS1_mmP13AVAudioFormat + 322 6 libAVFAudio.dylib 0x00000001091a7a71
_ZN17AVAudioEngineImpl7ConnectEP11AVAudioNodeS1_mmP13AVAudioFormat + 301 7 libAVFAudio.dylib 0x00000001091a7ad8
-[AVAudioEngine connect:to:format:] + 83 8 AudioKit 0x00000001037a611b
_TTSf4n_d___TZFC8AudioKit8AudioKits6outputGSqCS_6AKNode_ + 267 9 GitarTelleri 0x000000010362c234
TFC12GitarTelleri18GameViewController13viewDidAppearfSbT + 196 10 GitarTelleri 0x000000010362c341
TToFC12GitarTelleri18GameViewController13viewDidAppearfSbT + 49 11 UIKit 0x0000000104df7335
-[UIViewController _setViewAppearState:isAnimating:] + 830 12 UIKit 0x0000000104e30589 -[UINavigationController viewDidAppear:] + 207 13
UIKit 0x0000000104df7335
-[UIViewController _setViewAppearState:isAnimating:] + 830 14 UIKit 0x0000000104df7cb8 -[UIViewController _endAppearanceTransition:] + 262
15 UIKit 0x0000000104dc208a
-[UIPresentationController transitionDidFinish:] + 827 16 UIKit 0x0000000104f9f38f -[_UICurrentContextPresentationController
transitionDidFinish:] + 42 17 UIKit
0x0000000104dc57c1 __56-[UIPresentationController
runTransitionForCurrentState]_block_invoke_2 + 183 18 UIKit
0x00000001056844c8 -[_UIViewControllerTransitionContext
completeTransition:] + 101 19 UIKit
0x0000000104dbef77 -[UITransitionView notifyDidCompleteTransition:] +
252 20 UIKit 0x0000000104dbec88
-[UITransitionView _didCompleteTransition:] + 1344 21 UIKit 0x0000000104dc13f4 -[UITransitionView _transitionDidStop:finished:] +
104 22 UIKit 0x0000000104ce47ff
-[UIViewAnimationState sendDelegateAnimationDidStop:finished:] + 241 23 UIKit 0x0000000104ce4bae
-[UIViewAnimationState animationDidStop:finished:] + 80 24 QuartzCore 0x0000000107d7d3c8
_ZN2CA5Layer23run_animation_callbacksEPv + 308 25 libdispatch.dylib 0x0000000108c773eb _dispatch_client_callout + 8 26 libdispatch.dylib
0x0000000108c5f1ef _dispatch_main_queue_callback_4CF + 1738 27
CoreFoundation 0x00000001041aa0f9
__CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE + 9 28 CoreFoundation 0x000000010416bb99 __CFRunLoopRun
+ 2073 29 CoreFoundation 0x000000010416b0f8 CFRunLoopRunSpecific + 488 30 GraphicsServices
0x000000010a189ad2 GSEventRunModal + 161 31 UIKit
0x0000000104c56f09 UIApplicationMain + 171 32 GitarTelleri
0x0000000103630372 main + 114 33 libdyld.dylib
0x0000000108cab92d start + 1 34 ???
0x0000000000000001 0x0 + 1 ) libc++abi.dylib: terminating with
uncaught exception of type NSException (lldb)
Should I change something in AppDelegate.swift or should I clean something when BackButton is clicked?
check your back button have AudioKit.stop()

iOS: performSegueWithIdentifier weird behavior

This is totally weird behavior! I just have two view controllers, say, V1, V2. I'm trying to push V2 from V1 using performSegueWithIdentifier and it throws this error
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFNumber pointSize]: unrecognized selector sent to instance 0xb0000000000000e5'
I have assigned segue identifier. I have cross checked the name of the segue, it looks perfectly alright with no spaces etc.
I tried presenting V2 using presentViewController method with storyboard id and it's working good, but not when I push it.
I tested another empty view controller V3 with same segue identifier(of course, I removed the identifier for V2), and it's working. So the problem is, it's throwing the error only with V2.
EDIT
Complete call stack:
2016-07-27 11:18:24.018 Sample[13254:123408] -[__NSCFNumber pointSize]: unrecognized selector sent to instance 0xb0000000000000e5
2016-07-27 11:18:24.033 Sample[13254:123408] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFNumber pointSize]: unrecognized selector sent to instance 0xb0000000000000e5'
*** First throw call stack:
(
0 CoreFoundation 0x0000000106e5dd85 __exceptionPreprocess + 165
1 libobjc.A.dylib 0x00000001068d1deb objc_exception_throw + 48
2 CoreFoundation 0x0000000106e66d3d -[NSObject(NSObject) doesNotRecognizeSelector:] + 205
3 CoreFoundation 0x0000000106daccfa ___forwarding___ + 970
4 CoreFoundation 0x0000000106dac8a8 _CF_forwarding_prep_0 + 120
5 UIKit 0x0000000104f33023 -[UINavigationBar _defaultTitleFontFittingHeight:withScaleAdjustment:] + 201
6 UIKit 0x0000000104f332ae -[UINavigationBar _defaultTitleFontWithScaleAdjustment:] + 99
7 UIKit 0x0000000104f5e443 -[UINavigationItemView _defaultFont] + 125
8 UIKit 0x0000000104f5e315 -[UINavigationItemView initWithNavigationItem:] + 338
9 UIKit 0x0000000104f2cc89 -[UINavigationItem _defaultTitleView] + 125
10 UIKit 0x0000000104f2cd2b -[UINavigationItem _titleView] + 125
11 UIKit 0x0000000104f4e5d8 -[UINavigationBar _removeItemsFromSuperview:] + 124
12 UIKit 0x0000000104f36718 -[UINavigationBar _setItems:transition:reset:resetOwningRelationship:] + 986
13 UIKit 0x00000001050175f0 -[UINavigationController _setNavigationBarHidden:edge:duration:] + 258
14 UIKit 0x0000000105016f3f -[UINavigationController _setNavigationBarHidden:edgeIfNotNavigating:duration:] + 607
15 UIKit 0x000000010501587c -[UINavigationController setNavigationBarHidden:animated:] + 142
16 Sample 0x0000000102df6783 _TFC10Sample21TPLoginViewController17viewWillDisappearfSbT_ + 195
17 Sample 0x0000000102df67d1 _TToFC10Sample21TPLoginViewController17viewWillDisappearfSbT_ + 49
18 UIKit 0x0000000104fe33aa -[UIViewController _setViewAppearState:isAnimating:] + 947
19 UIKit 0x0000000104fe3ac2 -[UIViewController __viewWillDisappear:] + 93
20 UIKit 0x0000000105013735 -[UINavigationController _startCustomTransition:] + 1176
21 UIKit 0x0000000105023b9b -[UINavigationController _startDeferredTransitionIfNeeded:] + 712
22 UIKit 0x0000000105024d0b -[UINavigationController __viewWillLayoutSubviews] + 57
23 UIKit 0x00000001051d3503 -[UILayoutContainerView layoutSubviews] + 248
24 UIKit 0x0000000104efd980 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 703
25 QuartzCore 0x00000001049e0c00 -[CALayer layoutSublayers] + 146
26 QuartzCore 0x00000001049d508e _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE + 366
27 QuartzCore 0x00000001049d4f0c _ZN2CA5Layer28layout_and_display_if_neededEPNS_11TransactionE + 24
28 QuartzCore 0x00000001049c93c9 _ZN2CA7Context18commit_transactionEPNS_11TransactionE + 277
29 QuartzCore 0x00000001049f7086 _ZN2CA11Transaction6commitEv + 486
30 UIKit 0x0000000104e3d72e _UIApplicationHandleEventQueue + 7135
31 CoreFoundation 0x0000000106d83301 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
32 CoreFoundation 0x0000000106d7922c __CFRunLoopDoSources0 + 556
33 CoreFoundation 0x0000000106d786e3 __CFRunLoopRun + 867
34 CoreFoundation 0x0000000106d780f8 CFRunLoopRunSpecific + 488
35 GraphicsServices 0x000000010a9f4ad2 GSEventRunModal + 161
36 UIKit 0x0000000104e42f09 UIApplicationMain + 171
37 Sample 0x0000000102f037f2 main + 114
38 libdyld.dylib 0x00000001081e692d start + 1
39 ??? 0x0000000000000001 0x0 + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException

how to even start reading this iphone crash log to debug?

I have this crash happening in my app. iOS noob here, don't even know where to start debugging this. How to read this crash log? Where/which file/function is the problem starting?
2015-04-26 16:55:53.743 MyTestApp[10058:924348] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Can only call -[PFObject init] on subclasses conforming to PFSubclassing.'
*** First throw call stack:
(
0 CoreFoundation 0x00000001032c6c65 __exceptionPreprocess + 165
1 libobjc.A.dylib 0x0000000102f5fbb7 objc_exception_throw + 45
2 CoreFoundation 0x00000001032c6b9d +[NSException raise:format:] + 205
3 MyTestApp 0x00000001014d8823 -[PFObject(Private) init] + 144
4 MyTestApp 0x00000001014a91b0 _TTOFCSo8PFObjectcfMS_FT_S_ + 16
5 MyTestApp 0x00000001014a7c67 _TFCSo8PFObjectCfMS_FT_S_ + 71
6 MyTestApp 0x00000001014a1965 _TFC8MyTestApp22MessagesViewControllercfMS0_FT5coderCSo7NSCoder_S0_ + 213
7 MyTestApp 0x00000001014a1a1d _TToFC8MyTestApp22MessagesViewControllercfMS0_FT5coderCSo7NSCoder_S0_ + 45
8 UIKit 0x0000000103bc828b -[UIClassSwapper initWithCoder:] + 205
9 UIKit 0x0000000103d19ab6 UINibDecoderDecodeObjectForValue + 705
10 UIKit 0x0000000103d197ec -[UINibDecoder decodeObjectForKey:] + 276
11 UIKit 0x0000000103bc7e84 -[UIRuntimeConnection initWithCoder:] + 153
12 UIKit 0x0000000103d19ab6 UINibDecoderDecodeObjectForValue + 705
13 UIKit 0x0000000103d19c85 UINibDecoderDecodeObjectForValue + 1168
14 UIKit 0x0000000103d197ec -[UINibDecoder decodeObjectForKey:] + 276
15 UIKit 0x0000000103bc7327 -[UINib instantiateWithOwner:options:] + 990
16 UIKit 0x0000000103e29aba -[UIStoryboard instantiateViewControllerWithIdentifier:] + 181
17 MyTestApp 0x000000010148b406 _TFC8MyTestApp22OverviewViewController9tableViewfS0_FTCSo11UITableView23didSelectRowAtIndexPathCSo11NSIndexPath_T_ + 246
18 MyTestApp 0x000000010148bbff _TToFC8MyTestApp22OverviewViewController9tableViewfS0_FTCSo11UITableView23didSelectRowAtIndexPathCSo11NSIndexPath_T_ + 79
19 UIKit 0x00000001039e0dc9 -[UITableView _selectRowAtIndexPath:animated:scrollPosition:notifyDelegate:] + 1293
20 UIKit 0x00000001039e0f0a -[UITableView _userSelectRowAtPendingSelectionIndexPath:] + 219
21 UIKit 0x000000010391362c _applyBlockToCFArrayCopiedToStack + 314
22 UIKit 0x00000001039134a6 _afterCACommitHandler + 533
23 CoreFoundation 0x00000001031f9ca7 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23
24 CoreFoundation 0x00000001031f9c00 __CFRunLoopDoObservers + 368
25 CoreFoundation 0x00000001031efa33 __CFRunLoopRun + 1123
26 CoreFoundation 0x00000001031ef366 CFRunLoopRunSpecific + 470
27 GraphicsServices 0x0000000105032a3e GSEventRunModal + 161
28 UIKit 0x00000001038ef900 UIApplicationMain + 1282
29 MyTestApp 0x000000010149f137 main + 135
30 libdyld.dylib 0x0000000108ac6145 start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb)
The reason for the crash is on the first line:
reason: 'Can only call -[PFObject init] on subclasses conforming to
PFSubclassing.'
This means that your subclass is inheriting from PFObject but not conforming to the protocol PFSubclassing. Thus, init cannot be called on your subclass.
Ex.
#interface MyPFSubclass : PFObject
Should be replaced with:
#interface MyPFSubclass : PFObject <PFSubclassing>
For more information on interpreting the stacktrace I recommend this tutorial: My App Crashed, Now What? – Part 1

ibc++abi.dylib: terminating with uncaught exception of type NSException (lldb)

when i run my app, i received this error :
2014-11-10 06:14:05.581 Yoga[4032:110484] user is registered
2014-11-10 06:14:30.552 Yoga[4032:110484] * Terminating app due to uncaught exception 'NSGenericException', reason: 'Push segues can only be used when the source controller is managed by an instance of UINavigationController.'
* First throw call stack:
(
0 CoreFoundation 0x000000010c999f35 exceptionPreprocess + 165
1 libobjc.A.dylib 0x000000010c632bb7 objc_exception_throw + 45
2 UIKit 0x000000010b43e16a -[UIStoryboardPushSegue destinationContainmentContext] + 0
3 UIKit 0x000000010aedc8be -[UIApplication sendAction:to:from:forEvent:] + 75
4 UIKit 0x000000010afe3410 -[UIControl _sendActionsForEvents:withEvent:] + 467
5 UIKit 0x000000010afe27df -[UIControl touchesEnded:withEvent:] + 522
6 UIKit 0x000000010af22308 -[UIWindow _sendTouchesForEvent:] + 735
7 UIKit 0x000000010af22c33 -[UIWindow sendEvent:] + 683
8 UIKit 0x000000010aeef9b1 -[UIApplication sendEvent:] + 246
9 UIKit 0x000000010aefca7d _UIApplicationHandleEventFromQueueEvent + 17370
10 UIKit 0x000000010aed8103 _UIApplicationHandleEventQueue + 1961
11 CoreFoundation 0x000000010c8cf551 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION + 17
12 CoreFoundation 0x000000010c8c541d __CFRunLoopDoSources0 + 269
13 CoreFoundation 0x000000010c8c4a54 __CFRunLoopRun + 868
14 CoreFoundation 0x000000010c8c4486 CFRunLoopRunSpecific + 470
15 GraphicsServices 0x000000010d3329f0 GSEventRunModal + 161
16 UIKit 0x000000010aedb420 UIApplicationMain + 1282
17 Yoga 0x000000010a840b53 main + 115
18 libdyld.dylib 0x000000010f69b145 start + 1
19 ??? 0x0000000000000001 0x0 + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb)
somebody can help me pls
add Navigation Controller to your initial view
Select the initial view
Go To Editor--> Embed In --> Navigation Controller.

Resources