这是我的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!
而且它根本不起作用。
cd
命令进入AppIcon.appiconset
文件夹,并将file *
命令的结果粘贴到你的问题中?也许你的某些图标尺寸被误设置了(或者是正确尺寸但错误分配了“插槽”)。 - d.felber