gpt4 book ai didi

ios - 为什么我会延迟加载 NSBundle MobileCoreServices.framework?

转载 作者:IT王子 更新时间:2023-10-29 08:19:14 26 4
gpt4 key购买 nike

当我从主 viewController 重定向到另一个 viewController我明白了

错误:

Lazy loading NSBundle MobileCoreServices.framework,

Loaded MobileCoreServices.framework,

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 中的等效消息是:

[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]:这是一条系统消息。可以安全地忽略此消息。

要隐藏此类消息,请按照 https://stackoverflow.com/a/42140442/1033581 中的解决方案进行操作:

  1. 在 Product > Scheme > Edit Scheme... > Run 下,将 OS_ACTIVITY_MODE 环境变量设置为 ${DEBUG_ACTIVITY_MODE},如下所示:

OS_ACTIVITY_MODE environment variable to ${DEBUG_ACTIVITY_MODE}

  1. 转到您的项目build设置,然后点击 + 添加名为 DEBUG_ACTIVITY_MODE 的用户定义设置。展开此设置并单击调试旁边的 + 以添加特定于平台的值。选择下拉菜单并将其更改为“Any iOS Simulator SDK”。然后将其值设置为“默认”,如下所示:

User-Defined setting DEBUG_ACTIVITY_MODE

关于ios - 为什么我会延迟加载 NSBundle MobileCoreServices.framework?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46439892/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com