【问题标题】:iOS 10 simulator not workingiOS 10 模拟器不工作
【发布时间】:2017-05-21 03:01:20
【问题描述】:

我的 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)

知道为什么会这样吗?有其他人经历过吗?

【问题讨论】:

    标签: swift xcode ios-simulator xcode-ui-testing


    【解决方案1】:

    您显示的消息似乎表明了两个不同的问题。首先是PLBuildVersion 有两个定义。二是“此应用不允许查询...”问题。

    第二个问题的可能原因是您需要在 Info.plist 中声明您的应用使用的方案。使用键 LSApplicationQueriesSchemes 并列出您要查找的方案。否则,您对-canOpenURL: 的调用将会失败,正如您所见。

    Class PLBuildVersion is implemented in both frameworks 很好地描述了第一个问题,从我在那里读到的内容来看,这似乎没什么好担心的。

    【讨论】:

      猜你喜欢
      • 2017-02-07
      • 2015-12-15
      • 2016-12-12
      • 2020-03-11
      • 1970-01-01
      • 2021-01-15
      • 2019-08-07
      • 2014-04-03
      • 1970-01-01
      相关资源
      最近更新 更多