Unity相机截图保存到相册中的错误问题
程序员文章站
2023-12-27 08:06:57
...
错误1:
This app has crashed because it attempted to access privacy-sensitive data without a usage description.The app's Info.plist must contain an NSPhotoLibraryUsageDescription key with a string value explaining to the user how the app uses this data
在xcode中可以看到如上所述 或者 点击保存时 闪退 有可能是有关访问你手机权限问题
你需要在xcode中重新编译 并在info.plist中添加Privacy - Photo Library Additions Usage Description
推荐阅读