Swift: unwrap pkg.installed