失蹤構建所需的圖標文件使用的Xcode 9和應用程序加載器:在Xcode 9
但你可以看到有所有需要的圖標:
是什麼案子?
這是我podfile:
use_frameworks! source 'https://github.com/CocoaPods/Specs.git' def pods pod 'GoogleMaps' pod 'PickerView' pod 'SWNavigationController' pod 'Branch' pod 'JTAppleCalendar', :git => 'https://github.com/patchthecode/JTAppleCalendar.git', :branch => 'master' pod 'SVProgressHUD' end def universal_pods pod 'AFNetworking' pod 'Crashlytics' pod 'Fabric' pod 'MagicalRecord' end target 'FieldService' do pods universal_pods end target 'FieldServiceTests' do pods universal_pods end target 'FieldServiceTodayTimer' do universal_pods end target 'FieldServiceTodayCurrent' do universal_pods end post_install do |installer| copy_pods_resources_path = "Pods/Target Support Files/Pods-FieldService/Pods-FieldService-resources.sh" string_to_replace = '--compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"' assets_compile_with_app_icon_arguments = '--compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" --app-icon "${ASSETCATALOG_COMPILER_APPICON_NAME}" --output-partial-info-plist "${BUILD_DIR}/assetcatalog_generated_info.plist"' text = File.read(copy_pods_resources_path) new_contents = text.gsub(string_to_replace, assets_compile_with_app_icon_arguments) File.open(copy_pods_resources_path, "w") {|file| file.puts new_contents } end inhibit_all_warnings!
,它不工作在所有;(
編輯:
Contents.json: ASCII text Icon-60.png: PNG image data, 60 x 60, 8-bit/color RGBA, non-interlaced [email protected]: PNG image data, 120 x 120, 8-bit/color RGBA, non-interlaced [email protected]: PNG image data, 180 x 180, 8-bit/color RGBA, non-interlaced Icon-76.png: PNG image data, 76 x 76, 8-bit/color RGBA, non-interlaced [email protected]: PNG image data, 152 x 152, 8-bit/color RGBA, non-interlaced Icon-Small.png: PNG image data, 29 x 29, 8-bit/color RGBA, non-interlaced [email protected]: PNG image data, 58 x 58, 8-bit/color RGBA, non-interlaced [email protected]: PNG image data, 58 x 58, 8-bit/color RGBA, non-interlaced [email protected]: PNG image data, 87 x 87, 8-bit/color RGBA, non-interlaced Icon-Spotlight-40.png: PNG image data, 40 x 40, 8-bit/color RGBA, non-interlaced [email protected]: PNG image data, 80 x 80, 8-bit/color RGBA, non-interlaced [email protected]: PNG image data, 80 x 80, 8-bit/color RGBA, non-interlaced [email protected]: PNG image data, 120 x 120, 8-bit/color RGBA, non-interlaced Icon-Spotlight-41.png: PNG image data, 40 x 40, 8-bit/color RGBA, non-interlaced Icon-Spotlight-42.png: PNG image data, 40 x 40, 8-bit/color RGBA, non-interlaced Icon-Spotlight-43.png: PNG image data, 20 x 20, 8-bit/color RGBA, non-interlaced [email protected]: PNG image data, 167 x 167, 8-bit/color RGBA, non-interlaced fieldservice.png: PNG image data, 1024 x 1024, 8-bit/color RGBA, non-interlaced
你能'cd'到'AppIcon.appiconset',文件夾和文件''結果粘貼到你的問題?也許某些圖標偶然出現了錯誤的尺寸(或正確的尺寸和錯誤分配的「插槽」)。 –
完全在黑暗中拍攝:在「AppIcon.appiconset」中顯示「Icon -...」似乎有點奇怪。文件名通常以appiconset名稱開頭,例如:「AppIcon.appiconset」 - >「[email protected]」 –
@MertBuran它有關係嗎?這是否真的解決了這個問題? –