1.Info.plist添加如下配置:
<key>CFBundleIcons</key>
<dict>
<key>CFBundleAlternateIcons</key>
<dict>
<key>DemoIcon</key>
<dict>
<key>CFBundleIconFiles</key>
<array>
<string>DemoIcon-20</string>
<string>DemoIcon-29</string>
<string>DemoIcon-40</string>
<string>DemoIcon-60</string>
</array>
<key>UIPrerenderedIcon</key>
<false/>
</dict>
</dict>
</dict>
<key>CFBundleIcons~ipad</key>
<dict>
<key>CFBundleAlternateIcons</key>
<dict>
<key>DemoIcon</key>
<dict>
<key>CFBundleIconFiles</key>
<array>
<string>DemoIcon-29</string>
<string>DemoIcon-40</string>
<string>DemoIcon-60</string>