2016-03-24 23 views
0

Xcode'ımı 7.3 olarak güncelledim. Güncellemeden önce kodumu herhangi bir hata veya çökme ile çalıştırabildim. Güncellemeden sonra, iPhone'da aşağıdaki kodu çalıştırdığımda onaylama hatası alıyorum (Simülatörde hata yok).Xcode güncellemesinden sonra onaylama hatası 7.3'e yükseldi

let storyboard = UIStoryboard(name: storyboard, bundle: nil) 
self.window?.rootViewController = storyboard.instantiateInitialViewController() as UIViewController! 

Hata

2016-03-24 16:15:25.891 Zilingo[434:92251] *** Assertion failure in -[UIStoryboard instantiateViewControllerWithIdentifier:], /BuildRoot/Library/Caches/com.apple.xbs/Sources/UIKit/UIKit-3512.60.7/UIStoryboard.m:171 
error: Execution was interrupted, reason: breakpoint 5.1. 
The process has been returned to the state before expression evaluation. 

mıyım güncelleme bazı adım eksik?

+0

Hata iletisini gönderir misiniz? – Jelly

+1

Film şeridi adının doğru olduğundan emin olun. Hikaye tahtası değişkeninin kullandığınız dizge ile aynı ada sahip olması bana göre biraz garip. – Jelly

+0

Farklı iki değişken yaptım. Hala sorunlar hala var. Bir ilginç gözlem, sadece iPhone'da çalıştırdığımda ve simülatör – 2ank3th

cevap

1
Try to this format:- 

func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool { 

    // get your storyboard 
    let storyboard = UIStoryboard(name: "Main", bundle: nil) 

    // instantiate your desired ViewController 
    let rootController = storyboard.instantiateViewControllerWithIdentifier("MyViewController") as! UIViewController 

    // Because self.window is an optional you should check it's value first and assign your rootViewController 
    if let window = self.window { 
     window.rootViewController = rootController 
    } 

    return true 
} 
+0

Bu işe yaramadı! – 2ank3th

+0

Hala aynı hata? –

İlgili konular