gpt4 book ai didi

ios - 奇怪的错误/SIGABRT 线程 1

转载 作者:行者123 更新时间:2023-11-30 12:58:26 25 4
gpt4 key购买 nike

StoryBoard

在我复制文件夹后,我的代码中出现了一些奇怪的错误,我删除了重复项,但仍然存在一些错误..

Thread 1 SIGABRT error when running, build completes but doesn't load. error is on the line with class 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

最佳答案

  1. 当您从 Xcode 中删除文件时,您应该选择“移至废纸篓”。您可以再次将其添加到 Xcode,然后使用“移至废纸篓”将其删除。

  2. 转到“断点导航器”,单击底部的“+”按钮,选择“异常断点...”。当崩溃再次发生时,Xcode 应在您的异常代码处停止。

关于ios - 奇怪的错误/SIGABRT 线程 1,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40144164/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com