                 // Get the Contents.json for the current platform...
                 var jsonFile = ContentsJSON(forType: AssetType.AppIcon, andPlatforms: [platform])
                 // ...and save it to the given file url.
-                try! jsonFile.saveToURL(setURL)
+                try jsonFile.saveToURL(setURL)
             }
             
             // Create the necessary folders.
-            try! NSFileManager.defaultManager().createDirectoryAtURL(setURL, withIntermediateDirectories: true, attributes: nil)
+            try NSFileManager.defaultManager().createDirectoryAtURL(setURL, withIntermediateDirectories: true, attributes: nil)
             
             // Loop through the images of the current platform.
             for image in images {

        // Define where to save the asset catalog.
        var setURL = url.URLByAppendingPathComponent("\(appIconDirectory)/Combined/AppIcon.appiconset", isDirectory: true)
        
        // Handle the Contents.json for all platforms at once.
        if combined {
            // Get the Contents.json for all selected platforms...
            var jsonFile = ContentsJSON(forType: AssetType.AppIcon, andPlatforms: self.images.keys.array)
            // ...and save it to the given file url.
            try! jsonFile.saveToURL(setURL)
        }
        
        // Loop through the selected platforms.
        for (platform, images) in self.images {
            // Override the setURL in case we don't generate a combined asset.

            }
        }
        
        // Handle the Contents.json for all platforms at once.
        if combined {
            // Get the Contents.json for all selected platforms...
            var jsonFile = ContentsJSON(forType: AssetType.AppIcon, andPlatforms: self.images.keys.array)
            // ...and save it to the given file url.
            try jsonFile.saveToURL(setURL)
        }
        
        // Reset the images array
        self.images = [:]
    }
