gpt4 book ai didi

iOS - 具有不同支持版本的 iOS 的 Phonegap 构建项目的应用程序图标支持错误

转载 作者:塔克拉玛干 更新时间:2023-11-02 20:33:43 26 4
gpt4 key购买 nike

我在发布 .ipa 文件时遇到问题我通过 Phonegap Build 生成,但是我从应用程序加载器收到以下消息:

“缺少必需的 ico 文件... bundle 不包含适用于 Iphone 的应用程序图标...适用于 ios 版本的格式为 120 x 120 像素> = 7””

我哪里错了?

按照我上面的config.xml

<icon src="ic_launcher.png" />
<icon height="72" src="ic_launcher.png" width="72" />
<icon height="48" src="ic_launcher.png" width="48" />
<icon height="36" src="ic_launcher.png" width="36" />
<content src="index.html" />
<preference name="permissions" value="none" />
<preference name="orientation" value="portrait" />
<preference name="target-device" value="universal" />
<preference name="fullscreen" value="false" />
<preference name="webviewbounce" value="true" />
<preference name="prerendered-icon" value="true" />
<preference name="stay-in-webview" value="false" />
<preference name="ios-statusbarstyle" value="black-opaque" />
<preference name="StatusBarOverlaysWebView" value="false"/>
<preference name="StatusBarBackgroundColor" value="#000000"/>
<preference name="StatusBarStyle" value="blackopaque" />
<preference name="detect-data-types" value="true" />
<preference name="exit-on-suspend" value="false" />
<preference name="disable-cursor" value="false" />
<preference name="android-minSdkVersion" value="14" />
<preference name="android-installLocation" value="auto" />
<plugin name="org.apache.cordova.battery-status" />
<plugin name="cordova-plugin-camera" source="npm" />
<plugin name="org.apache.cordova.media-capture" />
<plugin name="org.apache.cordova.console" />
<plugin name="org.apache.cordova.contacts" />
<plugin name="org.apache.cordova.device" />
<plugin name="org.apache.cordova.device-motion" />
<plugin name="org.apache.cordova.device-orientation" />
<plugin name="org.apache.cordova.dialogs" />
<plugin name="org.apache.cordova.file" />
<plugin name="org.apache.cordova.file-transfer" />
<plugin name="org.apache.cordova.geolocation" />
<plugin name="org.apache.cordova.globalization" />
<plugin name="org.apache.cordova.inappbrowser" />
<plugin name="org.apache.cordova.media" />
<plugin name="org.apache.cordova.network-information" />
<plugin name="org.apache.cordova.vibration" />
<plugin name="cordova-plugin-whitelist" version="1" />
<plugin name="cordova.plugins.diagnostic" spec="~3.1.5" />
<platform name="ios">
<!-- iPhone 6 / 6+ -->
<icon src="icon-60@3x.png" platform="ios" width="180" height="180" />
<!-- iPhone / iPod Touch -->
<icon src="icon-60.png" platform="ios" width="60" height="60" />
<icon src="icon-60@2x.png" platform="ios" width="120" height="120" />
<icon src="Icon-60x60@1x.png" platform="ios" width="120" height="120" />
<icon src="Icon-60x60@2x.png" platform="ios" width="120" height="120" />
<icon src="Icon-60x60@3x.png" platform="ios" width="120" height="120" />
<!-- iPad -->
<icon src="icon-76.png" platform="ios" width="76" height="76" />
<icon src="icon-76@2x.png" platform="ios" width="152" height="152" />
<icon src="icon-83.5@2x.png" platform="ios" width="167" height="167" />
<!-- Settings Icon -->
<icon src="icon-small.png" platform="ios" width="29" height="29" />
<icon src="icon-small@2x.png" platform="ios" width="58" height="58" />
<icon src="icon-small@3x.png" platform="ios" width="87" height="87" />
<!-- Spotlight Icon -->
<icon src="icon-40.png" platform="ios" width="40" height="40" />
<icon src="icon-40@2x.png" platform="ios" width="80" height="80" />
<icon src="icon-40@3x.png" platform="ios" width="120" height="120" />
</platform>
<access origin="*" />
<access origin="*://*.googleapis.com/*" subdomains="true" />
<access origin="*.google.com" />
<access origin="*.googleapis.com" />
<access origin="*.gstatic.com" />
<access origin="*.googleusercontent.com" />
<access origin="google.com" subdomains="true" />
<access origin="googleapis.com" subdomains="true" />
<access origin="gstatic.com" subdomains="true" />
<access origin="googleusercontent.com" subdomains="true" />
<access origin="http://127.0.0.1*" />
<access origin="https://example.com" />
<access origin="https://example.com" subdomains="true" />
<access origin=".*" />
<allow-intent href="http://*/*" />
<allow-intent href="https://*/*" />
<allow-intent href="tel:*" />
<allow-intent href="sms:*" />
<allow-intent href="mailto:*" />
<allow-intent href="geo:*" />
<platform name="android">
<allow-intent href="market:*" />
</platform>
<platform name="ios">
<allow-intent href="itms:*" />
<allow-intent href="itms-apps:*" />
</platform>

最佳答案

您可能没有为所有操作系统版本添加图标文件(在您的项目中支持)。

Here是所有图标大小的详细信息,你应该添加。

所需图标大小的列表(考虑对不同设备的支持,如 iPad、iPod、iPhone、Watch、iTune、spotlight 或 CarPlay)

Icon-Small.png - 29x29 
Icon-Small@2x.png - 58x58
Icon-Small@3x.png - 87x87
Icon-40.png - 40x40
Icon-40@2x.png - 80x80
Icon-40@3x.png - 120x120
Icon-60@2x.png - 120x120
Icon-60@3x.png - 180x180
Icon-76.png - 76x76
Icon-76@2x.png - 152x152
Icon-120.png - 120x120

关于iOS - 具有不同支持版本的 iOS 的 Phonegap 构建项目的应用程序图标支持错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42880278/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com