Xcode8 Class PLBuildVersion is implemented in both /Applications/Xcode.app/Contents/Developer/Platfo

来源:互联网 发布:淘宝直播要钱吗 编辑:程序博客网 时间:2024/06/05 14:41

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

解决方法:

Input the following into your Info.plist file.

在 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

0 1
原创粉丝点击