2017-02-28 65 views
0

嗨,當我在xcuitest上運行我的測試時,我的測試將停止在同一點並通過此錯誤。XCUITest URL失敗:「gplus://」 - error:

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.

有沒有人來到這個?解決這個問題的最好方法是什麼?

+0

你加入'LSApplicationQueriesSchemes'在你的.plist –

+0

我沒有 - 我應該看起來像在我的plist? –

回答

1

的Info.plist並添加LSApplicationQueriesSchemes如下圖所示

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