Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Could not successfully update network info during initialization

Tags:

I get the above mentioned issue all the time when I first launch the app in the day. When I first launch the app, I make server calls to get some data and then play animation video. Server calls is in a separate thread than main UI Thread. Is it something to do with Network Reachability or the animation video ? I think the first part is the major issue but cannot recreate this all the time.

Has anyone experienced the issue ?

Below is the code when I first launch the app.

override func viewDidLoad() {
        super.viewDidLoad();


        self.navigationController?.navigationBarHidden = true;
        self.view.backgroundColor = UIColor.whiteColor();
           dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0)) { () -> Void in
            Items.setup(); //AFNetworking call
        };

        animationViewController.delegate = self;
        animationViewController.view.autoresizesSubviews = true;
        animationViewController.view.autoresizingMask = [.FlexibleLeftMargin, .FlexibleRightMargin];
        animationViewController.view.center = CGPointMake(self.view.bounds.size.width / 2, self.view.bounds.size.height / 2);

        self.view.addSubview(animationViewController.view);    

    }
like image 645
lifemoveson Avatar asked Dec 18 '15 15:12

lifemoveson


2 Answers

I have resolved this issue in Xcode 9.1 with below steps.

1.Select Simulator

2.Select Debug from top menu items.

3.Select Location from Debug menu list.

4.Select Apple location.

like image 182
Srithar Rajendran Avatar answered Sep 29 '22 16:09

Srithar Rajendran


Check if you have an exception breakpoint to capture "All Exceptions" in breakpoint navigator. This fixed it for me.

like image 36
1337holiday Avatar answered Sep 29 '22 15:09

1337holiday