? ? ? ? 很坑人的一件事情鹦马,先聲明,方法在網(wǎng)絡(luò)上百度的物赶,就是為了方便朋友人解決問題
加載:webview也會報類似的錯誤,通過以下方法能去掉打印的錯誤信息和簡單解決留晚,希望對朋友們有幫組酵紫。
錯誤信息:
? ? ? ? Class VCWeakObjectHolder is implemented in both /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/GameKitServices.framework/Frameworks/ViceroyTrace.framework/ViceroyTrace (0x112679988) and /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/GameKitServices.framework/Frameworks/AVConference.framework/AVConference (0x1125b0c38). One of the two will be used. Which one is undefined.
解決方法:
在 info.plist 中告嘲,添加兩個鍵值對:
針對photo:
key : Privacy - Photo Library Usage Description? value: $(PRODUCT_NAME) photo use //(解釋對相冊的使用)
針對camera:
key:Privacy - Camera Usage Description? ? ? value:$(PRODUCT_NAME) camera use? //(解釋對相機的使用)