SwiftCov icon indicating copy to clipboard operation
SwiftCov copied to clipboard

Unable to install

Open ketandaffodil opened this issue 10 years ago • 6 comments

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

ketandaffodil avatar Aug 28 '15 10:08 ketandaffodil

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 avatar Sep 17 '15 08:09 ghost

I opened a related issue at bignerdranch/Result.

ghost avatar Sep 17 '15 08:09 ghost

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

kaibadash avatar Jan 07 '16 10:01 kaibadash

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.

kaibadash avatar Jan 07 '16 10:01 kaibadash

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

freesuraj avatar Jan 28 '16 15:01 freesuraj

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.

jpsim avatar Jan 28 '16 20:01 jpsim