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