将Xcode更新到版本6.1(6A1052d)后,应用程序在iPhone 5s(iOS8.1)上继续崩溃。但是,一切都在XCode上完美运行。手机永远不会越狱
Dyld Error Message:
Symbol not found: __TFE10FoundationCSo8NSStringCfMS0_FT13stringLiteralVSs12StaticString_S0_
Referenced from: /private/var/mobile/Containers/Bundle/Application/5BBECE8A-1A62-44A7-90A2-24B9D295F471/Wikasa.app/Wikasa
Expected in: /private/var/mobile/Containers/Bundle/Application/5BBECE8A-1A62-44A7-90A2-24B9D295F471/Wikasa.app/Frameworks/libswiftFoundation.dylib
Dyld Version: 353.5
以下部分发生错误(AppDelegate.swift文件)
import UIKit
import Foundation
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate, UIAlertViewDelegate {
var window: UIWindow?
var firebaseURL: NSString! = "https://our-url.firebaseio.com" // Breakpoint: EXC_BREAKPOINT (code=EXC_ARM_BREAKPOINT, subcode=0xe7ffdefe)
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: NSDictionary?) -> Bool {
self.window!.makeKeyAndVisible()
return true
}
断点位于" var firebaseURL"线。我尝试删除它,它打破了分配给变量的每个字符串文字。我尝试使变量可选和解包,它不起作用,以及尝试String和NSString。
以下是崩溃日志的更详细版本
Incident Identifier: 3434A3AD-F265-4488-8E4C-D89F7C85ABA0
CrashReporter Key: 833ec60342fb35c4d7bd633966af6b495301776b
Hardware Model: iPhone5,2
Process: Wikasa [1147]
Path: /private/var/mobile/Containers/Bundle/Application/5BBECE8A-1A62-44A7-90A2-24B9D295F471/Wikasa.app/Wikasa
Identifier: com.wikasa.Wikasa
Version: (1.0)
Code Type: ARM (Native)
Parent Process: launchd [1]
Date/Time: 2014-10-24 14:28:35.931 +0700
Launch Time: 2014-10-24 14:23:22.137 +0700
OS Version: iOS 8.1 (12B411)
Report Version: 105
Exception Type: EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000001, 0x00000000e7ffdefe
Triggered by Thread: 0
Dyld Error Message:
Symbol not found: __TFE10FoundationCSo8NSStringCfMS0_FT13stringLiteralVSs12StaticString_S0_
Referenced from: /private/var/mobile/Containers/Bundle/Application/5BBECE8A-1A62-44A7-90A2-24B9D295F471/Wikasa.app/Wikasa
Expected in: /private/var/mobile/Containers/Bundle/Application/5BBECE8A-1A62-44A7-90A2-24B9D295F471/Wikasa.app/Frameworks/libswiftFoundation.dylib
Dyld Version: 353.5
谢谢!