Thread 1 :signal SIGABRT error?

Discussion in 'iOS Development' started by Ross, Apr 11, 2019.

  1. Ross

    Ross Newbie

    Hello,

    when I go to run a very simple program in Xcode I get the following error??

    Code:
    //  AppDelegate.swift
    //  Menu Bars
    //  Created by RR on 4/11/19.
    //  Copyright © 2019 RR. All rights reserved.
    
    import UIKit
    @UIApplicationMain
    class AppDelegate: UIResponder, UIApplicationDelegate {        |=|Thread 1 :signal SIGABRT.  //<<Error
        var window: UIWindow?
    ....
    

    Here is my code:

    Code:
    import UIKit
    
    class ViewController: UIViewController {
    
        @IBAction func cameraPressed(_ sender: Any) {
        
        }
      
        func processTimer(){
            print("a second has passed")
      
        }
      
        override func viewDidLoad() {
            super.viewDidLoad()
          
            var timer = Timer()    // Create timer object
          
          timer = Timer.scheduledTimer(timeInterval: 1, target: self, selector: Selector(("processTimer")), userInfo: nil, repeats: true)
        }
    }
    
    Does anyone know why I am getting this error and what can I do to fix it?

    thanks for any help!
    r
     

Share This Page