├── .gitignore ├── LICENSE ├── QiAppIconGenerator.xcodeproj ├── project.pbxproj ├── project.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ └── IDEWorkspaceChecks.plist └── xcshareddata │ └── xcschemes │ └── QiAppIconGenerator.xcscheme ├── QiAppIconGenerator ├── AppDelegate.h ├── AppDelegate.m ├── Assets.xcassets │ ├── AppIcon.appiconset │ │ ├── AppIcon-Mac-128.png │ │ ├── AppIcon-Mac-128@2x.png │ │ ├── AppIcon-Mac-16.png │ │ ├── AppIcon-Mac-16@2x.png │ │ ├── AppIcon-Mac-256.png │ │ ├── AppIcon-Mac-256@2x.png │ │ ├── AppIcon-Mac-32.png │ │ ├── AppIcon-Mac-32@2x.png │ │ ├── AppIcon-Mac-512.png │ │ ├── AppIcon-Mac-512@2x.png │ │ └── Contents.json │ ├── Contents.json │ └── placeholder.imageset │ │ ├── Contents.json │ │ └── placeholder.png ├── Base.lproj │ └── Main.storyboard ├── Info.plist ├── QiAppIconGenerator.entitlements ├── QiConfiguration.plist ├── ViewController.h ├── ViewController.m └── main.m ├── README.md └── Source └── QiAppIconGenerator_01.gif /.gitignore: -------------------------------------------------------------------------------- 1 | # Xcode 2 | # 3 | # gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore 4 | 5 | ## Build generated 6 | build/ 7 | DerivedData/ 8 | 9 | ## Various settings 10 | *.pbxuser 11 | !default.pbxuser 12 | *.mode1v3 13 | !default.mode1v3 14 | *.mode2v3 15 | !default.mode2v3 16 | *.perspectivev3 17 | !default.perspectivev3 18 | xcuserdata/ 19 | 20 | ## Other 21 | *.moved-aside 22 | *.xccheckout 23 | *.xcscmblueprint 24 | 25 | ## Obj-C/Swift specific 26 | *.hmap 27 | *.ipa 28 | *.dSYM.zip 29 | *.dSYM 30 | 31 | # CocoaPods 32 | # 33 | # We recommend against adding the Pods directory to your .gitignore. However 34 | # you should judge for yourself, the pros and cons are mentioned at: 35 | # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control 36 | # 37 | # Pods/ 38 | 39 | # Carthage 40 | # 41 | # Add this line if you want to avoid checking in source code from Carthage dependencies. 42 | # Carthage/Checkouts 43 | 44 | Carthage/Build 45 | 46 | # fastlane 47 | # 48 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the 49 | # screenshots whenever they are needed. 50 | # For more information about the recommended setup visit: 51 | # https://docs.fastlane.tools/best-practices/source-control/#source-control 52 | 53 | fastlane/report.xml 54 | fastlane/Preview.html 55 | fastlane/screenshots/**/*.png 56 | fastlane/test_output 57 | 58 | # Code Injection 59 | # 60 | # After new code Injection tools there's a generated folder /iOSInjectionProject 61 | # https://github.com/johnno1962/injectionforxcode 62 | 63 | iOSInjectionProject/ 64 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2019 iOS及周边技术文章分享平台。 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /QiAppIconGenerator.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 50; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 063420AA2240D3DF00C9AE9A /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 063420A92240D3DF00C9AE9A /* AppDelegate.m */; }; 11 | 063420AD2240D3DF00C9AE9A /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 063420AC2240D3DF00C9AE9A /* ViewController.m */; }; 12 | 063420AF2240D3E100C9AE9A /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 063420AE2240D3E100C9AE9A /* Assets.xcassets */; }; 13 | 063420B22240D3E100C9AE9A /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 063420B02240D3E100C9AE9A /* Main.storyboard */; }; 14 | 063420B52240D3E100C9AE9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 063420B42240D3E100C9AE9A /* main.m */; }; 15 | 063420BD2240D65100C9AE9A /* QiConfiguration.plist in Resources */ = {isa = PBXBuildFile; fileRef = 063420BC2240D65100C9AE9A /* QiConfiguration.plist */; }; 16 | /* End PBXBuildFile section */ 17 | 18 | /* Begin PBXFileReference section */ 19 | 063420A52240D3DF00C9AE9A /* QiAppIconGenerator.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = QiAppIconGenerator.app; sourceTree = BUILT_PRODUCTS_DIR; }; 20 | 063420A82240D3DF00C9AE9A /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; 21 | 063420A92240D3DF00C9AE9A /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; 22 | 063420AB2240D3DF00C9AE9A /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; }; 23 | 063420AC2240D3DF00C9AE9A /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; }; 24 | 063420AE2240D3E100C9AE9A /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 25 | 063420B12240D3E100C9AE9A /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 26 | 063420B32240D3E100C9AE9A /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 27 | 063420B42240D3E100C9AE9A /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 28 | 063420B62240D3E100C9AE9A /* QiAppIconGenerator.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = QiAppIconGenerator.entitlements; sourceTree = ""; }; 29 | 063420BC2240D65100C9AE9A /* QiConfiguration.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = QiConfiguration.plist; sourceTree = ""; }; 30 | /* End PBXFileReference section */ 31 | 32 | /* Begin PBXFrameworksBuildPhase section */ 33 | 063420A22240D3DF00C9AE9A /* Frameworks */ = { 34 | isa = PBXFrameworksBuildPhase; 35 | buildActionMask = 2147483647; 36 | files = ( 37 | ); 38 | runOnlyForDeploymentPostprocessing = 0; 39 | }; 40 | /* End PBXFrameworksBuildPhase section */ 41 | 42 | /* Begin PBXGroup section */ 43 | 0634209C2240D3DF00C9AE9A = { 44 | isa = PBXGroup; 45 | children = ( 46 | 063420A72240D3DF00C9AE9A /* QiAppIconGenerator */, 47 | 063420A62240D3DF00C9AE9A /* Products */, 48 | ); 49 | sourceTree = ""; 50 | }; 51 | 063420A62240D3DF00C9AE9A /* Products */ = { 52 | isa = PBXGroup; 53 | children = ( 54 | 063420A52240D3DF00C9AE9A /* QiAppIconGenerator.app */, 55 | ); 56 | name = Products; 57 | sourceTree = ""; 58 | }; 59 | 063420A72240D3DF00C9AE9A /* QiAppIconGenerator */ = { 60 | isa = PBXGroup; 61 | children = ( 62 | 063420A82240D3DF00C9AE9A /* AppDelegate.h */, 63 | 063420A92240D3DF00C9AE9A /* AppDelegate.m */, 64 | 063420AB2240D3DF00C9AE9A /* ViewController.h */, 65 | 063420AC2240D3DF00C9AE9A /* ViewController.m */, 66 | 063420BC2240D65100C9AE9A /* QiConfiguration.plist */, 67 | 063420AE2240D3E100C9AE9A /* Assets.xcassets */, 68 | 063420B02240D3E100C9AE9A /* Main.storyboard */, 69 | 063420B32240D3E100C9AE9A /* Info.plist */, 70 | 063420B42240D3E100C9AE9A /* main.m */, 71 | 063420B62240D3E100C9AE9A /* QiAppIconGenerator.entitlements */, 72 | ); 73 | path = QiAppIconGenerator; 74 | sourceTree = ""; 75 | }; 76 | /* End PBXGroup section */ 77 | 78 | /* Begin PBXNativeTarget section */ 79 | 063420A42240D3DF00C9AE9A /* QiAppIconGenerator */ = { 80 | isa = PBXNativeTarget; 81 | buildConfigurationList = 063420B92240D3E100C9AE9A /* Build configuration list for PBXNativeTarget "QiAppIconGenerator" */; 82 | buildPhases = ( 83 | 063420A12240D3DF00C9AE9A /* Sources */, 84 | 063420A22240D3DF00C9AE9A /* Frameworks */, 85 | 063420A32240D3DF00C9AE9A /* Resources */, 86 | ); 87 | buildRules = ( 88 | ); 89 | dependencies = ( 90 | ); 91 | name = QiAppIconGenerator; 92 | productName = QiAppIconGenerator; 93 | productReference = 063420A52240D3DF00C9AE9A /* QiAppIconGenerator.app */; 94 | productType = "com.apple.product-type.application"; 95 | }; 96 | /* End PBXNativeTarget section */ 97 | 98 | /* Begin PBXProject section */ 99 | 0634209D2240D3DF00C9AE9A /* Project object */ = { 100 | isa = PBXProject; 101 | attributes = { 102 | LastUpgradeCheck = 1130; 103 | ORGANIZATIONNAME = QiShare; 104 | TargetAttributes = { 105 | 063420A42240D3DF00C9AE9A = { 106 | CreatedOnToolsVersion = 10.1; 107 | }; 108 | }; 109 | }; 110 | buildConfigurationList = 063420A02240D3DF00C9AE9A /* Build configuration list for PBXProject "QiAppIconGenerator" */; 111 | compatibilityVersion = "Xcode 9.3"; 112 | developmentRegion = en; 113 | hasScannedForEncodings = 0; 114 | knownRegions = ( 115 | en, 116 | Base, 117 | ); 118 | mainGroup = 0634209C2240D3DF00C9AE9A; 119 | productRefGroup = 063420A62240D3DF00C9AE9A /* Products */; 120 | projectDirPath = ""; 121 | projectRoot = ""; 122 | targets = ( 123 | 063420A42240D3DF00C9AE9A /* QiAppIconGenerator */, 124 | ); 125 | }; 126 | /* End PBXProject section */ 127 | 128 | /* Begin PBXResourcesBuildPhase section */ 129 | 063420A32240D3DF00C9AE9A /* Resources */ = { 130 | isa = PBXResourcesBuildPhase; 131 | buildActionMask = 2147483647; 132 | files = ( 133 | 063420BD2240D65100C9AE9A /* QiConfiguration.plist in Resources */, 134 | 063420AF2240D3E100C9AE9A /* Assets.xcassets in Resources */, 135 | 063420B22240D3E100C9AE9A /* Main.storyboard in Resources */, 136 | ); 137 | runOnlyForDeploymentPostprocessing = 0; 138 | }; 139 | /* End PBXResourcesBuildPhase section */ 140 | 141 | /* Begin PBXSourcesBuildPhase section */ 142 | 063420A12240D3DF00C9AE9A /* Sources */ = { 143 | isa = PBXSourcesBuildPhase; 144 | buildActionMask = 2147483647; 145 | files = ( 146 | 063420AD2240D3DF00C9AE9A /* ViewController.m in Sources */, 147 | 063420B52240D3E100C9AE9A /* main.m in Sources */, 148 | 063420AA2240D3DF00C9AE9A /* AppDelegate.m in Sources */, 149 | ); 150 | runOnlyForDeploymentPostprocessing = 0; 151 | }; 152 | /* End PBXSourcesBuildPhase section */ 153 | 154 | /* Begin PBXVariantGroup section */ 155 | 063420B02240D3E100C9AE9A /* Main.storyboard */ = { 156 | isa = PBXVariantGroup; 157 | children = ( 158 | 063420B12240D3E100C9AE9A /* Base */, 159 | ); 160 | name = Main.storyboard; 161 | sourceTree = ""; 162 | }; 163 | /* End PBXVariantGroup section */ 164 | 165 | /* Begin XCBuildConfiguration section */ 166 | 063420B72240D3E100C9AE9A /* Debug */ = { 167 | isa = XCBuildConfiguration; 168 | buildSettings = { 169 | ALWAYS_SEARCH_USER_PATHS = NO; 170 | CLANG_ANALYZER_NONNULL = YES; 171 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 172 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 173 | CLANG_CXX_LIBRARY = "libc++"; 174 | CLANG_ENABLE_MODULES = YES; 175 | CLANG_ENABLE_OBJC_ARC = YES; 176 | CLANG_ENABLE_OBJC_WEAK = YES; 177 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 178 | CLANG_WARN_BOOL_CONVERSION = YES; 179 | CLANG_WARN_COMMA = YES; 180 | CLANG_WARN_CONSTANT_CONVERSION = YES; 181 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 182 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 183 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 184 | CLANG_WARN_EMPTY_BODY = YES; 185 | CLANG_WARN_ENUM_CONVERSION = YES; 186 | CLANG_WARN_INFINITE_RECURSION = YES; 187 | CLANG_WARN_INT_CONVERSION = YES; 188 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 189 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 190 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 191 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 192 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 193 | CLANG_WARN_STRICT_PROTOTYPES = YES; 194 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 195 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 196 | CLANG_WARN_UNREACHABLE_CODE = YES; 197 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 198 | CODE_SIGN_IDENTITY = "-"; 199 | COPY_PHASE_STRIP = NO; 200 | DEBUG_INFORMATION_FORMAT = dwarf; 201 | ENABLE_STRICT_OBJC_MSGSEND = YES; 202 | ENABLE_TESTABILITY = YES; 203 | GCC_C_LANGUAGE_STANDARD = gnu11; 204 | GCC_DYNAMIC_NO_PIC = NO; 205 | GCC_NO_COMMON_BLOCKS = YES; 206 | GCC_OPTIMIZATION_LEVEL = 0; 207 | GCC_PREPROCESSOR_DEFINITIONS = ( 208 | "DEBUG=1", 209 | "$(inherited)", 210 | ); 211 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 212 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 213 | GCC_WARN_UNDECLARED_SELECTOR = YES; 214 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 215 | GCC_WARN_UNUSED_FUNCTION = YES; 216 | GCC_WARN_UNUSED_VARIABLE = YES; 217 | MACOSX_DEPLOYMENT_TARGET = 10.11; 218 | MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; 219 | MTL_FAST_MATH = YES; 220 | ONLY_ACTIVE_ARCH = YES; 221 | SDKROOT = macosx; 222 | }; 223 | name = Debug; 224 | }; 225 | 063420B82240D3E100C9AE9A /* Release */ = { 226 | isa = XCBuildConfiguration; 227 | buildSettings = { 228 | ALWAYS_SEARCH_USER_PATHS = NO; 229 | CLANG_ANALYZER_NONNULL = YES; 230 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 231 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 232 | CLANG_CXX_LIBRARY = "libc++"; 233 | CLANG_ENABLE_MODULES = YES; 234 | CLANG_ENABLE_OBJC_ARC = YES; 235 | CLANG_ENABLE_OBJC_WEAK = YES; 236 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 237 | CLANG_WARN_BOOL_CONVERSION = YES; 238 | CLANG_WARN_COMMA = YES; 239 | CLANG_WARN_CONSTANT_CONVERSION = YES; 240 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 241 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 242 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 243 | CLANG_WARN_EMPTY_BODY = YES; 244 | CLANG_WARN_ENUM_CONVERSION = YES; 245 | CLANG_WARN_INFINITE_RECURSION = YES; 246 | CLANG_WARN_INT_CONVERSION = YES; 247 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 248 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 249 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 250 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 251 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 252 | CLANG_WARN_STRICT_PROTOTYPES = YES; 253 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 254 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 255 | CLANG_WARN_UNREACHABLE_CODE = YES; 256 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 257 | CODE_SIGN_IDENTITY = "-"; 258 | COPY_PHASE_STRIP = NO; 259 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 260 | ENABLE_NS_ASSERTIONS = NO; 261 | ENABLE_STRICT_OBJC_MSGSEND = YES; 262 | GCC_C_LANGUAGE_STANDARD = gnu11; 263 | GCC_NO_COMMON_BLOCKS = YES; 264 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 265 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 266 | GCC_WARN_UNDECLARED_SELECTOR = YES; 267 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 268 | GCC_WARN_UNUSED_FUNCTION = YES; 269 | GCC_WARN_UNUSED_VARIABLE = YES; 270 | MACOSX_DEPLOYMENT_TARGET = 10.11; 271 | MTL_ENABLE_DEBUG_INFO = NO; 272 | MTL_FAST_MATH = YES; 273 | SDKROOT = macosx; 274 | }; 275 | name = Release; 276 | }; 277 | 063420BA2240D3E100C9AE9A /* Debug */ = { 278 | isa = XCBuildConfiguration; 279 | buildSettings = { 280 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 281 | CODE_SIGN_ENTITLEMENTS = QiAppIconGenerator/QiAppIconGenerator.entitlements; 282 | CODE_SIGN_IDENTITY = "-"; 283 | CODE_SIGN_STYLE = Automatic; 284 | COMBINE_HIDPI_IMAGES = YES; 285 | INFOPLIST_FILE = QiAppIconGenerator/Info.plist; 286 | LD_RUNPATH_SEARCH_PATHS = ( 287 | "$(inherited)", 288 | "@executable_path/../Frameworks", 289 | ); 290 | MACOSX_DEPLOYMENT_TARGET = 10.10; 291 | PRODUCT_BUNDLE_IDENTIFIER = com.qishare.QiAppIconGenerator; 292 | PRODUCT_NAME = "$(TARGET_NAME)"; 293 | }; 294 | name = Debug; 295 | }; 296 | 063420BB2240D3E100C9AE9A /* Release */ = { 297 | isa = XCBuildConfiguration; 298 | buildSettings = { 299 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 300 | CODE_SIGN_ENTITLEMENTS = QiAppIconGenerator/QiAppIconGenerator.entitlements; 301 | CODE_SIGN_IDENTITY = "-"; 302 | CODE_SIGN_STYLE = Automatic; 303 | COMBINE_HIDPI_IMAGES = YES; 304 | INFOPLIST_FILE = QiAppIconGenerator/Info.plist; 305 | LD_RUNPATH_SEARCH_PATHS = ( 306 | "$(inherited)", 307 | "@executable_path/../Frameworks", 308 | ); 309 | MACOSX_DEPLOYMENT_TARGET = 10.10; 310 | PRODUCT_BUNDLE_IDENTIFIER = com.qishare.QiAppIconGenerator; 311 | PRODUCT_NAME = "$(TARGET_NAME)"; 312 | }; 313 | name = Release; 314 | }; 315 | /* End XCBuildConfiguration section */ 316 | 317 | /* Begin XCConfigurationList section */ 318 | 063420A02240D3DF00C9AE9A /* Build configuration list for PBXProject "QiAppIconGenerator" */ = { 319 | isa = XCConfigurationList; 320 | buildConfigurations = ( 321 | 063420B72240D3E100C9AE9A /* Debug */, 322 | 063420B82240D3E100C9AE9A /* Release */, 323 | ); 324 | defaultConfigurationIsVisible = 0; 325 | defaultConfigurationName = Release; 326 | }; 327 | 063420B92240D3E100C9AE9A /* Build configuration list for PBXNativeTarget "QiAppIconGenerator" */ = { 328 | isa = XCConfigurationList; 329 | buildConfigurations = ( 330 | 063420BA2240D3E100C9AE9A /* Debug */, 331 | 063420BB2240D3E100C9AE9A /* Release */, 332 | ); 333 | defaultConfigurationIsVisible = 0; 334 | defaultConfigurationName = Release; 335 | }; 336 | /* End XCConfigurationList section */ 337 | }; 338 | rootObject = 0634209D2240D3DF00C9AE9A /* Project object */; 339 | } 340 | -------------------------------------------------------------------------------- /QiAppIconGenerator.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /QiAppIconGenerator.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /QiAppIconGenerator.xcodeproj/xcshareddata/xcschemes/QiAppIconGenerator.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 37 | 38 | 39 | 40 | 41 | 42 | 52 | 54 | 60 | 61 | 62 | 63 | 69 | 71 | 77 | 78 | 79 | 80 | 82 | 83 | 86 | 87 | 88 | -------------------------------------------------------------------------------- /QiAppIconGenerator/AppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.h 3 | // QiAppIconGenerator 4 | // 5 | // Created by huangxianshuai on 2019/3/19. 6 | // Copyright © 2019年 QiShare. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface AppDelegate : NSObject 12 | 13 | 14 | @end 15 | 16 | -------------------------------------------------------------------------------- /QiAppIconGenerator/AppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.m 3 | // QiAppIconGenerator 4 | // 5 | // Created by huangxianshuai on 2019/3/19. 6 | // Copyright © 2019年 QiShare. All rights reserved. 7 | // 8 | 9 | #import "AppDelegate.h" 10 | 11 | @interface AppDelegate () 12 | 13 | @end 14 | 15 | @implementation AppDelegate 16 | 17 | - (void)applicationDidFinishLaunching:(NSNotification *)aNotification { 18 | 19 | } 20 | 21 | 22 | - (void)applicationWillTerminate:(NSNotification *)aNotification { 23 | // Insert code here to tear down your application 24 | } 25 | 26 | 27 | @end 28 | -------------------------------------------------------------------------------- /QiAppIconGenerator/Assets.xcassets/AppIcon.appiconset/AppIcon-Mac-128.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hxsxyz/QiAppIconGenerator/05e9846faac65916b758611fcf02d78f57273bae/QiAppIconGenerator/Assets.xcassets/AppIcon.appiconset/AppIcon-Mac-128.png -------------------------------------------------------------------------------- /QiAppIconGenerator/Assets.xcassets/AppIcon.appiconset/AppIcon-Mac-128@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hxsxyz/QiAppIconGenerator/05e9846faac65916b758611fcf02d78f57273bae/QiAppIconGenerator/Assets.xcassets/AppIcon.appiconset/AppIcon-Mac-128@2x.png -------------------------------------------------------------------------------- /QiAppIconGenerator/Assets.xcassets/AppIcon.appiconset/AppIcon-Mac-16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hxsxyz/QiAppIconGenerator/05e9846faac65916b758611fcf02d78f57273bae/QiAppIconGenerator/Assets.xcassets/AppIcon.appiconset/AppIcon-Mac-16.png -------------------------------------------------------------------------------- /QiAppIconGenerator/Assets.xcassets/AppIcon.appiconset/AppIcon-Mac-16@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hxsxyz/QiAppIconGenerator/05e9846faac65916b758611fcf02d78f57273bae/QiAppIconGenerator/Assets.xcassets/AppIcon.appiconset/AppIcon-Mac-16@2x.png -------------------------------------------------------------------------------- /QiAppIconGenerator/Assets.xcassets/AppIcon.appiconset/AppIcon-Mac-256.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hxsxyz/QiAppIconGenerator/05e9846faac65916b758611fcf02d78f57273bae/QiAppIconGenerator/Assets.xcassets/AppIcon.appiconset/AppIcon-Mac-256.png -------------------------------------------------------------------------------- /QiAppIconGenerator/Assets.xcassets/AppIcon.appiconset/AppIcon-Mac-256@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hxsxyz/QiAppIconGenerator/05e9846faac65916b758611fcf02d78f57273bae/QiAppIconGenerator/Assets.xcassets/AppIcon.appiconset/AppIcon-Mac-256@2x.png -------------------------------------------------------------------------------- /QiAppIconGenerator/Assets.xcassets/AppIcon.appiconset/AppIcon-Mac-32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hxsxyz/QiAppIconGenerator/05e9846faac65916b758611fcf02d78f57273bae/QiAppIconGenerator/Assets.xcassets/AppIcon.appiconset/AppIcon-Mac-32.png -------------------------------------------------------------------------------- /QiAppIconGenerator/Assets.xcassets/AppIcon.appiconset/AppIcon-Mac-32@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hxsxyz/QiAppIconGenerator/05e9846faac65916b758611fcf02d78f57273bae/QiAppIconGenerator/Assets.xcassets/AppIcon.appiconset/AppIcon-Mac-32@2x.png -------------------------------------------------------------------------------- /QiAppIconGenerator/Assets.xcassets/AppIcon.appiconset/AppIcon-Mac-512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hxsxyz/QiAppIconGenerator/05e9846faac65916b758611fcf02d78f57273bae/QiAppIconGenerator/Assets.xcassets/AppIcon.appiconset/AppIcon-Mac-512.png -------------------------------------------------------------------------------- /QiAppIconGenerator/Assets.xcassets/AppIcon.appiconset/AppIcon-Mac-512@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hxsxyz/QiAppIconGenerator/05e9846faac65916b758611fcf02d78f57273bae/QiAppIconGenerator/Assets.xcassets/AppIcon.appiconset/AppIcon-Mac-512@2x.png -------------------------------------------------------------------------------- /QiAppIconGenerator/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "size" : "16x16", 5 | "idiom" : "mac", 6 | "filename" : "AppIcon-Mac-16.png", 7 | "scale" : "1x" 8 | }, 9 | { 10 | "size" : "16x16", 11 | "idiom" : "mac", 12 | "filename" : "AppIcon-Mac-16@2x.png", 13 | "scale" : "2x" 14 | }, 15 | { 16 | "size" : "32x32", 17 | "idiom" : "mac", 18 | "filename" : "AppIcon-Mac-32.png", 19 | "scale" : "1x" 20 | }, 21 | { 22 | "size" : "32x32", 23 | "idiom" : "mac", 24 | "filename" : "AppIcon-Mac-32@2x.png", 25 | "scale" : "2x" 26 | }, 27 | { 28 | "size" : "128x128", 29 | "idiom" : "mac", 30 | "filename" : "AppIcon-Mac-128.png", 31 | "scale" : "1x" 32 | }, 33 | { 34 | "size" : "128x128", 35 | "idiom" : "mac", 36 | "filename" : "AppIcon-Mac-128@2x.png", 37 | "scale" : "2x" 38 | }, 39 | { 40 | "size" : "256x256", 41 | "idiom" : "mac", 42 | "filename" : "AppIcon-Mac-256.png", 43 | "scale" : "1x" 44 | }, 45 | { 46 | "size" : "256x256", 47 | "idiom" : "mac", 48 | "filename" : "AppIcon-Mac-256@2x.png", 49 | "scale" : "2x" 50 | }, 51 | { 52 | "size" : "512x512", 53 | "idiom" : "mac", 54 | "filename" : "AppIcon-Mac-512.png", 55 | "scale" : "1x" 56 | }, 57 | { 58 | "size" : "512x512", 59 | "idiom" : "mac", 60 | "filename" : "AppIcon-Mac-512@2x.png", 61 | "scale" : "2x" 62 | } 63 | ], 64 | "info" : { 65 | "version" : 1, 66 | "author" : "xcode" 67 | } 68 | } -------------------------------------------------------------------------------- /QiAppIconGenerator/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /QiAppIconGenerator/Assets.xcassets/placeholder.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "placeholder.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /QiAppIconGenerator/Assets.xcassets/placeholder.imageset/placeholder.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hxsxyz/QiAppIconGenerator/05e9846faac65916b758611fcf02d78f57273bae/QiAppIconGenerator/Assets.xcassets/placeholder.imageset/placeholder.png -------------------------------------------------------------------------------- /QiAppIconGenerator/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | 178 | 179 | 180 | 181 | 182 | 183 | 184 | 185 | 186 | 187 | 188 | 189 | 190 | 191 | 192 | 193 | 194 | 195 | 196 | 197 | 198 | 199 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 209 | 210 | 211 | 212 | 213 | 214 | 215 | 216 | 217 | 218 | 219 | 220 | 221 | 222 | 223 | 224 | 225 | 226 | 227 | 228 | 229 | 230 | 231 | 232 | 233 | 234 | 235 | 236 | 237 | 238 | 239 | 240 | 241 | 242 | 243 | 244 | 245 | 246 | 247 | 248 | 249 | 250 | 251 | 252 | 253 | 254 | 255 | 256 | 257 | 258 | 259 | 260 | 261 | 262 | 263 | 264 | 265 | 266 | 267 | 268 | 269 | 270 | 271 | 272 | 273 | 274 | 275 | 276 | 277 | 278 | 279 | 280 | 281 | 282 | 283 | 284 | 285 | 286 | 287 | 288 | 289 | 290 | 291 | 292 | 293 | 294 | 295 | 296 | 297 | 298 | 299 | 300 | 301 | 302 | 303 | 304 | 305 | 306 | 307 | 308 | 309 | 310 | 311 | 312 | 313 | 314 | 315 | 316 | 317 | 318 | 319 | 320 | 321 | 322 | 323 | 324 | 325 | 326 | 327 | 328 | 329 | 330 | 331 | 332 | 333 | 334 | 335 | 336 | 337 | 338 | 339 | 340 | 341 | 342 | 343 | 344 | 345 | 346 | 347 | 348 | 349 | 350 | 351 | 352 | 353 | 354 | 355 | 356 | 357 | 358 | 359 | 360 | 361 | 362 | 363 | 364 | 365 | 366 | 367 | 368 | 369 | 370 | 371 | 372 | 373 | 374 | 375 | 376 | 377 | 378 | 379 | 380 | 381 | 382 | 383 | 384 | 385 | 386 | 387 | 388 | 389 | 390 | 391 | 392 | 393 | 394 | 395 | 396 | 397 | 398 | 399 | 400 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | 421 | 422 | 423 | 424 | 425 | 426 | 427 | 428 | 429 | 430 | 431 | 432 | 433 | 434 | 435 | 436 | 437 | 438 | 439 | 440 | 441 | 442 | 443 | 444 | 445 | 446 | 447 | 448 | 449 | 450 | 451 | 452 | 453 | 454 | 455 | 456 | 457 | 458 | 459 | 460 | 461 | 462 | 463 | 464 | 465 | 466 | 467 | 468 | 469 | 470 | 471 | 472 | 473 | 474 | 475 | 476 | 477 | 478 | 479 | 480 | 481 | 482 | 483 | 484 | 485 | 486 | 487 | 488 | 489 | 490 | 491 | 492 | 493 | 494 | 495 | 496 | 497 | 498 | 499 | 500 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 509 | 510 | 511 | 512 | 513 | 514 | 515 | 516 | 517 | 518 | 519 | 520 | 521 | 522 | 523 | 524 | 525 | 526 | 527 | 528 | 529 | 530 | Default 531 | 532 | 533 | 534 | 535 | 536 | 537 | Left to Right 538 | 539 | 540 | 541 | 542 | 543 | 544 | Right to Left 545 | 546 | 547 | 548 | 549 | 550 | 551 | 552 | 553 | 554 | 555 | Default 556 | 557 | 558 | 559 | 560 | 561 | 562 | Left to Right 563 | 564 | 565 | 566 | 567 | 568 | 569 | Right to Left 570 | 571 | 572 | 573 | 574 | 575 | 576 | 577 | 578 | 579 | 580 | 581 | 582 | 583 | 584 | 585 | 586 | 587 | 588 | 589 | 590 | 591 | 592 | 593 | 594 | 595 | 596 | 597 | 598 | 599 | 600 | 601 | 602 | 603 | 604 | 605 | 606 | 607 | 608 | 609 | 610 | 611 | 612 | 613 | 614 | 615 | 616 | 617 | 618 | 619 | 620 | 621 | 622 | 623 | 624 | 625 | 626 | 627 | 628 | 629 | 630 | 631 | 632 | 633 | 634 | 635 | 636 | 637 | 638 | 639 | 640 | 641 | 642 | 643 | 644 | 645 | 646 | 647 | 648 | 649 | 650 | 651 | 652 | 653 | 654 | 655 | 656 | 657 | 658 | 659 | 660 | 661 | 662 | 663 | 664 | 665 | 666 | 667 | 668 | 669 | 670 | 671 | 672 | 673 | 674 | 675 | 676 | 677 | 678 | 679 | 680 | 681 | 682 | 683 | 684 | 685 | 686 | 687 | 688 | 689 | 690 | 691 | 692 | 693 | 694 | 695 | 696 | 697 | 698 | 699 | 700 | 701 | 702 | 703 | 704 | 705 | 706 | 707 | 708 | 709 | 710 | 711 | 712 | 713 | 714 | 715 | 716 | 717 | 718 | 719 | 720 | 721 | 722 | 723 | 724 | 725 | 726 | 727 | 728 | 729 | 730 | 731 | 732 | 742 | 752 | 753 | 754 | 755 | 756 | 757 | 758 | 759 | 760 | 761 | 762 | 763 | 764 | 765 | 766 | iPhone AppIcons 767 | iPhone LaunchImages Portrait 768 | iPhone LaunchImages Landscape 769 | iPad AppIcons 770 | iPad LaunchImages Portrait 771 | iPad LaunchImages Landscape 772 | Mac AppIcons 773 | Watch AppIcons 774 | CarPlay AppIcons 775 | Android AppIcons 776 | Android LaunchImages Portrait 777 | Android LaunchImages Landscape 778 | 779 | 780 | 781 | 782 | 783 | 784 | 785 | 786 | 787 | 788 | 789 | 790 | 791 | 792 | 793 | 794 | 795 | 796 | 797 | 798 | 799 | 800 | 801 | 802 | 803 | 804 | 805 | 806 | 807 | 808 | 809 | 810 | 811 | 812 | 813 | 814 | 815 | 816 | 817 | 818 | 819 | -------------------------------------------------------------------------------- /QiAppIconGenerator/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIconFile 10 | 11 | CFBundleIdentifier 12 | $(PRODUCT_BUNDLE_IDENTIFIER) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | 图标&启动图生成器 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | 0.3 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | 1 25 | LSApplicationCategoryType 26 | public.app-category.developer-tools 27 | LSMinimumSystemVersion 28 | $(MACOSX_DEPLOYMENT_TARGET) 29 | NSHumanReadableCopyright 30 | Copyright © 2019年 QiShare. All rights reserved. 31 | NSMainStoryboardFile 32 | Main 33 | NSPrincipalClass 34 | NSApplication 35 | 36 | 37 | -------------------------------------------------------------------------------- /QiAppIconGenerator/QiAppIconGenerator.entitlements: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | com.apple.security.app-sandbox 6 | 7 | com.apple.security.files.user-selected.read-only 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /QiAppIconGenerator/QiConfiguration.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | iPhone AppIcons 6 | 7 | 8 | purpose 9 | iPhone Notification 2x 10 | name 11 | AppIcon-iPhone-20@2x 12 | size 13 | {40,40} 14 | 15 | 16 | purpose 17 | iPhone Notification 3x 18 | name 19 | AppIcon-iPhone-20@3x 20 | size 21 | {60,60} 22 | 23 | 24 | purpose 25 | iPhone Settings 2x 26 | name 27 | AppIcon-iPhone-29@2x 28 | size 29 | {58,58} 30 | 31 | 32 | purpose 33 | iPhone Settings 3x 34 | name 35 | AppIcon-iPhone-29@3x 36 | size 37 | {87,87} 38 | 39 | 40 | purpose 41 | iPhone Spotlight 2x 42 | name 43 | AppIcon-iPhone-40@2x 44 | size 45 | {80,80} 46 | 47 | 48 | purpose 49 | iPhone Spotlight 3x 50 | name 51 | AppIcon-iPhone-40@3x 52 | size 53 | {120,120} 54 | 55 | 56 | purpose 57 | iPhone App 2x 58 | name 59 | AppIcon-iPhone-60@2x 60 | size 61 | {120,120} 62 | 63 | 64 | purpose 65 | iPhone App 3x 66 | name 67 | AppIcon-iPhone-60@3x 68 | size 69 | {180,180} 70 | 71 | 72 | purpose 73 | App Store 74 | name 75 | AppIcon-AppStore-1024 76 | size 77 | {1024,1024} 78 | 79 | 80 | iPhone LaunchImages Portrait 81 | 82 | 83 | purpose 84 | iPhone Xs Max Portrait 85 | name 86 | LaunchImage-iPhone-414x896@3x 87 | size 88 | {1242,2688} 89 | 90 | 91 | purpose 92 | iPhone Xr Portrait 93 | name 94 | LaunchImage-iPhone-414x896@2x 95 | size 96 | {828,1792} 97 | 98 | 99 | purpose 100 | iPhone X/Xs Portrait 101 | name 102 | LaunchImage-iPhone-375x812@3x 103 | size 104 | {1125,2436} 105 | 106 | 107 | purpose 108 | Retina HD 5.5″ Portrait 109 | name 110 | LaunchImage-iPhone-414x736@3x 111 | size 112 | {1242,2208} 113 | 114 | 115 | purpose 116 | Retina HD 4.7″ Portrait 117 | name 118 | LaunchImage-iPhone-375x667@2x 119 | size 120 | {750,1334} 121 | 122 | 123 | purpose 124 | 2x Portrait 125 | name 126 | LaunchImage-iPhone-320x480@2x 127 | size 128 | {640,960} 129 | 130 | 131 | purpose 132 | Retina 4 Portrait 133 | name 134 | LaunchImage-iPhone-320x568@2x 135 | size 136 | {640,1136} 137 | 138 | 139 | iPhone LaunchImages Landscape 140 | 141 | 142 | purpose 143 | iPhone Xs Max Landscape 144 | name 145 | LaunchImage-iPhone-896x414@3x 146 | size 147 | {2688,1242} 148 | 149 | 150 | purpose 151 | iPhone Xr Landscape 152 | name 153 | LaunchImage-iPhone-896x414@2x 154 | size 155 | {1792,828} 156 | 157 | 158 | purpose 159 | iPhone X/Xs Landscape 160 | name 161 | LaunchImage-iPhone-812x375@3x 162 | size 163 | {2436,1125} 164 | 165 | 166 | purpose 167 | Retina HD 5.5″ Landscape 168 | name 169 | LaunchImage-iPhone-736x414@3x 170 | size 171 | {2208,1242} 172 | 173 | 174 | iPad AppIcons 175 | 176 | 177 | purpose 178 | iPad Notifications 1x 179 | name 180 | AppIcon-iPad-20 181 | size 182 | {20,20} 183 | 184 | 185 | purpose 186 | iPad Notifications 2x 187 | name 188 | AppIcon-iPad-20@2x 189 | size 190 | {40,40} 191 | 192 | 193 | purpose 194 | iPad Settings 1x 195 | name 196 | AppIcon-iPad-29 197 | size 198 | {29,29} 199 | 200 | 201 | purpose 202 | iPad Settings 2x 203 | name 204 | AppIcon-iPad-29@2x 205 | size 206 | {58,58} 207 | 208 | 209 | purpose 210 | iPad Spotlight 1x 211 | name 212 | AppIcon-iPad-40 213 | size 214 | {40,40} 215 | 216 | 217 | purpose 218 | iPad Spotlight 2x 219 | name 220 | AppIcon-iPad-40@2x 221 | size 222 | {80,80} 223 | 224 | 225 | purpose 226 | iPad App 1x 227 | name 228 | AppIcon-iPad-76 229 | size 230 | {76,76} 231 | 232 | 233 | purpose 234 | iPad App 2x 235 | name 236 | AppIcon-iPad-76@2x 237 | size 238 | {152,152} 239 | 240 | 241 | purpose 242 | iPad Pro 2x 243 | name 244 | AppIcon-iPad-83.5@2x 245 | size 246 | {167,167} 247 | 248 | 249 | iPad LaunchImages Portrait 250 | 251 | 252 | purpose 253 | 1x Portrait 254 | name 255 | LaunchImage-iPad-768x1024 256 | size 257 | {768,1024} 258 | 259 | 260 | purpose 261 | 2x Portrait 262 | name 263 | LaunchImage-iPad-768x1024@2x 264 | size 265 | {1536,2048} 266 | 267 | 268 | iPad LaunchImages Landscape 269 | 270 | 271 | purpose 272 | 1x Landscape 273 | name 274 | LaunchImage-iPad-1024x768 275 | size 276 | {1024,768} 277 | 278 | 279 | purpose 280 | 2x Landscape 281 | name 282 | LaunchImage-iPad-1024x768@2x 283 | size 284 | {2048,1536} 285 | 286 | 287 | Mac AppIcons 288 | 289 | 290 | purpose 291 | Mac 292 | name 293 | AppIcon-Mac-16 294 | size 295 | {16,16} 296 | 297 | 298 | purpose 299 | Mac 300 | name 301 | AppIcon-Mac-16@2x 302 | size 303 | {32,32} 304 | 305 | 306 | purpose 307 | Mac 308 | name 309 | AppIcon-Mac-32 310 | size 311 | {32,32} 312 | 313 | 314 | purpose 315 | Mac 316 | name 317 | AppIcon-Mac-32@2x 318 | size 319 | {64,64} 320 | 321 | 322 | purpose 323 | Mac 324 | name 325 | AppIcon-Mac-128 326 | size 327 | {128,128} 328 | 329 | 330 | purpose 331 | Mac 332 | name 333 | AppIcon-Mac-128@2x 334 | size 335 | {256,256} 336 | 337 | 338 | purpose 339 | Mac 340 | name 341 | AppIcon-Mac-256 342 | size 343 | {256,256} 344 | 345 | 346 | purpose 347 | Mac 348 | name 349 | AppIcon-Mac-256@2x 350 | size 351 | {512,512} 352 | 353 | 354 | purpose 355 | Mac 356 | name 357 | AppIcon-Mac-512 358 | size 359 | {512,512} 360 | 361 | 362 | purpose 363 | Mac 364 | name 365 | AppIcon-Mac-512@2x 366 | size 367 | {1024,1024} 368 | 369 | 370 | Watch AppIcons 371 | 372 | 373 | purpose 374 | Notification Center 375 | name 376 | AppIcon-Watch-24@2x 377 | size 378 | {48,48} 379 | 380 | 381 | purpose 382 | Notification Center 383 | name 384 | AppIcon-Watch-27.5@2x 385 | size 386 | {55,55} 387 | 388 | 389 | purpose 390 | Companion Settings 391 | name 392 | AppIcon-Watch-29@2x 393 | size 394 | {58,58} 395 | 396 | 397 | purpose 398 | Companion Settings 399 | name 400 | AppIcon-Watch-29@3x 401 | size 402 | {87,87} 403 | 404 | 405 | purpose 406 | App Launcher 407 | name 408 | AppIcon-Watch-40@2x 409 | size 410 | {80,80} 411 | 412 | 413 | purpose 414 | App Launcher 415 | name 416 | AppIcon-Watch-44@2x 417 | size 418 | {88,88} 419 | 420 | 421 | purpose 422 | App Launcher 423 | name 424 | AppIcon-Watch-50@2x 425 | size 426 | {100,100} 427 | 428 | 429 | purpose 430 | Quick Look 431 | name 432 | AppIcon-Watch-86@2x 433 | size 434 | {172,172} 435 | 436 | 437 | purpose 438 | Quick Look 439 | name 440 | AppIcon-Watch-98@2x 441 | size 442 | {196,196} 443 | 444 | 445 | purpose 446 | Quick Look 447 | name 448 | AppIcon-Watch-108@2x 449 | size 450 | {216,216} 451 | 452 | 453 | purpose 454 | App Store 455 | name 456 | AppIcon-Watch-1024 457 | size 458 | {1024,1024} 459 | 460 | 461 | CarPlay AppIcons 462 | 463 | 464 | purpose 465 | CarPlay 466 | name 467 | AppIcon-CarPlay-60@2x 468 | size 469 | {120,120} 470 | 471 | 472 | purpose 473 | CarPlay 474 | name 475 | AppIcon-CarPlay-60@3x 476 | size 477 | {180, 180} 478 | 479 | 480 | Android AppIcons 481 | 482 | 483 | purpose 484 | LDPI 485 | name 486 | AppIcon-Android-36 487 | size 488 | {36,36} 489 | 490 | 491 | purpose 492 | MDPI 493 | name 494 | AppIcon-Android-48 495 | size 496 | {48,48} 497 | 498 | 499 | purpose 500 | HDPI 501 | name 502 | AppIcon-Android-72 503 | size 504 | {72,72} 505 | 506 | 507 | purpose 508 | XHDPI 509 | name 510 | AppIcon-Android-96 511 | size 512 | {96,96} 513 | 514 | 515 | purpose 516 | XXHDPI 517 | name 518 | AppIcon-Android-144 519 | size 520 | {144,144} 521 | 522 | 523 | purpose 524 | XXXHDPI 525 | name 526 | AppIcon-Android-192 527 | size 528 | {192,192} 529 | 530 | 531 | purpose 532 | NA 533 | name 534 | AppIcon-Android-512 535 | size 536 | {512,512} 537 | 538 | 539 | Android LaunchImages Portrait 540 | 541 | 542 | purpose 543 | 720P Portrait 544 | name 545 | LaunchImage-Android-720x1080 546 | size 547 | {720,1080} 548 | 549 | 550 | purpose 551 | 1080P Portrait 552 | name 553 | LaunchImage-Android-1080x1920 554 | size 555 | {1080,1920} 556 | 557 | 558 | purpose 559 | 1080P+ Portrait 560 | name 561 | LaunchImage-Android-1080x2160 562 | size 563 | {1080,2160} 564 | 565 | 566 | purpose 567 | 2K Portrait 568 | name 569 | LaunchImage-Android-1440x2560 570 | size 571 | {1440,2560} 572 | 573 | 574 | Android LaunchImages Landscape 575 | 576 | 577 | purpose 578 | 720P Landscape 579 | name 580 | LaunchImage-Android-1080x720 581 | size 582 | {1080,720} 583 | 584 | 585 | purpose 586 | 1080P Landscape 587 | name 588 | LaunchImage-Android-1920x1080 589 | size 590 | {1920,1080} 591 | 592 | 593 | purpose 594 | 1080P+ Landscape 595 | name 596 | LaunchImage-Android-2160x1080 597 | size 598 | {1080,2160} 599 | 600 | 601 | purpose 602 | 2K Landscape 603 | name 604 | LaunchImage-Android-2560x1440 605 | size 606 | {2560,1440} 607 | 608 | 609 | 610 | 611 | -------------------------------------------------------------------------------- /QiAppIconGenerator/ViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.h 3 | // QiAppIconGenerator 4 | // 5 | // Created by huangxianshuai on 2019/3/19. 6 | // Copyright © 2019年 QiShare. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface ViewController : NSViewController 12 | 13 | @end 14 | 15 | -------------------------------------------------------------------------------- /QiAppIconGenerator/ViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.m 3 | // QiAppIconGenerator 4 | // 5 | // Created by huangxianshuai on 2019/3/19. 6 | // Copyright © 2019年 QiShare. All rights reserved. 7 | // 8 | 9 | #import "ViewController.h" 10 | 11 | static NSString * const selectedPlatformKey = @"selectedPlatform"; 12 | static NSString * const exportedPathKey = @"exportedPath"; 13 | 14 | @interface ViewController () 15 | 16 | @property (weak) IBOutlet NSImageView *imageView; 17 | @property (weak) IBOutlet NSComboBox *platformBox; 18 | @property (weak) IBOutlet NSButton *pathButton; 19 | @property (weak) IBOutlet NSTextField *pathField; 20 | @property (weak) IBOutlet NSButton *exportButton; 21 | 22 | @end 23 | 24 | @implementation ViewController 25 | 26 | - (void)viewDidLoad { 27 | 28 | [super viewDidLoad]; 29 | 30 | NSString *selectedPlatform = [[NSUserDefaults standardUserDefaults] objectForKey:selectedPlatformKey]; 31 | [_platformBox selectItemWithObjectValue:selectedPlatform]; 32 | 33 | NSString *lastExportedPath = [[NSUserDefaults standardUserDefaults] objectForKey:exportedPathKey]; 34 | _pathField.stringValue = lastExportedPath ?: NSHomeDirectory(); 35 | } 36 | 37 | 38 | #pragma mark - Action functions 39 | 40 | - (IBAction)pathButtonClicked:(NSButton *)sender { 41 | 42 | NSOpenPanel *openPanel = [NSOpenPanel openPanel]; 43 | openPanel.canChooseDirectories = YES; 44 | openPanel.canChooseFiles = NO; 45 | openPanel.title = @"选择导出目录"; 46 | [openPanel beginSheetModalForWindow:self.view.window completionHandler:^(NSModalResponse result) { 47 | if (result == NSModalResponseOK) { 48 | self.pathField.stringValue = openPanel.URL.path; 49 | } 50 | }]; 51 | } 52 | 53 | - (IBAction)exportButtonClicked:(NSButton *)sender { 54 | 55 | NSImage *image = _imageView.image; 56 | NSString *platform = _platformBox.selectedCell.title; 57 | NSString *exportPath = _pathField.stringValue; 58 | 59 | if (!image || !platform || !exportPath) { 60 | NSAlert *alert = [[NSAlert alloc] init]; 61 | alert.messageText = @"请先选择源图片、平台和导出路径"; 62 | alert.alertStyle = NSAlertStyleWarning; 63 | [alert addButtonWithTitle:@"确认"]; 64 | [alert beginSheetModalForWindow:self.view.window completionHandler:^(NSModalResponse returnCode) {}]; 65 | } 66 | else { 67 | [[NSUserDefaults standardUserDefaults] setObject:platform forKey:selectedPlatformKey]; 68 | [[NSUserDefaults standardUserDefaults] synchronize]; 69 | [[NSUserDefaults standardUserDefaults] setObject:exportPath forKey:exportedPathKey]; 70 | [[NSUserDefaults standardUserDefaults] synchronize]; 71 | 72 | [self generateImagesForPlatform:platform fromOriginalImage:image]; 73 | } 74 | } 75 | 76 | 77 | #pragma mark - Private functions 78 | 79 | - (void)generateImagesForPlatform:(NSString *)platform fromOriginalImage:(NSImage *)originalImage { 80 | 81 | NSString *plistPath = [[NSBundle mainBundle] pathForResource:@"QiConfiguration" ofType:@"plist"]; 82 | NSDictionary *configuration = [NSDictionary dictionaryWithContentsOfFile:plistPath]; 83 | NSArray *items = configuration[platform]; 84 | 85 | NSString *directoryPath = [[_pathField.stringValue stringByAppendingPathComponent:platform] stringByReplacingPercentEscapesUsingEncoding:NSUTF8StringEncoding]; 86 | [[NSFileManager defaultManager] createDirectoryAtPath:directoryPath withIntermediateDirectories:YES attributes:nil error:nil]; 87 | 88 | if ([platform containsString:@"AppIcons"]) { 89 | [self generateAppIconsWithConfigurations:items fromOriginalImage:originalImage toDirectoryPath:directoryPath]; 90 | } 91 | else if ([platform containsString:@"LaunchImages"]) { 92 | [self generateLaunchImagesWithConfigurations:items fromOriginalImage:originalImage toDirectoryPath:directoryPath]; 93 | } 94 | } 95 | 96 | - (void)generateAppIconsWithConfigurations:(NSArray *)configurations fromOriginalImage:(NSImage *)originalImage toDirectoryPath:(NSString *)directoryPath { 97 | 98 | for (NSDictionary *configuration in configurations) { 99 | NSImage *appIcon = [self generateAppIconWithImage:originalImage forSize:NSSizeFromString(configuration[@"size"])]; 100 | NSString *filePath = [NSString stringWithFormat:@"%@/%@.png", directoryPath, configuration[@"name"]]; 101 | [self exportImage:appIcon toPath:filePath]; 102 | } 103 | [[NSWorkspace sharedWorkspace] openURL:[NSURL fileURLWithPath:directoryPath isDirectory:YES]]; 104 | } 105 | 106 | - (void)generateLaunchImagesWithConfigurations:(NSArray *)configurations fromOriginalImage:(NSImage *)originalImage toDirectoryPath:(NSString *)directoryPath { 107 | 108 | for (NSDictionary *configuration in configurations) { 109 | NSImage *launchImage = [self generateLaunchImageWithImage:originalImage forSize: NSSizeFromString(configuration[@"size"])]; 110 | 111 | NSString *filePath = [NSString stringWithFormat:@"%@/%@.png", directoryPath, configuration[@"name"]]; 112 | [self exportImage:launchImage toPath:filePath]; 113 | } 114 | [[NSWorkspace sharedWorkspace] openURL:[NSURL fileURLWithPath:directoryPath isDirectory:YES]]; 115 | } 116 | 117 | - (NSImage *)generateAppIconWithImage:(NSImage *)fromImage forSize:(CGSize)toSize { 118 | 119 | CGImageSourceRef source = CGImageSourceCreateWithData((__bridge CFDataRef)[fromImage TIFFRepresentation], NULL);// 把image转成cgImageSource 120 | CGImageRef imageRef = CGImageSourceCreateImageAtIndex(source, 0, NULL); // 将cgImageSource转成cgImageRef 121 | CGContextRef bitmapContext = CGBitmapContextCreate(NULL, toSize.width, toSize.height, CGImageGetBitsPerComponent(imageRef), CGImageGetBytesPerRow(imageRef), CGImageGetColorSpace(imageRef), kCGImageAlphaNoneSkipLast); // cgImageRef生成大小一致的cgContext,包含RBGX通道,去除alpha通道。 122 | CGContextDrawImage(bitmapContext, CGRectMake(.0, .0, toSize.width, toSize.height), imageRef); // 将cgImageRef写入cgContext 123 | CGImageRef decompressedImageRef = CGBitmapContextCreateImage(bitmapContext);//生成cgImage 124 | NSImage *finalImage = [[NSImage alloc] initWithCGImage:decompressedImageRef size:NSZeroSize];// 生成NSImage 125 | CGImageRelease(decompressedImageRef); 126 | CGContextRelease(bitmapContext); 127 | 128 | return finalImage; 129 | } 130 | 131 | - (NSImage *)generateLaunchImageWithImage:(NSImage *)fromImage forSize:(CGSize)toSize { 132 | 133 | // 计算目标小图去贴合源大图所需要放大的比例 134 | CGFloat wFactor = fromImage.size.width / toSize.width; 135 | CGFloat hFactor = fromImage.size.height / toSize.height; 136 | CGFloat toFactor = fminf(wFactor, hFactor); 137 | 138 | // 根据所需放大的比例,计算与目标小图同比例的源大图的剪切Rect 139 | CGFloat scaledWidth = toSize.width * toFactor; 140 | CGFloat scaledHeight = toSize.height * toFactor; 141 | CGFloat scaledOriginX = (fromImage.size.width - scaledWidth) / 2; 142 | CGFloat scaledOriginY = (fromImage.size.height - scaledHeight) / 2; 143 | NSRect fromRect = NSMakeRect(scaledOriginX, scaledOriginY, scaledWidth, scaledHeight); 144 | 145 | // 生成即将绘制的目标图和目标Rect 146 | NSRect toRect = NSMakeRect(.0, .0, toSize.width, toSize.height); 147 | toRect = [[NSScreen mainScreen] convertRectFromBacking:toRect]; 148 | NSImage *toImage = [[NSImage alloc] initWithSize:toRect.size]; 149 | 150 | // 先转成对应rect,再绘制 151 | [toImage lockFocus]; 152 | [fromImage drawInRect:toRect fromRect:fromRect operation:NSCompositeCopy fraction:1.0]; 153 | [toImage unlockFocus]; 154 | 155 | // 去alpha处理: 156 | CGImageSourceRef source = CGImageSourceCreateWithData((__bridge CFDataRef)[toImage TIFFRepresentation], NULL); 157 | CGImageRef imageRef = CGImageSourceCreateImageAtIndex(source, 0, NULL); 158 | CGContextRef bitmapContext = CGBitmapContextCreate(NULL, toSize.width, toSize.height, CGImageGetBitsPerComponent(imageRef), CGImageGetBytesPerRow(imageRef), CGImageGetColorSpace(imageRef), kCGImageAlphaNoneSkipLast); 159 | CGContextDrawImage(bitmapContext, CGRectMake(.0, .0, toSize.width, toSize.height), imageRef); 160 | CGImageRef decompressedImageRef = CGBitmapContextCreateImage(bitmapContext); 161 | NSImage *finalImage = [[NSImage alloc] initWithCGImage:decompressedImageRef size:NSZeroSize]; 162 | CGImageRelease(decompressedImageRef); 163 | CGContextRelease(bitmapContext); 164 | 165 | return finalImage; 166 | } 167 | 168 | - (void)exportImage:(NSImage *)image toPath:(NSString *)path { 169 | 170 | NSData *imageData = image.TIFFRepresentation; 171 | NSData *exportData = [[NSBitmapImageRep imageRepWithData:imageData] representationUsingType:NSPNGFileType properties:@{}]; 172 | 173 | [exportData writeToFile:path atomically:YES]; 174 | } 175 | 176 | @end 177 | -------------------------------------------------------------------------------- /QiAppIconGenerator/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // QiAppIconGenerator 4 | // 5 | // Created by huangxianshuai on 2019/3/19. 6 | // Copyright © 2019年 QiShare. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | int main(int argc, const char * argv[]) { 12 | return NSApplicationMain(argc, argv); 13 | } 14 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # QiAppIconGenerator 2 | 3 | 使用原图生成各尺寸的图片,支持以下平台 4 | 5 | 1. iPhone AppIcons 6 | 2. iPhone LaunchImage Portrait 7 | 3. iPhone LaunchImages Landscape 8 | 4. iPad AppIcons 9 | 5. iPad LaunchImages Portrait 10 | 6. iPad LaunchImages Landscape 11 | 7. Mac AppIcons 12 | 8. Watch AppIcons 13 | 9. CarPlay AppIcons 14 | 10. Android AppIcons 15 | 11. Android LaunchImages Portrait 16 | 12. Android LaunchImages Landscape 17 | 18 | 19 | # 使用演示 20 | 21 | 22 | ![01](/Source/QiAppIconGenerator_01.gif) 23 | -------------------------------------------------------------------------------- /Source/QiAppIconGenerator_01.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hxsxyz/QiAppIconGenerator/05e9846faac65916b758611fcf02d78f57273bae/Source/QiAppIconGenerator_01.gif --------------------------------------------------------------------------------