网址的XCUITest失败:" gplus://" - 错误:

时间:2017-02-28 13:36:36

标签: ios swift xcode xcode-ui-testing

嗨,当我在xcuitest上运行我的测试时,我的测试将停在同一点,并通过此错误。

2017-02-28 11:15:16.501 VoucherCodes[60897:11082496] -canOpenURL: failed for URL: "gplus://" - error: "This app is not allowed to query for scheme gplus"

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

之前有人进过这个吗?解决这个问题的最佳方法是什么?

1 个答案:

答案 0 :(得分:1)

Info.plist

并添加 LSApplicationQueriesSchemes ,如下所示

<key>LSApplicationQueriesSchemes</key>
<array>
    <string>gplus</string>
</array>