2013-11-15 6 views
3

Xcode를 v5로 업그레이드하고 실행 및 앱 아이콘 이미지를 이미지 애셋 카탈로그로 변환 한 후 iOS의 뉴스 스탠드에서 내 앱의 뉴스 스탠드 아이콘을 볼 수 없었습니다. 6.1 및 iOS 7. 그 대신에 일반 앱 아이콘이 표시됩니다. iOS 7의 명백한 스타일 변경으로 인해 아직 깊이있게 테스트하지 못했기 때문에 iOS SDK 6.1에 대해 컴파일 중입니다. 말했다 Xcode 5에 뉴스 스탠드 아이콘이 표시되지 않음

, 여기에 내 뉴스 가판대 아이콘, 아이콘 - newsstand.png에 시도한 것입니다 : 변환

  1. 아이콘 - newsstand.png ./Images.xcassets/에 위치한 자산 카탈로그로 icon-newsstand.imageset/icon-newsstand.png.
  2. 내 리소스 폴더에 icon-newsstand.png를 프로젝트의 일부로 유지합니다.

이러한 해결책 중 어느 것도 작동하지 않습니다. 여기에 내 info.plist도 참조 용입니다. 저는 FYI에서 앱 이름을 수정했습니다.

<?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> 

사람이 아직 엑스 코드 업그레이드 및 이미지 자산 카탈로그로 변환 한 후이로 실행 했습니까? 누구나 내 프로젝트의 변경 사항부터 시작할 수있는 아이디어가 있습니까? 지금까지 내 검색에서 온라인 및 StackOverflow에 대한 세부 정보가 뉴스 스탠드 및 Xcode 5 문제와 관련하여 드물었습니다.

모든 도움을 주시면 감사하겠습니다. 고맙습니다!

답변

7

이 문제는 iPads에서만 발생한다는 것을 알았습니다. 발견 한 이래로 내 info.plist에서 다음과 같은 섹션이 누락되었음을 깨달았습니다.

<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> 

미스테리가 해결되었습니다!

+0

동일한 문제가 발생하지만 이미 해당 섹션이 있습니다. 무엇보다 위의 질문을 보면 내가 게시 한 원본 코드의 정확한 섹션을 볼 수 있습니다. 이 코드가 메인 앱 info.plist가 아닌 iPads에서 작동하도록 배치해야하는 다른 곳이 있습니까? – Ash