运行 on iOS 7.1 模拟器在控制台输出中出现错误
Running on iOS 7.1 simulator brings errors in the console output
我在 Mac 上使用 Xamarin Studio 5.9.3 和 Mono 4.0.1、Xcode 6.3.2 和 Xamarin.iOS 8.10.1.64。当我尝试在 iOS 7.1 模拟器中 运行 我的应用程序时,我得到以下控制台输出:
objc[1102]: Class AXEmojiUtilities is implemented in both /Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 7.1.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/AccessibilityUtilities.framework/AccessibilityUtilities and /Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 7.1.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libAXSpeechManager.dylib. One of the two will be used. Which one is undefined.
2015-06-22 09:25:43.395 SomeApp[1102:70b] Cannot find executable for CFBundle 0x7869e5f0 </Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 7.1.simruntime/Contents/Resources/RuntimeRoot/System/Library/AccessibilityBundles/GameKitFramework.axbundle> (not loaded)
2015-06-22 09:25:43.434 SomeApp[1102:70b] Cannot find executable for CFBundle 0x786a4760 </Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 7.1.simruntime/Contents/Resources/RuntimeRoot/System/Library/AccessibilityBundles/StoreKitFramework.axbundle> (not loaded)
2015-06-22 09:25:43.435 SomeApp[1102:70b] Cannot find executable for CFBundle 0x78dbe9f0 </Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 7.1.simruntime/Contents/Resources/RuntimeRoot/System/Library/AccessibilityBundles/iAdFramework.axbundle> (not loaded)
2015-06-22 09:25:43.438 SomeApp[1102:70b] Cannot find executable for CFBundle 0x786aca20 </Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 7.1.simruntime/Contents/Resources/RuntimeRoot/System/Library/AccessibilityBundles/EventKitUIFramework.axbundle> (not loaded)
2015-06-22 09:25:43.439 SomeApp[1102:70b] Cannot find executable for CFBundle 0x78dc2270 </Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 7.1.simruntime/Contents/Resources/RuntimeRoot/System/Library/AccessibilityBundles/CertUIFramework.axbundle> (not loaded)
2015-06-22 09:25:43.441 SomeApp[1102:70b] Cannot find executable for CFBundle 0x78dc7620 </Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 7.1.simruntime/Contents/Resources/RuntimeRoot/System/Library/AccessibilityBundles/SocialFramework.axbundle> (not loaded)
2015-06-22 09:25:43.442 SomeApp[1102:70b] Cannot find executable for CFBundle 0x78dc8120 </Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 7.1.simruntime/Contents/Resources/RuntimeRoot/System/Library/AccessibilityBundles/PassKitFramework.axbundle> (not loaded)
2015-06-22 09:25:43.443 SomeApp[1102:70b] Cannot find executable for CFBundle 0x78dc8ab0 </Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 7.1.simruntime/Contents/Resources/RuntimeRoot/System/Library/AccessibilityBundles/TwitterFramework.axbundle> (not loaded)
2015-06-22 09:25:43.448 SomeApp[1102:70b] Cannot find executable for CFBundle 0x78dca6c0 </Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 7.1.simruntime/Contents/Resources/RuntimeRoot/System/Library/AccessibilityBundles/MusicLibrary.axbundle> (not loaded)
2015-06-22 09:25:43.458 SomeApp[1102:70b] Cannot find executable for CFBundle 0x78c134c0 </Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 7.1.simruntime/Contents/Resources/RuntimeRoot/System/Library/AccessibilityBundles/GameCenterUIFramework.axbundle> (not loaded)
2015-06-22 09:25:43.459 SomeApp[1102:70b] Cannot find executable for CFBundle 0x78c12a50 </Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 7.1.simruntime/Contents/Resources/RuntimeRoot/System/Library/AccessibilityBundles/RemoteUIFramework.axbundle> (not loaded)
2015-06-22 09:25:43.491 SomeApp[1102:70b] Cannot find executable for CFBundle 0x78f64520 </Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 7.1.simruntime/Contents/Resources/RuntimeRoot/System/Library/AccessibilityBundles/GeoServices.axbundle> (not loaded)
2015-06-22 09:25:43.500 SomeApp[1102:70b] Cannot find executable for CFBundle 0x78f7c600 </Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 7.1.simruntime/Contents/Resources/RuntimeRoot/System/Library/AccessibilityBundles/StoreKitUI.axbundle> (not loaded)
我做错了什么?模拟器 运行 没问题,但那些错误消息很烦人。
我找到了解决方案 here。
iOS Simulator -> Reset Content and Settings
现在我没有错误消息了。您应该知道所有已安装的应用程序在此操作后都消失了!
我在 Mac 上使用 Xamarin Studio 5.9.3 和 Mono 4.0.1、Xcode 6.3.2 和 Xamarin.iOS 8.10.1.64。当我尝试在 iOS 7.1 模拟器中 运行 我的应用程序时,我得到以下控制台输出:
objc[1102]: Class AXEmojiUtilities is implemented in both /Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 7.1.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/AccessibilityUtilities.framework/AccessibilityUtilities and /Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 7.1.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libAXSpeechManager.dylib. One of the two will be used. Which one is undefined.
2015-06-22 09:25:43.395 SomeApp[1102:70b] Cannot find executable for CFBundle 0x7869e5f0 </Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 7.1.simruntime/Contents/Resources/RuntimeRoot/System/Library/AccessibilityBundles/GameKitFramework.axbundle> (not loaded)
2015-06-22 09:25:43.434 SomeApp[1102:70b] Cannot find executable for CFBundle 0x786a4760 </Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 7.1.simruntime/Contents/Resources/RuntimeRoot/System/Library/AccessibilityBundles/StoreKitFramework.axbundle> (not loaded)
2015-06-22 09:25:43.435 SomeApp[1102:70b] Cannot find executable for CFBundle 0x78dbe9f0 </Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 7.1.simruntime/Contents/Resources/RuntimeRoot/System/Library/AccessibilityBundles/iAdFramework.axbundle> (not loaded)
2015-06-22 09:25:43.438 SomeApp[1102:70b] Cannot find executable for CFBundle 0x786aca20 </Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 7.1.simruntime/Contents/Resources/RuntimeRoot/System/Library/AccessibilityBundles/EventKitUIFramework.axbundle> (not loaded)
2015-06-22 09:25:43.439 SomeApp[1102:70b] Cannot find executable for CFBundle 0x78dc2270 </Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 7.1.simruntime/Contents/Resources/RuntimeRoot/System/Library/AccessibilityBundles/CertUIFramework.axbundle> (not loaded)
2015-06-22 09:25:43.441 SomeApp[1102:70b] Cannot find executable for CFBundle 0x78dc7620 </Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 7.1.simruntime/Contents/Resources/RuntimeRoot/System/Library/AccessibilityBundles/SocialFramework.axbundle> (not loaded)
2015-06-22 09:25:43.442 SomeApp[1102:70b] Cannot find executable for CFBundle 0x78dc8120 </Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 7.1.simruntime/Contents/Resources/RuntimeRoot/System/Library/AccessibilityBundles/PassKitFramework.axbundle> (not loaded)
2015-06-22 09:25:43.443 SomeApp[1102:70b] Cannot find executable for CFBundle 0x78dc8ab0 </Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 7.1.simruntime/Contents/Resources/RuntimeRoot/System/Library/AccessibilityBundles/TwitterFramework.axbundle> (not loaded)
2015-06-22 09:25:43.448 SomeApp[1102:70b] Cannot find executable for CFBundle 0x78dca6c0 </Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 7.1.simruntime/Contents/Resources/RuntimeRoot/System/Library/AccessibilityBundles/MusicLibrary.axbundle> (not loaded)
2015-06-22 09:25:43.458 SomeApp[1102:70b] Cannot find executable for CFBundle 0x78c134c0 </Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 7.1.simruntime/Contents/Resources/RuntimeRoot/System/Library/AccessibilityBundles/GameCenterUIFramework.axbundle> (not loaded)
2015-06-22 09:25:43.459 SomeApp[1102:70b] Cannot find executable for CFBundle 0x78c12a50 </Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 7.1.simruntime/Contents/Resources/RuntimeRoot/System/Library/AccessibilityBundles/RemoteUIFramework.axbundle> (not loaded)
2015-06-22 09:25:43.491 SomeApp[1102:70b] Cannot find executable for CFBundle 0x78f64520 </Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 7.1.simruntime/Contents/Resources/RuntimeRoot/System/Library/AccessibilityBundles/GeoServices.axbundle> (not loaded)
2015-06-22 09:25:43.500 SomeApp[1102:70b] Cannot find executable for CFBundle 0x78f7c600 </Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 7.1.simruntime/Contents/Resources/RuntimeRoot/System/Library/AccessibilityBundles/StoreKitUI.axbundle> (not loaded)
我做错了什么?模拟器 运行 没问题,但那些错误消息很烦人。
我找到了解决方案 here。
iOS Simulator -> Reset Content and Settings
现在我没有错误消息了。您应该知道所有已安装的应用程序在此操作后都消失了!