Rainbows icon indicating copy to clipboard operation
Rainbows copied to clipboard

Added Cocoapods support

Open mRs- opened this issue 7 years ago • 3 comments

  • Currently not tested in production

mRs- avatar Jul 02 '17 19:07 mRs-

Thanks Marius!

Unfortunately when running $ pod spec lint I get this:

 -> Rainbows (1.0.0)
    - ERROR | [iOS] xcodebuild: Returned an unsuccessful exit code. You can use `--verbose` for more information.
    - ERROR | [iOS] xcodebuild:  Rainbows/Rainbows/GradientLayer.swift:17:29: error: use of undeclared type 'CAMetalLayer'
    - ERROR | [iOS] xcodebuild:  Rainbows/Rainbows/GradientLayer.swift:37:25: error: property does not override any property from its superclass
    - ERROR | [iOS] xcodebuild:  Rainbows/Rainbows/GradientLayer.swift:43:33: error: use of undeclared type 'MTLDevice'
    - ERROR | [iOS] xcodebuild:  Rainbows/Rainbows/GradientLayer.swift:43:25: error: property does not override any property from its superclass
    - ERROR | [iOS] xcodebuild:  Rainbows/Rainbows/GradientLayer.swift:55:21: error: initializer does not override a designated initializer from its superclass
    - ERROR | [iOS] xcodebuild:  Rainbows/Rainbows/GradientLayer.swift:65:26: error: method does not override any method from its superclass
    - ERROR | [iOS] xcodebuild:  Rainbows/Rainbows/GradientLayer.swift:86:26: error: method does not override any method from its superclass
    - ERROR | [iOS] xcodebuild:  Rainbows/Rainbows/GradientLayer.swift:26:13: error: value of type 'GradientLayer' has no member 'setNeedsDisplay'
    - ERROR | [iOS] xcodebuild:  Rainbows/Rainbows/GradientLayer.swift:33:13: error: value of type 'GradientLayer' has no member 'setNeedsDisplay'
    - ERROR | [iOS] xcodebuild:  Rainbows/Rainbows/GradientLayer.swift:39:13: error: value of type 'GradientLayer' has no member 'setNeedsDisplay'
    - ERROR | [iOS] xcodebuild:  Rainbows/Rainbows/GradientLayer.swift:56:9: error: 'super' members cannot be referenced in a root class
    - ERROR | [iOS] xcodebuild:  Rainbows/Rainbows/GradientLayer.swift:62:9: error: 'super' members cannot be referenced in a root class
    - ERROR | [iOS] xcodebuild:  Rainbows/Rainbows/GradientLayer.swift:66:9: error: 'super' members cannot be referenced in a root class
    - ERROR | [iOS] xcodebuild:  Rainbows/Rainbows/GradientLayer.swift:72:28: error: use of unresolved identifier 'MTLCreateSystemDefaultDevice'
    - ERROR | [iOS] xcodebuild:  Rainbows/Rainbows/GradientLayer.swift:77:13: error: value of type 'GradientLayer' has no member 'backgroundColor'
    - ERROR | [iOS] xcodebuild:  Rainbows/Rainbows/GradientLayer.swift:82:9: error: value of type 'GradientLayer' has no member 'pixelFormat'
    - ERROR | [iOS] xcodebuild:  Rainbows/Rainbows/GradientLayer.swift:83:9: error: value of type 'GradientLayer' has no member 'framebufferOnly'
    - ERROR | [iOS] xcodebuild:  Rainbows/Rainbows/GradientLayer.swift:87:9: error: 'super' members cannot be referenced in a root class
    - ERROR | [iOS] xcodebuild:  Rainbows/Rainbows/GradientRenderer.swift:157:22: error: use of undeclared type 'CAMetalDrawable'
    - WARN  | [iOS] xcodebuild:  Rainbows/Rainbows/GradientView.swift:26:36: warning: cast from 'CALayer' to unrelated type 'GradientLayer' always fails
    - WARN  | [iOS] xcodebuild:  Rainbows/Rainbows/GradientView.swift:29:29: warning: cast from 'CALayer' to unrelated type 'GradientLayer' always fails
    - WARN  | [iOS] xcodebuild:  Rainbows/Rainbows/GradientView.swift:36:36: warning: cast from 'CALayer' to unrelated type 'GradientLayer' always fails
    - WARN  | [iOS] xcodebuild:  Rainbows/Rainbows/GradientView.swift:39:29: warning: cast from 'CALayer' to unrelated type 'GradientLayer' always fails

Analyzed 1 podspec.

regexident avatar Jul 03 '17 08:07 regexident

Yeah it's a problem with the simulator. I will add a post install script to get this running. Maybe the CocoaPods God is happy then ^^

mRs- avatar Jul 03 '17 08:07 mRs-

Related issues on CocoaPods: #3995, #5356, #5071

regexident avatar Jul 12 '17 13:07 regexident