Ios NSOSStatusErrorDomain代码=-54“;操作无法’;不能完成。”;设置备用应用程序图标时
在我的iOS项目中,我尝试为我的iOS应用程序设置备用图标,并且图像文件(图标_1、图标_2、图标_3)在我的项目包中,而不是在Assets.xcsets中。像这样的信息列表:Ios NSOSStatusErrorDomain代码=-54“;操作无法’;不能完成。”;设置备用应用程序图标时,ios,objective-c,ios14,alternate,appicon,Ios,Objective C,Ios14,Alternate,Appicon,在我的iOS项目中,我尝试为我的iOS应用程序设置备用图标,并且图像文件(图标_1、图标_2、图标_3)在我的项目包中,而不是在Assets.xcsets中。像这样的信息列表: <key>CFBundleIcons</key> <dict> <key>CFBundleAlternateIcons</key> <dict> <key>icon_1</key>
<key>CFBundleIcons</key>
<dict>
<key>CFBundleAlternateIcons</key>
<dict>
<key>icon_1</key>
<dict>
<key>CFBundleIconFiles</key>
<array>
<string>icon_1</string>
</array>
<key>UIPrerenderedIcon</key>
<false/>
</dict>
<key>icon_2</key>
<dict>
<key>CFBundleIconFiles</key>
<array>
<string>icon_2</string>
</array>
<key>UIPrerenderedIcon</key>
<false/>
</dict>
<key>icon_3</key>
<dict>
<key>CFBundleIconFiles</key>
<array>
<string>icon_3</string>
</array>
<key>UIPrerenderedIcon</key>
<false/>
</dict>
</dict>
<key>CFBundlePrimaryIcon</key>
<dict>
<key>CFBundleIconFiles</key>
<array>
<string>AppIcon</string>
</array>
</dict>
</dict>
但是,图标不会更改,并且会出现错误
Error Domain=NSOSStatusErrorDomain Code=-54 "The operation couldn’t be completed."
如何解决此问题
谢谢:)
Error Domain=NSOSStatusErrorDomain Code=-54 "The operation couldn’t be completed."