Pergunta

Desde a atualização do Xcode para a v5 e a conversão de imagens de inicialização e de ícones de aplicativos em catálogos de recursos de imagem, não consigo ver o ícone do meu aplicativo no Play Banca no iOS 6.1 e no iOS 7.Em vez disso, vejo o ícone normal do aplicativo em seu lugar.Ainda estou compilando no iOS SDK 6.1 devido a mudanças óbvias de estilo no iOS 7 que ainda não consegui testar em profundidade.

Dito isso, aqui está o que experimentei no ícone do meu Play Banca, icon-newsstand.png:

  1. Convertendo icon-newsstand.png em um catálogo de ativos localizado em ./Images.xcassets/icon-newsstand.imageset/icon-newsstand.png.
  2. Manter icon-newsstand.png na minha pasta Recursos como parte do projeto.

Nenhuma dessas soluções funciona.Aqui está meu info.plist para referência também.Eu editei os nomes dos aplicativos, apenas para sua informação.

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>CFBundleDevelopmentRegion</key>
    <string>English</string>
    <key>CFBundleDisplayName</key>
    <string>---- ----</string>
    <key>CFBundleExecutable</key>
    <string>${EXECUTABLE_NAME}</string> 
    <key>CFBundleIcons</key>
    <dict>
        <key>UINewsstandIcon</key>
        <dict>
            <key>CFBundleIconFiles</key>
            <array>
                <string>icon-newsstand.png</string>
            </array>
            <key>UINewsstandBindingEdge</key>
            <string>UINewsstandBindingEdgeLeft</string>
            <key>UINewsstandBindingType</key>
            <string>UINewsstandBindingTypeMagazine</string>
        </dict>
    </dict>
    <key>UIBackgroundModes</key>
    <array>
        <string>newsstand-content</string>
    </array>
    <key>UINewsstandApp</key>
    <true/>
    <key>CFBundleIdentifier</key>
    <string>com.----.----</string>
    <key>CFBundleInfoDictionaryVersion</key>
    <string>6.1</string>
    <key>CFBundleName</key>
    <string>---- ----</string>
    <key>CFBundlePackageType</key>
    <string>APPL</string>
    <key>CFBundleSignature</key>
    <string>????</string>
    <key>CFBundleVersion</key>
    <string>2.0.1.13830</string> <!-- The Version of the app. -->
    <key>LSRequiresIPhoneOS</key>
    <true/>
    <key>UIPrerenderedIcon</key>
    <true/>
    <key>UIStatusBarHidden</key>
    <true/>
    <key>UISupportedInterfaceOrientations</key>
    <array>
        <string>UIInterfaceOrientationPortrait</string>
        <string>UIInterfaceOrientationPortraitUpsideDown</string>
        <string>UIInterfaceOrientationLandscapeLeft</string>
        <string>UIInterfaceOrientationLandscapeRight</string>
    </array>
    <key>UISupportedInterfaceOrientations~ipad</key>
    <array>
        <string>UIInterfaceOrientationPortrait</string>
        <string>UIInterfaceOrientationPortraitUpsideDown</string>
        <string>UIInterfaceOrientationLandscapeLeft</string>
        <string>UIInterfaceOrientationLandscapeRight</string>
    </array>
    <key>CFBundleURLTypes</key>
    <array>
        <dict>
            <key>CFBundleTypeRole</key>
            <string>Editor</string>
            <key>CFBundleURLName</key>
            <string>FB Connect</string>
            <key>CFBundleURLSchemes</key>
            <array>
                <string>fb150871295037449------</string><!-- The app id must be appended to the end of this string. Example: <string>fb150871295037449connections</string>  -->
            </array>
        </dict>
    </array>
</dict>
</plist>

Alguém já se deparou com isso depois de atualizar o Xcode e converter para catálogos de ativos de imagem?E alguém tem alguma idéia de por onde começar as alterações no meu projeto?Até agora, em minhas pesquisas, os detalhes on-line e no StackOverflow foram escassos em termos de problemas do Newsstand e do Xcode 5.

Eu apreciaria muito qualquer ajuda.Obrigado!

Foi útil?

Solução

Descobri que o problema só acontecia com iPads.Desde essa descoberta, percebi que faltava uma seção em meu info.plist que se parecia com isto:

    <key>CFBundleIcons~ipad</key>
    <dict>
        <key>UINewsstandIcon</key>
        <dict>
            <key>CFBundleIconFiles</key>
            <array>
                <string>icon-newsstand.png</string>
            </array>
            <key>UINewsstandBindingEdge</key>
            <string>UINewsstandBindingEdgeLeft</string>
            <key>UINewsstandBindingType</key>
            <string>UINewsstandBindingTypeMagazine</string>
        </dict>
    </dict>

Mistério resolvido!

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top