8
respostas

Ionic resources

Olá. Quando dou o comando $ ionic resources ele não da nenhum erro e cria as pastas Android e iOS dentro da minha pasta resources. O problema é que as pastas estão totalmente vazias e o meu .xml também não teve alteração. Alguém tem alguma ideia?

8 respostas

Roda ionic resources --verbose e ve se ele te dá alguma informacao util

Apareceu isso: "Error parsing config file: Error: Unexpected close tag Line: 24 Column: 15 Char: >"

Dá uma checada se seu config.xml ta ok então. Parece que tá com erro de sintaxe nele...

Arrumei la. Agora aparece isso:

Ionic icon and splash screen resources generator
splash android drawable-port-ldpi-screen.png (240x320) from cache
splash android drawable-port-mdpi-screen.png (320x480) from cache
splash android drawable-port-hdpi-screen.png (480x800) from cache
splash android drawable-port-xhdpi-screen.png (720x1280) from cache
splash android drawable-port-xxhdpi-screen.png (960x1600) from cache
splash android drawable-port-xxxhdpi-screen.png (1280x1920) from cache
splash ios Default-568h@2x~iphone.png (640x1136) from cache
splash ios Default-667h.png (750x1334) from cache
splash ios Default-736h.png (1242x2208) from cache
splash ios Default-Portrait@2x~ipad.png (1536x2048) from cache
splash ios Default-Portrait~ipad.png (768x1024) from cache
splash ios Default@2x~iphone.png (640x960) from cache
splash ios Default~iphone.png (320x480) from cache
icon android drawable-ldpi-icon.png (36x36) from cache
icon android drawable-mdpi-icon.png (48x48) from cache
icon android drawable-hdpi-icon.png (72x72) from cache
icon android drawable-xhdpi-icon.png (96x96) from cache
icon android drawable-xxhdpi-icon.png (144x144) from cache
icon android drawable-xxxhdpi-icon.png (192x192) from cache
icon ios icon.png (57x57) from cache
icon ios icon@2x.png (114x114) from cache
icon ios icon-40.png (40x40) from cache
icon ios icon-40@2x.png (80x80) from cache
icon ios icon-40@3x.png (120x120) from cache
icon ios icon-50.png (50x50) from cache
icon ios icon-50@2x.png (100x100) from cache
icon ios icon-60.png (60x60) from cache
icon ios icon-60@2x.png (120x120) from cache
icon ios icon-60@3x.png (180x180) from cache
icon ios icon-72.png (72x72) from cache
icon ios icon-72@2x.png (144x144) from cache
icon ios icon-76.png (76x76) from cache
icon ios icon-76@2x.png (152x152) from cache
icon ios icon-83.5@2x.png (167x167) from cache
icon ios icon-small.png (29x29) from cache
icon ios icon-small@2x.png (58x58) from cache
icon ios icon-small@3x.png (87x87) from cache
 uploading splash.png...
splash.png (4096x4096) upload complete
 generating splash ios Default-Portrait@~ipadpro.png (2048x2732)..."

Continua criando as pastas mas sem nada dentro. O XML também não sofre alteração.

Estranho, ainda mais que ele ta dizendo ai que pegou os arquivos from cache (indicando que ja havia gerado anteriormente).

Quer compartilhar seu projeto comigo pra eu ver se consigo rodar aqui? Bota no github ou manda um zip ou algo assim

Segue: https://www.dropbox.com/s/i5rlhh09pv1ubpc/garconapp.zip?dl=0

Desde já, agradeço pela ajuda!

Cara, peguei exatamente seu projeto, nao mexi nada e rodei aqui. E funcionou de boa.

$ ionic resources
Ionic icon and splash screen resources generator
 uploading icon.png...
 uploading splash.png...
icon.png (1024x1024) upload complete
splash.png (4096x4096) upload complete
 generating icon ios icon-small@3x.png (87x87)...
 generating icon ios icon-small@2x.png (58x58)...
 generating icon ios icon-small.png (29x29)...
