iOS 10/XCode 8的运行时问题 [英] Runtime issues with iOS 10/XCode 8

查看:66
本文介绍了iOS 10/XCode 8的运行时问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

自从我在iOS 10模拟器上构建并开始运行应用程序以来,我开始获取诸如:

Since I built and started running app on iOS 10 simulator, I started getting logs such as :

objc[6880]: Class PLBuildVersion is implemented in both /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/AssetsLibraryServices.framework/AssetsLibraryServices (0x120275910) and /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/PhotoLibraryServices.framework/PhotoLibraryServices (0x12009f210). One of the two will be used. Which one is undefined.

2016-09-14 17:18:55.812525 MyApp[6880:340725] bundleid: com.MyApps.MyApp, enable_level: 0, persist_level: 0, propagate_with_activity: 0

2016-09-14 17:18:55.813154 MyApp[6880:340725] subsystem: com.apple.siri, category: Intents, enable_level: 1, persist_level: 1, default_ttl: 0, info_ttl: 0, debug_ttl: 0, generate_symptoms: 0, enable_oversize: 0, privacy_setting: 0, enable_private_data: 0
2016-09-14 17:18:55.842900 MyApp[6880:340837] subsystem: com.apple.UIKit, category: HIDEventFiltered, enable_level: 0, persist_level: 0, default_ttl: 0, info_ttl: 0, debug_ttl: 0, generate_symptoms: 0, enable_oversize: 1, privacy_setting: 2, enable_private_data: 0
2016-09-14 17:18:55.843428 MyApp[6880:340837] subsystem: com.apple.UIKit, category: HIDEventIncoming, enable_level: 0, persist_level: 0, default_ttl: 0, info_ttl: 0, debug_ttl: 0, generate_symptoms: 0, enable_oversize: 1, privacy_setting: 2, enable_private_data: 0
2016-09-14 17:18:55.855848 MyApp[6880:340836] subsystem: com.apple.BaseBoard, category: MachPort, enable_level: 1, persist_level: 0, default_ttl: 0, info_ttl: 0, debug_ttl: 0, generate_symptoms: 0, enable_oversize: 0, privacy_setting: 0, enable_private_data: 0
2016-09-14 17:18:55.870530 MyApp[6880:340725] subsystem: com.apple.UIKit, category: StatusBar, enable_level: 0, persist_level: 0, default_ttl: 0, info_ttl: 0, debug_ttl: 0, generate_symptoms: 0, enable_oversize: 1, privacy_setting: 2, enable_private_data: 0

想知道如何解决它们吗?我从未在XCode 7上看到这些.

Wonder how I fix them ? I never saw these on XCode 7.

推荐答案

我遇到了同样的问题,但是您可以做一些事情,

I have the same issue, but there is something you can do to,

1)进入产品->方案->编辑方案
2)在左侧的运行部分"中,选择参数"选项卡,然后在环境变量"中放置它.

1) Go in Product -> Scheme -> Edit Scheme
2) Run Section on the left, select Argument Tab and in Environment Variable put this.

将OS_ACTIVITY_MODE设置为value:禁用.

OS_ACTIVITY_MODE to value : disable.

有关更多信息,请找到以下屏幕截图.

For more information please find the below screenshot.

这将消除控制台中的消息.

This will get rid of messages in the console.

但是我仍然为PLBuildVersion在两种情况下都实现而苦恼....

But I still struggle with the PLBuildVersion is implemented in both....

希望这对您有所帮助!

***编辑****
我发现问题是由Facebook SDK引起的.我从CocoaPods中删除了该框架,通过将SDK复制到我的项目文件夹中进行了手动安装,现在没有任何错误.

*** EDIT ****
I found that the issue was caused by Facebook SDK. I removed the framework from CocoaPods, installed it manually by copying the SDK in my project folder and I have no errors now.

这篇关于iOS 10/XCode 8的运行时问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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