Description
Hi folks, I am getting the following error while installing the pod to latest.
Installing IDZSwiftCommonCrypto (0.9.0)
[!] /bin/bash -c
set -e
touch prepare_command.txt
echo 'Running prepare_command'
echo 'Creating modulemaps in' pwd
echo Running GenerateCommonCryptoModule
TC="--toolchain com.apple.dt.toolchain.Swift_2_3"
SWIFT="xcrun $TC swift"
$SWIFT ./GenerateCommonCryptoModule.swift macosx .
$SWIFT ./GenerateCommonCryptoModule.swift iphonesimulator .
$SWIFT ./GenerateCommonCryptoModule.swift iphoneos .
$SWIFT ./GenerateCommonCryptoModule.swift appletvsimulator .
$SWIFT ./GenerateCommonCryptoModule.swift appletvos .
$SWIFT ./GenerateCommonCryptoModule.swift watchsimulator .
$SWIFT ./GenerateCommonCryptoModule.swift watchos .
Running prepare_command
Creating modulemaps in /Users/shashantdahikar/Library/Caches/CocoaPods/Pods/Release/IDZSwiftCommonCrypto/0.9.0-60f14
Running GenerateCommonCryptoModule
./GenerateCommonCryptoModule.swift:33:24: error: expected member name following '.'
return FileManager.default.fileExists(atPath: filePath)
^
./GenerateCommonCryptoModule.swift:33:24: error: 'default' label can only appear inside a 'switch' statement
return FileManager.default.fileExists(atPath: filePath)
^
./GenerateCommonCryptoModule.swift:62:5: error: enum 'case' is not allowed outside of an enum
case iOS = "iphoneos",
^
./GenerateCommonCryptoModule.swift:69:12: error: static properties may only be declared on a type
static let all = [iOS, iOSSimulator, watchOS, watchSimulator, tvOS, tvOSSimulator, MacOSX]
~~~~~~~^
./GenerateCommonCryptoModule.swift:61:18: error: braced block of statements is an unused closure
enum SDK: String {
^
./GenerateCommonCryptoModule.swift:127:1: error: expected '}' at end of brace statement
^
./GenerateCommonCryptoModule.swift:32:43: note: to match this opening '{'
func fileExists(filePath: String) -> Bool {
^
./GenerateCommonCryptoModule.swift:17:22: error: use of unresolved identifier 'Pipe'
let outputPipe = Pipe()
^~~~
./GenerateCommonCryptoModule.swift:18:16: error: 'Process' cannot be constructed because it has no accessible initializers
let task = Process()
^
./GenerateCommonCryptoModule.swift:69:23: error: use of unresolved identifier 'iOS'
static let all = [iOS, iOSSimulator, watchOS, watchSimulator, tvOS, tvOSSimulator, MacOSX]
^~~
./GenerateCommonCryptoModule.swift:69:28: error: use of unresolved identifier 'iOSSimulator'
static let all = [iOS, iOSSimulator, watchOS, watchSimulator, tvOS, tvOSSimulator, MacOSX]
^~~~~~~~~~~~
./GenerateCommonCryptoModule.swift:69:42: error: use of unresolved identifier 'watchOS'
static let all = [iOS, iOSSimulator, watchOS, watchSimulator, tvOS, tvOSSimulator, MacOSX]
^~~~~~~
./GenerateCommonCryptoModule.swift:69:51: error: use of unresolved identifier 'watchSimulator'
static let all = [iOS, iOSSimulator, watchOS, watchSimulator, tvOS, tvOSSimulator, MacOSX]
^~~~~~~~~~~~~~
./GenerateCommonCryptoModule.swift:69:67: error: use of unresolved identifier 'tvOS'
static let all = [iOS, iOSSimulator, watchOS, watchSimulator, tvOS, tvOSSimulator, MacOSX]
^~~~
./GenerateCommonCryptoModule.swift:69:73: error: use of unresolved identifier 'tvOSSimulator'
static let all = [iOS, iOSSimulator, watchOS, watchSimulator, tvOS, tvOSSimulator, MacOSX]
^~~~~~~~~~~~~
./GenerateCommonCryptoModule.swift:69:88: error: use of unresolved identifier 'MacOSX'
static let all = [iOS, iOSSimulator, watchOS, watchSimulator, tvOS, tvOSSimulator, MacOSX]
^~~~~~
./GenerateCommonCryptoModule.swift:61:18: error: expression resolves to an unused function
enum SDK: String {
^
./GenerateCommonCryptoModule.swift:73:17: error: use of unresolved identifier 'SDK'
guard let sdk = SDK(rawValue: CommandLine.arguments[1])?.rawValue else { reportError(message: "SDK must be one of (SDK.all.map { $0.rawValue })") }
^~~
./GenerateCommonCryptoModule.swift:73:31: error: use of unresolved identifier 'CommandLine'
guard let sdk = SDK(rawValue: CommandLine.arguments[1])?.rawValue else { reportError(message: "SDK must be one of (SDK.all.map { $0.rawValue })") }
^~~~~~~~~~~
./GenerateCommonCryptoModule.swift:73:74: error: use of unresolved identifier 'reportError'
guard let sdk = SDK(rawValue: CommandLine.arguments[1])?.rawValue else { reportError(message: "SDK must be one of (SDK.all.map { $0.rawValue })") }
^~~~~~~~~~~
./GenerateCommonCryptoModule.swift:73:117: error: use of unresolved identifier 'SDK'
guard let sdk = SDK(rawValue: CommandLine.arguments[1])?.rawValue else { reportError(message: "SDK must be one of (SDK.all.map { $0.rawValue })") }
^~~
./GenerateCommonCryptoModule.swift:74:24: error: use of unresolved identifier 'trim'
guard let sdkVersion = trim(runShellCommand(command: "/usr/bin/xcrun --sdk (sdk) --show-sdk-version")) else {
^~~~
./GenerateCommonCryptoModule.swift:75:5: error: use of unresolved identifier 'reportError'
reportError(message: "ERROR: Failed to determine SDK version for (sdk)")
^~~~~~~~~~~
./GenerateCommonCryptoModule.swift:77:21: error: use of unresolved identifier 'trim'
guard let sdkPath = trim(runShellCommand(command: "/usr/bin/xcrun --sdk (sdk) --show-sdk-path")) else {
^~~~
./GenerateCommonCryptoModule.swift:78:5: error: use of unresolved identifier 'reportError'
reportError(message: "ERROR: Failed to determine SDK path for (sdk)")
^~~~~~~~~~~
./GenerateCommonCryptoModule.swift:89:4: error: use of unresolved identifier 'CommandLine'
if CommandLine.arguments.count > 2 {
^~~~~~~~~~~
./GenerateCommonCryptoModule.swift:90:27: error: use of unresolved identifier 'CommandLine'
moduleDirectory = "(CommandLine.arguments[2])/Frameworks/(sdk)/CommonCrypto.framework"
^~~~~~~~~~~
./GenerateCommonCryptoModule.swift:97:18: error: extraneous argument label 'filePath:' in call
if fileExists(filePath: moduleDirectory) {
^~~~~~~~~~~
./GenerateCommonCryptoModule.swift:98:9: error: use of unresolved identifier 'reportError'
reportError(message: "Module directory already exists at (moduleDirectory).")
^~~~~~~~~~~
./GenerateCommonCryptoModule.swift:102:10: error: missing argument for parameter #2 in call
if !mkdir(path: moduleDirectory) {
^
./GenerateCommonCryptoModule.swift:103:5: error: use of unresolved identifier 'reportError'
reportError(message: "Failed to create module directory (moduleDirectory)")
^~~~~~~~~~~
./GenerateCommonCryptoModule.swift:124:5: error: use of unresolved identifier 'reportError'
reportError(message: "Failed to write module map file to (moduleMapPath)")
^~~~~~~~~~~
** Xcode 8.0, cocoapods 1.1.0.rc.2, minumum deployment target 9.3.