簡體   English   中英

iOS 10 模擬器不工作

[英]iOS 10 simulator not working

我的 iPhone 應用程序有一組 UI 自動化測試用例。 這些測試在 iOS 9 和 8 模擬器上運行良好,但是當我更改為最新的模擬器 (10.2) 時,我的終端出現此錯誤

objc[8642]: Class PLBuildVersion is implemented in both /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/AssetsLibraryServices.framework/AssetsLibraryServices (0x11f55b998) and /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/PhotoLibraryServices.framework/PhotoLibraryServices (0x11f37d880). One of the two will be used. Which one is undefined. 2017-01-06 10:50:51.918 myAPP[8642:947316] -canOpenURL: failed for URL: "gplus://" - error: "This app is not allowed to query for scheme gplus" 2017-01-06 10:50:52.142 MyAPP[8642:947316] [Crashlytics] Version 3.7.3 (114)

知道為什么會這樣嗎? 有沒有其他人經歷過這種情況?

您顯示的消息似乎表明了兩個不同的問題。 首先是您有兩個PLBuildVersion定義。 第二個是“此應用程序不允許查詢...”問題。

第二個問題的可能原因是您需要在 Info.plist 中聲明您的應用程序使用的方案。 使用密鑰LSApplicationQueriesSchemes並列出您要查找的方案。 -canOpenURL: ,您對-canOpenURL:的調用將失敗,如您所見。

第一個問題在Class PLBuildVersion 中有很好的描述, 在兩個框架中都實現了,從我讀到的內容來看,它似乎沒有什么可擔心的。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM