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

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

问题描述

当我从主视图控制器重定向到另一个视图控制器时我得到这个

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. 在 Product > Scheme > Edit Scheme... > Run 下,将 OS_ACTIVITY_MODE 环境变量设置为 ${DEBUG_ACTIVITY_MODE} 如下所示:

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

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

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