icon ios icon-small@3x.png (87x87) generated
 generating icon ios icon-76@2x.png (152x152)...
icon ios icon-small@2x.png (58x58) generated
 generating icon ios icon-76.png (76x76)...
icon ios icon-small.png (29x29) generated
 generating icon ios icon-72@2x.png (144x144)...
icon ios icon-76@2x.png (152x152) generated
 generating icon ios icon-72.png (72x72)...
icon ios icon-76.png (76x76) generated
 generating icon ios icon-60@3x.png (180x180)...
icon ios icon-72@2x.png (144x144) generated
 generating icon ios icon-60@2x.png (120x120)...
icon ios icon-72.png (72x72) generated
 generating icon ios icon-60.png (60x60)...
icon ios icon-60@3x.png (180x180) generated
 generating icon ios icon-50@2x.png (100x100)...
icon ios icon-60@2x.png (120x120) generated
 generating icon ios icon-50.png (50x50)...
icon ios icon-60.png (60x60) generated
 generating icon ios icon-40@2x.png (80x80)...
icon ios icon-50@2x.png (100x100) generated
 generating icon ios icon-40.png (40x40)...
icon ios icon-50.png (50x50) generated
 generating icon ios icon@2x.png (114x114)...
icon ios icon-40@2x.png (80x80) generated
 generating icon ios icon.png (57x57)...
icon ios icon-40.png (40x40) generated
 generating icon android drawable-xxxhdpi-icon.png (192x192)...
icon ios icon@2x.png (114x114) generated
icon android drawable-xxhdpi-icon.png (144x144) generated
 generating icon android drawable-xhdpi-icon.png (96x96)...
icon ios icon.png (57x57) generated
icon android drawable-hdpi-icon.png (72x72) generated
 generating icon android drawable-mdpi-icon.png (48x48)...
icon android drawable-xhdpi-icon.png (96x96) generated
 generating icon android drawable-ldpi-icon.png (36x36)...
icon android drawable-mdpi-icon.png (48x48) generated
 generating splash ios Default~iphone.png (320x480)...
icon android drawable-xxxhdpi-icon.png (192x192) generated
 generating splash ios Default@2x~iphone.png (640x960)...
icon android drawable-ldpi-icon.png (36x36) generated
 generating splash ios Default-Portrait~ipad.png (768x1024)...
splash ios Default@2x~iphone.png (640x960) generated
 generating splash ios Default-Portrait@2x~ipad.png (1536x2048)...
splash ios Default~iphone.png (320x480) generated
 generating splash ios Default-736h.png (1242x2208)...
splash ios Default-Portrait~ipad.png (768x1024) generated
 generating splash ios Default-667h.png (750x1334)...
splash ios Default-Portrait@2x~ipad.png (1536x2048) generated
 generating splash ios Default-568h@2x~iphone.png (640x1136)...
splash ios Default-667h.png (750x1334) generated
 generating splash android drawable-port-xxxhdpi-screen.png (1280x1920)...
splash ios Default-736h.png (1242x2208) generated
 generating splash android drawable-port-xxhdpi-screen.png (960x1600)...
splash ios Default-568h@2x~iphone.png (640x1136) generated
 generating splash android drawable-port-xhdpi-screen.png (720x1280)...
splash android drawable-port-xxxhdpi-screen.png (1280x1920) generated
 generating splash android drawable-port-hdpi-screen.png (480x800)...
splash android drawable-port-xhdpi-screen.png (720x1280) generated
splash android drawable-port-mdpi-screen.png (320x480) generated
 generating splash android drawable-port-ldpi-screen.png (240x320)...
splash android drawable-port-xxhdpi-screen.png (960x1600) generated
splash android drawable-port-hdpi-screen.png (480x800) generated
splash android drawable-port-ldpi-screen.png (240x320) generated

E ele cuspiu o config.xml sem problemas tbm.

$ ionic -v
1.7.14

$ ionic -v 1.7.15 Bom, não sei então. Vou tentar novamente em outros projetos. Grande abraço