realm / SwiftCov

A tool to generate test code coverage information for Swift.
MIT License
561 stars 41 forks source link

Unable to install #61

Open ketandaffodil opened 9 years ago

ketandaffodil commented 9 years ago

Hello,

We tried installing swiftCov by following ways :

  1. Clone swiftCov
  2. Make Install

when we do "make install" we are getting following errors:

CompileSwift normal x86_64 /Users/rahulgoel/Desktop/Swift_Cov/SwiftCov/Carthage/Checkouts/Box/Box/Box.swift CompileSwift normal x86_64 /Users/rahulgoel/Desktop/Swift_Cov/SwiftCov/Carthage/Checkouts/Box/Box/BoxType.swift CompileSwift normal x86_64 /Users/rahulgoel/Desktop/Swift_Cov/SwiftCov/Carthage/Checkouts/Box/Box/MutableBox.swift CompileSwiftSources normal x86_64 com.apple.xcode.tools.swift.compiler

Also, we have already installed homebrew and carthage.

Can you please help us installing this.

Thanks.

Cheers, Ketan

ghost commented 9 years ago

The exact problem seems to be that with Swift 2 some interfaces changed:

public final class MutableBox<T>: MutableBoxType, Printable {
                                                  ^~~~~~~~~
                                                  CustomStringConvertible
/Users/xxx/Development/SwiftCov/Carthage/Checkouts/Box/Box/MutableBox.swift:25:10: error: 'toString' has been renamed to 'String'
                return toString(value)
                       ^~~~~~~~
                       String
Swift.toString:1:33: note: 'toString' has been explicitly marked unavailable here
@available(*, unavailable) func toString<T>(x: T) -> String
ghost commented 9 years ago

I opened a related issue at bignerdranch/Result.

kaibadash commented 8 years ago

Xcode 7 support is on investigating. https://twitter.com/k_katsumi/status/642393408040886273

kaibadash commented 8 years ago

Xcode7 supports Code coverage. https://developer.apple.com/library/ios/documentation/DeveloperTools/Conceptual/WhatsNewXcode/Articles/xcode_7_0.html Maybe we use prefer this to SwiftCov.

freesuraj commented 8 years ago

Unable to install.. message as follows..

** INSTALL FAILED **

The following build commands failed:
    CompileSwift normal x86_64 /Users/surajpathak/Projects/External/SwiftCov/Carthage/Checkouts/Box/Box/Box.swift
    CompileSwift normal x86_64 /Users/surajpathak/Projects/External/SwiftCov/Carthage/Checkouts/Box/Box/MutableBox.swift
    CompileSwiftSources normal x86_64 com.apple.xcode.tools.swift.compiler
(3 failures)
make: *** [installables] Error 65
jpsim commented 8 years ago

SwiftCov hasn't been maintained in a little while, mostly since Swift 2.0 has native support for test coverage generation. However, I took a bit of time to fix compilation failures with Xcode 7.2 just for fun (#63), but we'll probably be sunsetting this tool soon.