Latest 1.3.0
Homepage https://github.com/Meniny/InfoPlist
License MIT
Platforms ios 8.0, osx 10.9, tvos 9.0, watchos 2.0
Authors

Introduction

InfoPlist is an Info.plist assistant for Cocoa/Cocoa Touch.

Requirements

  • iOS 8.0+
  • watchOS 2.0+
  • tvOS 9.0+
  • macOS 10.10+
  • Xcode 9 with Swift 4

Installation

CocoaPods

use_frameworks!
pod 'InfoPlist'

Usage

import InfoPlist
let infoDictionary = InfoPlist.dictionary // [String: Any]?

_ = InfoPlist.getStringValue(forKey: "CFBundleDisplayName") // String?
_ = InfoPlist.getStringValue(forKey: "CFBundleVersion") // String
_ = InfoPlist.getBool(forKey: "UIStatusBarHidden") // Bool

_ = InfoPlist.isStatusBarHidden // Bool
_ = InfoPlist.iTunesFileSharingEnabled // Bool
_ = InfoPlist.cameraUsageDescription // String?

Latest podspec

{
    "name": "InfoPlist",
    "version": "1.3.0",
    "summary": "A Info.plist assistant for Cocoa/Cocoa Touch.",
    "homepage": "https://github.com/Meniny/InfoPlist",
    "license": "MIT",
    "authors": {
        "Meniny": "[email protected]"
    },
    "source": {
        "git": "https://github.com/Meniny/InfoPlist.git",
        "tag": "1.3.0"
    },
    "social_media_url": "https://meniny.cn/",
    "platforms": {
        "ios": "8.0",
        "osx": "10.9",
        "tvos": "9.0",
        "watchos": "2.0"
    },
    "pod_target_xcconfig": {
        "SWIFT_VERSION": "5"
    },
    "swift_versions": "5",
    "source_files": "InfoPlist/**/*",
    "public_header_files": "InfoPlist/**/*.h",
    "ios": {
        "frameworks": [
            "Foundation",
            "UIKit"
        ]
    },
    "osx": {
        "frameworks": "Cocoa"
    },
    "tvos": {
        "frameworks": "Foundation"
    },
    "watchos": {
        "frameworks": "Foundation"
    }
}

Pin It on Pinterest

Share This