为什么我要加载Lazy加载NSBundle MobileCoreServices.framework? [英] Why I am getting Lazy loading NSBundle MobileCoreServices.framework?

查看:491
本文介绍了为什么我要加载Lazy加载NSBundle MobileCoreServices.framework?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我从主viewController重定向到另一个viewController
我得到了这个

When I redirect from main viewController to another viewController I'm getting this

错误:


延迟加载NSBundle MobileCoreServices.framework,

Lazy loading NSBundle MobileCoreServices.framework,

已加载MobileCoreServices.framework,

Loaded MobileCoreServices.framework,

systemgroup.com.apple.configurationprofiles的系统组容器
路径是
/ Users / develop / Library / Developer / CoreSimulator / Devices / 083C0102-C85F-463A-96F4 -CA1B9AC7919D / data / Containers / Shared / SystemGroup /
systemgroup.com.apple.configurationprofiles

System group container for systemgroup.com.apple.configurationprofiles path is /Users/develop/Library/Developer/CoreSimulator/Devices/083C0102-C85F-463A-96F4-CA1B9AC7919D/data/Containers/Shared/SystemGroup/ systemgroup.com.apple.configurationprofiles

我的代码是.. 。

Appdelegate.m

if (![[NSUserDefaults standardUserDefaults] boolForKey:@"HasLaunchedOnce"]) {
    [[NSUserDefaults standardUserDefaults] setBool:YES forKey:@"HasLaunchedOnce"];
    [[NSUserDefaults standardUserDefaults] synchronize];
    NSLog(@"Launched first time");
} else {
    NSLog(@"Already launched");
    [self getData];
}

viewDidLoad

if ([[NSUserDefaults standardUserDefaults] boolForKey:@"HasLaunchedOnce"]) {

    dispatch_async(dispatch_get_main_queue(), ^{
        LoginPageViewController *lpvc = [self.storyboard instantiateViewControllerWithIdentifier:@"LPVC"];
        [self.navigationController pushViewController:lpvc animated:NO];
    });
} else {
    // My code...
}


推荐答案

你得到的消息来自Xcode 9.
Xcode 8中的等效消息是:

The message you have is from Xcode 9. The equivalent message in Xcode 8 would be:


[MC] systemgroup.com.apple.configurationprofiles路径的系统组容器是/ Users / develop / Library / Developer / CoreSimulator / Devices / 083C0102-C85F-463A-96F4-CA1B9AC7919D / data / Containers / Shared /SystemGroup/systemgroup.com.apple.configurationprofiles

[MC] System group container for systemgroup.com.apple.configurationprofiles path is /Users/develop/Library/Developer/CoreSimulator/Devices/083C0102-C85F-463A-96F4-CA1B9AC7919D/data/Containers/Shared/SystemGroup/systemgroup.com.apple.configurationprofiles

注意 [MC]
这是一个系统消息。可以安全地忽略此消息。

Note the [MC]: It is a system message. This message can safely be ignored.

要隐藏此类消息,请按照 https://stackoverflow.com/a/42140442/1033581

To hide this kind of messages, follow the solution from https://stackoverflow.com/a/42140442/1033581:


  1. 在产品>方案>编辑方案下...>运行,将OS_ACTIVITY_MODE环境变量设置为$ {DEBUG_ACTIVITY_MODE},如下所示:


  1. 转到项目构建设置,然后单击+以添加名为DEBUG_ACTIVITY_MODE的用户定义设置。展开此设置并单击Debug旁边的+以添加特定于平台的值。选择下拉列表并将其更改为Any iOS Simulator SDK。然后将其值设置为default,使其如下所示:

这篇关于为什么我要加载Lazy加载NSBundle MobileCoreServices.framework?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