Thread 1 :signal SIGABRT error?

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

  1. Ross

    Ross Newbie


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

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

    Here is my code:

    import UIKit
    class ViewController: UIViewController {
        @IBAction func cameraPressed(_ sender: Any) {
        func processTimer(){
            print("a second has passed")
        override func 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!

Share This Page