2017-05-16 20 views
6

我的啓動屏幕= 2208 x 2208和應用程序圖標192 X 192.我正在使用ionic1但我仍正在運行的命令,ionic cordova resource命令生成的應用程序圖標和啓動畫面錯誤「:」源圖像2208x2208對於[email protected]~ipadpro.png來說太小,至少需要2732x2048源文件「

在Android中它工作正常但是當我做了iOS版,它拋出我這個錯誤:。

Error: encountered bad status code (400) for https://res.ionic.io/api/v1/transform body: {"Error":"source image 2208x2208 too small for [email protected]~ipadpro.png, requires at least 2732x2048 source file"}

我不我不知道它是什麼問題,我只將閃屏設爲正確尺寸,但我不知道它爲什麼不適用於iOS。

我可以更新我的離子版本來完成我的應用程序的重新工作。

更新

<platform name="ios"> 
     <allow-intent href="itms:*" /> 
     <allow-intent href="itms-apps:*" /> 
     <preference name="orientation" value="portrait" /> 
     <icon height="57" src="resources/ios/icon/icon.png" width="57" /> 
     <icon height="114" src="resources/ios/icon/[email protected]" width="114" /> 
     <icon height="40" src="resources/ios/icon/icon-40.png" width="40" /> 
     <icon height="80" src="resources/ios/icon/[email protected]" width="80" /> 
     <icon height="120" src="resources/ios/icon/[email protected]" width="120" /> 
     <icon height="50" src="resources/ios/icon/icon-50.png" width="50" /> 
     <icon height="100" src="resources/ios/icon/[email protected]" width="100" /> 
     <icon height="60" src="resources/ios/icon/icon-60.png" width="60" /> 
     <icon height="120" src="resources/ios/icon/[email protected]" width="120" /> 
     <icon height="180" src="resources/ios/icon/[email protected]" width="180" /> 
     <icon height="72" src="resources/ios/icon/icon-72.png" width="72" /> 
     <icon height="144" src="resources/ios/icon/[email protected]" width="144" /> 
     <icon height="76" src="resources/ios/icon/icon-76.png" width="76" /> 
     <icon height="152" src="resources/ios/icon/[email protected]" width="152" /> 
     <icon height="167" src="resources/ios/icon/[email protected]" width="167" /> 
     <icon height="29" src="resources/ios/icon/icon-small.png" width="29" /> 
     <icon height="58" src="resources/ios/icon/[email protected]" width="58" /> 
     <icon height="87" src="resources/ios/icon/[email protected]" width="87" /> 
     <splash height="1136" src="resources/ios/splash/[email protected]~iphone.png" width="640" /> 
     <splash height="1334" src="resources/ios/splash/Default-667h.png" width="750" /> 
     <splash height="2208" src="resources/ios/splash/Default-736h.png" width="1242" /> 
     <!-- <splash height="1242" src="resources/ios/splash/Default-Landscape-736h.png" width="2208" /> 
     <splash height="1536" src="resources/ios/splash/[email protected]~ipad.png" width="2048" /> 
     <splash height="2048" src="resources/ios/splash/[email protected]~ipadpro.png" width="2732" /> --> 
     <!-- <splash height="768" src="resources/ios/splash/Default-Landscape~ipad.png" width="1024" /> --> 
     <splash height="2048" src="resources/ios/splash/[email protected]~ipad.png" width="1536" /> 
     <splash height="2732" src="resources/ios/splash/[email protected]~ipadpro.png" width="2048" /> 
     <splash height="1024" src="resources/ios/splash/Default-Portrait~ipad.png" width="768" /> 
     <splash height="960" src="resources/ios/splash/[email protected]~iphone.png" width="640" /> 
     <splash height="480" src="resources/ios/splash/Default~iphone.png" width="320" /> 
    </platform> 
+0

你在你的應用程序提供橫向模式? –

+0

@nivesh shastri如何禁用該景觀模式...我不想現在...只有potrait我需要 –

+0

檢查我的答案。 –

回答

0

試試這個,

檢查config.xml文件並刪除景觀圖像的所有條目在此文件中再次生成項目。

,就把這行config.xml中

<preference name="orientation" value="portrait" /> 
+1

我可以禁用橫向模式。所以,如果用戶也旋轉手機,它不應該旋轉... ?? ...我會檢查這個答案 –

+0

是的,你可以禁用風景模式看到更新的答案。 –

+0

檢查更新後的答案,爲這兩個平臺啓用肖像模式。 –

14

的發生是由於錯誤尺寸的閃屏資源此錯誤。你必須在尺寸2208×2208個,但基於docs資源文件夾中的閃屏圖像應該是2732 X 2732

+0

我有同樣的問題,爲splash.png創建一個2732 x 2732大小的圖像並重新運行該命令。 – jacko

+0

希望你能接受這個答案否? – Sampath

+0

這應該是被接受的答案,錯誤是誤導性的,這就解決了問題 – sarbuLopex

相關問題