Partage
  • Partager sur Facebook
  • Partager sur Twitter

demande d'aide sur SWIFT

cours sur developpement app ios

Sujet résolu
    20 janvier 2020 à 0:04:48

    bonjour,

    m'étant décider de reprendre la programmation, j'ai repris le cours " développez votre première app ios.

    J'ai suivie scrupuleusement les indications du prof " mais malgré cela j'ai du résoudre pas mal d'erreur dans mon code par moi même :lol:"

    le fait est que mon application plante sur le simulateur... le BUILD s’effectue bien, il ne me sort pas d'erreur et l'app se lance mais, quand j'entre un chiffre dans mon textField elle plante complétement.

    il me sort une erreur " Thread 1: signal SIGABRT "

    je pensait que cela était du à des contraintes mal effectuer... j'ai donc supprimer certaines et laisser les principale ( horizontal ) mais rien n'y fait. je n'arrive pas a comprendre d"ou pourrait venir mon plantage.  

    je vous joint le rapport de la console ( si cela vous avance ) et si vous pouviez me donner quelques pistes de réflexions que je puisse avancer dans ma compréhension ça serait parfait :)

    merci

    2020-01-20 00:00:41.603509+0100 myFirstApp[12938:1152804] -[myFirstApp.Exercice texteModifie:]: unrecognized selector sent to instance 0x7f94af7034a0
    2020-01-20 00:00:41.619157+0100 myFirstApp[12938:1152804] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[myFirstApp.Exercice texteModifie:]: unrecognized selector sent to instance 0x7f94af7034a0'
    *** First throw call stack:
    (
    	0   CoreFoundation                      0x00007fff23c7127e __exceptionPreprocess + 350
    	1   libobjc.A.dylib                     0x00007fff513fbb20 objc_exception_throw + 48
    	2   CoreFoundation                      0x00007fff23c91fd4 -[NSObject(NSObject) doesNotRecognizeSelector:] + 132
    	3   UIKitCore                           0x00007fff480c0f17 -[UIResponder doesNotRecognizeSelector:] + 302
    	4   CoreFoundation                      0x00007fff23c75c4c ___forwarding___ + 1436
    	5   CoreFoundation                      0x00007fff23c77f78 _CF_forwarding_prep_0 + 120
    	6   UIKitCore                           0x00007fff48093fff -[UIApplication sendAction:to:from:forEvent:] + 83
    	7   UIKitCore                           0x00007fff47a6c00e -[UIControl sendAction:to:forEvent:] + 223
    	8   UIKitCore                           0x00007fff47a6c358 -[UIControl _sendActionsForEvents:withEvent:] + 398
    	9   UIKitCore                           0x00007fff4839655f -[UITextField fieldEditorDidChange:] + 202
    	10  UIKitCore                           0x00007fff4837b53a -[UIFieldEditor textInputDidChange:] + 61
    	11  UIKitCore                           0x00007fff483a6d45 -[UITextInputController _sendDelegateChangeNotificationsForText:selection:] + 104
    	12  UIKitCore                           0x00007fff483a9628 -[UITextInputController _insertText:fromKeyboard:] + 765
    	13  UIKitCore                           0x00007fff483aa07f -[UITextInputController insertText:] + 336
    	14  UIKitCore                           0x00007fff4837ec97 -[UIFieldEditor insertFilteredText:] + 838
    	15  UIKitCore                           0x00007fff4839c5e3 -[UITextField insertFilteredText:] + 93
    	16  UIKitCore                           0x00007fff47ea906b -[UIKeyboardImpl insertText:] + 147
    	17  UIKitCore                           0x00007fff47ea3863 -[UIKeyboardImpl _performKeyboardOutput:shouldCheckDelegate:] + 1059
    	18  UIKitCore                           0x00007fff47ea24bd __55-[UIKeyboardImpl handleKeyboardInput:executionContext:]_block_invoke_2 + 372
    	19  UIKitCore                           0x00007fff47ed1ab1 -[UIKeyboardTaskEntry execute:] + 147
    	20  UIKitCore                           0x00007fff47ed05c7 -[UIKeyboardTaskQueue continueExecutionOnMainThread] + 310
    	21  Foundation                          0x00007fff25781c30 __NSThreadPerformPerform + 259
    	22  CoreFoundation                      0x00007fff23bd4471 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
    	23  CoreFoundation                      0x00007fff23bd439c __CFRunLoopDoSource0 + 76
    	24  CoreFoundation                      0x00007fff23bd3b74 __CFRunLoopDoSources0 + 180
    	25  CoreFoundation                      0x00007fff23bce87f __CFRunLoopRun + 1263
    	26  CoreFoundation                      0x00007fff23bce066 CFRunLoopRunSpecific + 438
    	27  GraphicsServices                    0x00007fff384c0bb0 GSEventRunModal + 65
    	28  UIKitCore                           0x00007fff48092d4d UIApplicationMain + 1621
    	29  myFirstApp                          0x000000010191e45b main + 75
    	30  libdyld.dylib                       0x00007fff5227ec25 start + 1
    	31  ???                                 0x0000000000000001 0x0 + 1
    )
    libc++abi.dylib: terminating with uncaught exception of type NSException
    



    • Partager sur Facebook
    • Partager sur Twitter
    Savoirovaure

    demande d'aide sur SWIFT

    × Après avoir cliqué sur "Répondre" vous serez invité à vous connecter pour que votre message soit publié.
    × Attention, ce sujet est très ancien. Le déterrer n'est pas forcément approprié. Nous te conseillons de créer un nouveau sujet pour poser ta question.
    • Editeur
    • Markdown