2016-10-20 17 views
0

StoryBoard奇妙なエラー/ SIGABRTスレッド1

奇妙なエラーのカップルが私のコードで登場し、私は重複を削除したが、私はいくつかのの誤差を持っている残り..

スレッド1実行中のSIGABRTエラー。ビルドは完了したがロードされません。 エラーは、他のエラーが画像内にあるクラスAppDelegate

import UIKit 

@UIApplicationMain 
class AppDelegate: UIResponder, UIApplicationDelegate { 

var window: UIWindow? 


func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { 
    // Override point for customization after application launch. 
    return true 
} 

func applicationWillResignActive(_ application: UIApplication) { 
    // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. 
    // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game. 
} 

func applicationDidEnterBackground(_ application: UIApplication) { 
    // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. 
    // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 
} 

func applicationWillEnterForeground(_ application: UIApplication) { 
    // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background. 
} 

func applicationDidBecomeActive(_ application: UIApplication) { 
    // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. 
} 

func applicationWillTerminate(_ application: UIApplication) { 
    // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 
} 

と線上にあります。

ありがとうございました。 Build Failed 1 error

error after adding exception breakpoint

Console

+0

おそらくオリジナルは何とか参照されます。それらを削除して戻してみてください。 – Alexander

答えて

0
  1. あなたはXcodeのからファイルを削除すると、あなたは。あなたがちょうど再びXcodeのにそれを追加し、それが使用削除することができます選択し、「ゴミ箱に移動」する必要があり「移動ゴミ箱に移動します。

  2. 「ブレークポイントナビゲータ」の「+」ボタンをクリックし、「例外ブレークポイント...」を選択します。クラッシュが再び発生した場合、Xcodeは例外コードで停止する必要があります。

+0

私は、AppDelegateのクラス宣言で同じ場所に緑のブレークポイント行を表示しました。私は投稿に写真を追加しました – xteetsx

+0

コードで見つけることができるブレークポイントがありません – xteetsx

+0

Xcodeコンソールウィンドウを確認して、「Unknown class ....」と記録します。まず、Xcodeに "ProficiencyPart"クラスがあるかどうかを確認する必要があります。 "ProficiencyPart"クラスがない場合は、ストーリーボードをチェックして、どのViewControllerが "ProficiencyPart"であるかを確認し、ViewControllerのカスタムクラスを変更してdefaltにする必要があります。 –

0

未参照アウトレットは、右あなたの開始のViewControllerをクリックして、フェーズを構築するためにアウトレット

0

移動の前に何の感嘆符がないことを確認してください、あなたのViewControllerにあり - ソースをコンパイル>、およびかどうかを確認このアプリケーションには2つの "ViewController.swift"ファイルがあります。はいの場合は、不要なものを削除します。

希望すると、これが役立ちます。