XCUITest failed for URL: "gplus://" - error:

XCUITest failed for URL: "gplus://" - error:

嗨,当我在 运行 时,我在 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.

以前有人接触过这个吗?解决此问题的最佳方法是什么?

在您的 Info.plist 上添加 LSApplicationQueriesSchemes,如下所示

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