Git Product home page Git Product logo

xcode-coveralls's Introduction

xcode-coveralls

Build Status Coverage Status Issues Status License Contact
Donate-Patreon Donate-Gratipay Donate-Paypal

About

xcode-coveralls is a command line helper tool to upload code coverage data from Xcode projects to coveralls.io.

Table of Contents

  1. Usage
  2. Project Configuration
  3. Command Options
  4. Installing
  5. License
  6. Repository Infos

Usage

The xcode-coveralls command needs to be invoked from your repository/project root directory.
Note that if your Xcode project file is in a sub directory, you'll need to specify its path with the --project option.

If you don't use Travis CI, you may also specify a service name and job ID with the --service and --id options. Builds on Travis CI will automatically detect those values.
You may also use the --token option, if you're not using a service compatible with coveralls.io.

You may also include/exclude specific paths from your sources with the --include and --exclude options.
Those paths may be full paths or paths relative to the repository/project root directory.

The only mandatory argument is the Xcode build directory, containing the .gcda and .gcno files to process.
Please read the following section to learn how to generate those files with Xcode.

Project Configuration

In order to use xcode-coveralls, your Xcode targets needs to be configured to produce code coverage data files.

This can be done from a target's build settings.
Two options needs to be activated:

  • Generate Test Coverage Files (GCC_GENERATE_TEST_COVERAGE_FILES)
  • Instrument Program Flow (GCC_INSTRUMENT_PROGRAM_FLOW_ARCS)

Although the options are prefixed with GCC, they are completely compatible with Clang/LLVM.

Note that turning those options on will reduce the compilation time, so you might create a specific build configuration for this, and enable it for your unit tests only.

Build Directory

The xcode-coveralls command needs to be invoked with the Xcode build directory, usually in ~/Library/Developer/Xcode/DerivedData/.

The best way to get this directory is to add a Run Script phase in the target for which you want coverage reports:

export | egrep '(BUILT_PRODUCTS_DIR)|(CURRENT_ARCH)|(OBJECT_FILE_DIR_normal)|(SRCROOT)|(OBJROOT)' > xcenv.sh

This will create an xcenv.sh file with the necessary environment variables to find the Xcode build directory.
If using an version control system, you may ignore this specific file.

You may then use this variables in a shell script, in order to invoke xcode-coveralls:

#!/bin/bash

source xcenv.sh
declare -r DIR_BUILD="${OBJECT_FILE_DIR_normal}/${CURRENT_ARCH}/"
xcode-coveralls "${DIR_BUILD}"

Command Options

Usage: xcode-coveralls [OPTIONS] BUILD_DIRECTORY [BUILD_DIRECTORY ...]

Options:
    
    --help       Shows this help dialog
    --version    Prints the version number
    --verbose    Turns on extra logging
    --gcov       Path or command for invoking the gcov utility
                 (defaults to /usr/bin/gcov)
    --include    Paths to include from the sources
    --exclude    Paths to exclude from the sources
    --project    Path to the Xcode project file, if not at the directory root
    --service    The service name to use
                 (defaults to 'travis-ci')
    --id         The service job ID
                 (if not specified, defaults to the 'TRAVIS_JOB_ID' environment variable, or zero)
    --token      The repository token (optional)
    --dry-run    Do not actually send data to coveralls.io

Installing

Installing with Homebrew

xcode-coveralls may be installed with Homebrew:

brew install macmade/tap/xcode-coveralls

Manual installation

xcode-coveralls may be installed manually by cloning its GitHub repository and running xcodebuild or xctool.

The default location is /usr/local/bin.

Here's an example with xcodebuild:

git clone https://github.com/macmade/xcode-coveralls.git /tmp/xcode-coveralls
xcodebuild -project /tmp/xcode-coveralls/xcode-coveralls.xcodeproj -scheme xcode-coveralls DSTROOT=/ SYMROOT=build install

And here's an example with xctool:

git clone https://github.com/macmade/xcode-coveralls.git /tmp/xcode-coveralls
sudo xctool --project /tmp/xcode-coveralls/xcode-coveralls.xcodeproj --scheme xcode-coveralls DSTROOT=/ install

Note that you can use this on Travis builds (for instance in before_install) in order to get coverage reports for your project.

License

xcode-coveralls is released under the terms of the MIT License.

Repository Infos

Owner:			Jean-David Gadina - XS-Labs
Web:			www.xs-labs.com
Blog:			www.noxeos.com
Twitter:		@macmade
GitHub:			github.com/macmade
LinkedIn:		ch.linkedin.com/in/macmade/
StackOverflow:	stackoverflow.com/users/182676/macmade

xcode-coveralls's People

Contributors

macmade avatar ryancopley avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

xcode-coveralls's Issues

Uninitialized submodules

Following the current installation instructions, the SeriousCode submodule is never initialized.

$ git clone https://github.com/macmade/xcode-coveralls.git /tmp/xcode-coveralls
Cloning into '/tmp/xcode-coveralls'...
remote: Counting objects: 1087, done.
remote: Total 1087 (delta 0), reused 0 (delta 0), pack-reused 1087
Receiving objects: 100% (1087/1087), 3.76 MiB | 3.20 MiB/s, done.
Resolving deltas: 100% (594/594), done.

$ xcodebuild -project /tmp/xcode-coveralls/xcode-coveralls.xcodeproj -scheme xcode-coveralls DSTROOT=/ SYMROOT=build install
Build settings from command line:
    DSTROOT = /
    SYMROOT = build

=== BUILD TARGET XCC OF PROJECT xcode-coveralls WITH CONFIGURATION Release ===

Check dependencies


Write auxiliary files
write-file /Users/symboxtra/Library/Developer/Xcode/DerivedData/xcode-coveralls-cggamqhdbfytojgpznjrwbfokmlv/Build/Intermediates.noindex/ArchiveIntermediates/xcode-coveralls/IntermediateBuildFilesPath/xcode-coveralls.build/Release/XCC.build/Script-0552BFA11A6ED717007F1099.sh
chmod 0755 /Users/symboxtra/Library/Developer/Xcode/DerivedData/xcode-coveralls-cggamqhdbfytojgpznjrwbfokmlv/Build/Intermediates.noindex/ArchiveIntermediates/xcode-coveralls/IntermediateBuildFilesPath/xcode-coveralls.build/Release/XCC.build/Script-0552BFA11A6ED717007F1099.sh
write-file /Users/symboxtra/Library/Developer/Xcode/DerivedData/xcode-coveralls-cggamqhdbfytojgpznjrwbfokmlv/Build/Intermediates.noindex/ArchiveIntermediates/xcode-coveralls/IntermediateBuildFilesPath/xcode-coveralls.build/Release/XCC.build/XCC-all-target-headers.hmap
write-file /Users/symboxtra/Library/Developer/Xcode/DerivedData/xcode-coveralls-cggamqhdbfytojgpznjrwbfokmlv/Build/Intermediates.noindex/ArchiveIntermediates/xcode-coveralls/IntermediateBuildFilesPath/xcode-coveralls.build/Release/XCC.build/XCC-generated-files.hmap
write-file /Users/symboxtra/Library/Developer/Xcode/DerivedData/xcode-coveralls-cggamqhdbfytojgpznjrwbfokmlv/Build/Intermediates.noindex/ArchiveIntermediates/xcode-coveralls/IntermediateBuildFilesPath/xcode-coveralls.build/Release/XCC.build/XCC.hmap
write-file /Users/symboxtra/Library/Developer/Xcode/DerivedData/xcode-coveralls-cggamqhdbfytojgpznjrwbfokmlv/Build/Intermediates.noindex/ArchiveIntermediates/xcode-coveralls/IntermediateBuildFilesPath/xcode-coveralls.build/Release/XCC.build/XCC-own-target-headers.hmap
write-file /Users/symboxtra/Library/Developer/Xcode/DerivedData/xcode-coveralls-cggamqhdbfytojgpznjrwbfokmlv/Build/Intermediates.noindex/ArchiveIntermediates/xcode-coveralls/IntermediateBuildFilesPath/xcode-coveralls.build/Release/XCC.build/XCC-all-non-framework-target-headers.hmap
/bin/mkdir -p /Users/symboxtra/Library/Developer/Xcode/DerivedData/xcode-coveralls-cggamqhdbfytojgpznjrwbfokmlv/Build/Intermediates.noindex/ArchiveIntermediates/xcode-coveralls/IntermediateBuildFilesPath/xcode-coveralls.build/Release/XCC.build/Objects-normal/x86_64
write-file /Users/symboxtra/Library/Developer/Xcode/DerivedData/xcode-coveralls-cggamqhdbfytojgpznjrwbfokmlv/Build/Intermediates.noindex/ArchiveIntermediates/xcode-coveralls/IntermediateBuildFilesPath/xcode-coveralls.build/Release/XCC.build/Objects-normal/x86_64/XCC.LinkFileList
write-file /Users/symboxtra/Library/Developer/Xcode/DerivedData/xcode-coveralls-cggamqhdbfytojgpznjrwbfokmlv/Build/Intermediates.noindex/ArchiveIntermediates/xcode-coveralls/IntermediateBuildFilesPath/xcode-coveralls.build/Release/XCC.build/XCC-project-headers.hmap

SymLink build/Release/libXCC.a /usr/local/lib/libXCC.a
    cd /tmp/xcode-coveralls
    /bin/ln -sfh /usr/local/lib/libXCC.a /tmp/xcode-coveralls/build/Release/libXCC.a

CompileC /Users/symboxtra/Library/Developer/Xcode/DerivedData/xcode-coveralls-cggamqhdbfytojgpznjrwbfokmlv/Build/Intermediates.noindex/ArchiveIntermediates/xcode-coveralls/IntermediateBuildFilesPath/xcode-coveralls.build/Release/XCC.build/Objects-normal/x86_64/XCCGCovFileLine.o XCC/XCCGCovFileLine.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
    cd /tmp/xcode-coveralls
    export LANG=en_US.US-ASCII
    /tmp/xcode-coveralls/Scripts/ccache.sh -x objective-c -arch x86_64 -fmessage-length=120 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -fcolor-diagnostics -std=c99 -fobjc-arc -Wno-trigraphs -fpascal-strings -Os -fno-common -Werror -Werror=incompatible-pointer-types -Werror=implicit-function-declaration -Wmissing-field-initializers -Wmissing-prototypes -Werror=return-type -Wdocumentation -Wunreachable-code -Wimplicit-atomic-properties -Werror=deprecated-objc-isa-usage -Werror=objc-root-class -Warc-repeated-use-of-weak -Wno-arc-maybe-repeated-use-of-weak -Wexplicit-ownership-type -Wimplicit-retain-self -Wduplicate-method-match -Wmissing-braces -Wparentheses -Wswitch -Wunused-function -Wunused-label -Wunused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wconditional-uninitialized -Wunknown-pragmas -pedantic -Wshadow -Wfour-char-constants -Wconversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Werror=float-conversion -Werror=non-literal-null-conversion -Werror=objc-literal-conversion -Wassign-enum -Wsign-compare -Wshorten-64-to-32 -Wpointer-sign -Wnewline-eof -Wno-selector -Wstrict-selector-match -Wundeclared-selector -Wdeprecated-implementations -DNS_BLOCK_ASSERTIONS=1 -DOBJC_OLD_DISPATCH_PROTOTYPES=0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -mmacosx-version-min=10.8 -g -Wsign-conversion -Winfinite-recursion -Werror=comma -Werror=block-capture-autoreleasing -Werror=strict-prototypes -Wunguarded-availability -iquote /Users/symboxtra/Library/Developer/Xcode/DerivedData/xcode-coveralls-cggamqhdbfytojgpznjrwbfokmlv/Build/Intermediates.noindex/ArchiveIntermediates/xcode-coveralls/IntermediateBuildFilesPath/xcode-coveralls.build/Release/XCC.build/XCC-generated-files.hmap -I/Users/symboxtra/Library/Developer/Xcode/DerivedData/xcode-coveralls-cggamqhdbfytojgpznjrwbfokmlv/Build/Intermediates.noindex/ArchiveIntermediates/xcode-coveralls/IntermediateBuildFilesPath/xcode-coveralls.build/Release/XCC.build/XCC-own-target-headers.hmap -I/Users/symboxtra/Library/Developer/Xcode/DerivedData/xcode-coveralls-cggamqhdbfytojgpznjrwbfokmlv/Build/Intermediates.noindex/ArchiveIntermediates/xcode-coveralls/IntermediateBuildFilesPath/xcode-coveralls.build/Release/XCC.build/XCC-all-target-headers.hmap -iquote /Users/symboxtra/Library/Developer/Xcode/DerivedData/xcode-coveralls-cggamqhdbfytojgpznjrwbfokmlv/Build/Intermediates.noindex/ArchiveIntermediates/xcode-coveralls/IntermediateBuildFilesPath/xcode-coveralls.build/Release/XCC.build/XCC-project-headers.hmap -iquoteLibraries/libgit2/include -I/tmp/xcode-coveralls/build/Release/include -ISubmodules/SeriousCode -I/Users/symboxtra/Library/Developer/Xcode/DerivedData/xcode-coveralls-cggamqhdbfytojgpznjrwbfokmlv/Build/Intermediates.noindex/ArchiveIntermediates/xcode-coveralls/IntermediateBuildFilesPath/xcode-coveralls.build/Release/XCC.build/DerivedSources/x86_64 -I/Users/symboxtra/Library/Developer/Xcode/DerivedData/xcode-coveralls-cggamqhdbfytojgpznjrwbfokmlv/Build/Intermediates.noindex/ArchiveIntermediates/xcode-coveralls/IntermediateBuildFilesPath/xcode-coveralls.build/Release/XCC.build/DerivedSources -F/tmp/xcode-coveralls/build/Release -MMD -MT dependencies -MF /Users/symboxtra/Library/Developer/Xcode/DerivedData/xcode-coveralls-cggamqhdbfytojgpznjrwbfokmlv/Build/Intermediates.noindex/ArchiveIntermediates/xcode-coveralls/IntermediateBuildFilesPath/xcode-coveralls.build/Release/XCC.build/Objects-normal/x86_64/XCCGCovFileLine.d --serialize-diagnostics /Users/symboxtra/Library/Developer/Xcode/DerivedData/xcode-coveralls-cggamqhdbfytojgpznjrwbfokmlv/Build/Intermediates.noindex/ArchiveIntermediates/xcode-coveralls/IntermediateBuildFilesPath/xcode-coveralls.build/Release/XCC.build/Objects-normal/x86_64/XCCGCovFileLine.dia -c /tmp/xcode-coveralls/XCC/XCCGCovFileLine.m -o /Users/symboxtra/Library/Developer/Xcode/DerivedData/xcode-coveralls-cggamqhdbfytojgpznjrwbfokmlv/Build/Intermediates.noindex/ArchiveIntermediates/xcode-coveralls/IntermediateBuildFilesPath/xcode-coveralls.build/Release/XCC.build/Objects-normal/x86_64/XCCGCovFileLine.o
In file included from /tmp/xcode-coveralls/XCC/XCCGCovFileLine.m:25:
/tmp/xcode-coveralls/XCC/XCCGCovFileLine.h:26:9: fatal error: 'clang-warnings.h' file not found
#import <clang-warnings.h>
        ^~~~~~~~~~~~~~~~~~
1 error generated.

CompileC /Users/symboxtra/Library/Developer/Xcode/DerivedData/xcode-coveralls-cggamqhdbfytojgpznjrwbfokmlv/Build/Intermediates.noindex/ArchiveIntermediates/xcode-coveralls/IntermediateBuildFilesPath/xcode-coveralls.build/Release/XCC.build/Objects-normal/x86_64/XCCArguments.o XCC/XCCArguments.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
    cd /tmp/xcode-coveralls
    export LANG=en_US.US-ASCII
    /tmp/xcode-coveralls/Scripts/ccache.sh -x objective-c -arch x86_64 -fmessage-length=120 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -fcolor-diagnostics -std=c99 -fobjc-arc -Wno-trigraphs -fpascal-strings -Os -fno-common -Werror -Werror=incompatible-pointer-types -Werror=implicit-function-declaration -Wmissing-field-initializers -Wmissing-prototypes -Werror=return-type -Wdocumentation -Wunreachable-code -Wimplicit-atomic-properties -Werror=deprecated-objc-isa-usage -Werror=objc-root-class -Warc-repeated-use-of-weak -Wno-arc-maybe-repeated-use-of-weak -Wexplicit-ownership-type -Wimplicit-retain-self -Wduplicate-method-match -Wmissing-braces -Wparentheses -Wswitch -Wunused-function -Wunused-label -Wunused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wconditional-uninitialized -Wunknown-pragmas -pedantic -Wshadow -Wfour-char-constants -Wconversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Werror=float-conversion -Werror=non-literal-null-conversion -Werror=objc-literal-conversion -Wassign-enum -Wsign-compare -Wshorten-64-to-32 -Wpointer-sign -Wnewline-eof -Wno-selector -Wstrict-selector-match -Wundeclared-selector -Wdeprecated-implementations -DNS_BLOCK_ASSERTIONS=1 -DOBJC_OLD_DISPATCH_PROTOTYPES=0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -mmacosx-version-min=10.8 -g -Wsign-conversion -Winfinite-recursion -Werror=comma -Werror=block-capture-autoreleasing -Werror=strict-prototypes -Wunguarded-availability -iquote /Users/symboxtra/Library/Developer/Xcode/DerivedData/xcode-coveralls-cggamqhdbfytojgpznjrwbfokmlv/Build/Intermediates.noindex/ArchiveIntermediates/xcode-coveralls/IntermediateBuildFilesPath/xcode-coveralls.build/Release/XCC.build/XCC-generated-files.hmap -I/Users/symboxtra/Library/Developer/Xcode/DerivedData/xcode-coveralls-cggamqhdbfytojgpznjrwbfokmlv/Build/Intermediates.noindex/ArchiveIntermediates/xcode-coveralls/IntermediateBuildFilesPath/xcode-coveralls.build/Release/XCC.build/XCC-own-target-headers.hmap -I/Users/symboxtra/Library/Developer/Xcode/DerivedData/xcode-coveralls-cggamqhdbfytojgpznjrwbfokmlv/Build/Intermediates.noindex/ArchiveIntermediates/xcode-coveralls/IntermediateBuildFilesPath/xcode-coveralls.build/Release/XCC.build/XCC-all-target-headers.hmap -iquote /Users/symboxtra/Library/Developer/Xcode/DerivedData/xcode-coveralls-cggamqhdbfytojgpznjrwbfokmlv/Build/Intermediates.noindex/ArchiveIntermediates/xcode-coveralls/IntermediateBuildFilesPath/xcode-coveralls.build/Release/XCC.build/XCC-project-headers.hmap -iquoteLibraries/libgit2/include -I/tmp/xcode-coveralls/build/Release/include -ISubmodules/SeriousCode -I/Users/symboxtra/Library/Developer/Xcode/DerivedData/xcode-coveralls-cggamqhdbfytojgpznjrwbfokmlv/Build/Intermediates.noindex/ArchiveIntermediates/xcode-coveralls/IntermediateBuildFilesPath/xcode-coveralls.build/Release/XCC.build/DerivedSources/x86_64 -I/Users/symboxtra/Library/Developer/Xcode/DerivedData/xcode-coveralls-cggamqhdbfytojgpznjrwbfokmlv/Build/Intermediates.noindex/ArchiveIntermediates/xcode-coveralls/IntermediateBuildFilesPath/xcode-coveralls.build/Release/XCC.build/DerivedSources -F/tmp/xcode-coveralls/build/Release -MMD -MT dependencies -MF /Users/symboxtra/Library/Developer/Xcode/DerivedData/xcode-coveralls-cggamqhdbfytojgpznjrwbfokmlv/Build/Intermediates.noindex/ArchiveIntermediates/xcode-coveralls/IntermediateBuildFilesPath/xcode-coveralls.build/Release/XCC.build/Objects-normal/x86_64/XCCArguments.d --serialize-diagnostics /Users/symboxtra/Library/Developer/Xcode/DerivedData/xcode-coveralls-cggamqhdbfytojgpznjrwbfokmlv/Build/Intermediates.noindex/ArchiveIntermediates/xcode-coveralls/IntermediateBuildFilesPath/xcode-coveralls.build/Release/XCC.build/Objects-normal/x86_64/XCCArguments.dia -c /tmp/xcode-coveralls/XCC/XCCArguments.m -o /Users/symboxtra/Library/Developer/Xcode/DerivedData/xcode-coveralls-cggamqhdbfytojgpznjrwbfokmlv/Build/Intermediates.noindex/ArchiveIntermediates/xcode-coveralls/IntermediateBuildFilesPath/xcode-coveralls.build/Release/XCC.build/Objects-normal/x86_64/XCCArguments.o
In file included from /tmp/xcode-coveralls/XCC/XCCArguments.m:25:
/tmp/xcode-coveralls/XCC/XCCArguments.h:26:9: fatal error: 'clang-warnings.h' file not found
#import <clang-warnings.h>
        ^~~~~~~~~~~~~~~~~~
1 error generated.

CompileC /Users/symboxtra/Library/Developer/Xcode/DerivedData/xcode-coveralls-cggamqhdbfytojgpznjrwbfokmlv/Build/Intermediates.noindex/ArchiveIntermediates/xcode-coveralls/IntermediateBuildFilesPath/xcode-coveralls.build/Release/XCC.build/Objects-normal/x86_64/XCCCoverallsRequest.o XCC/XCCCoverallsRequest.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
    cd /tmp/xcode-coveralls
    export LANG=en_US.US-ASCII
    /tmp/xcode-coveralls/Scripts/ccache.sh -x objective-c -arch x86_64 -fmessage-length=120 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -fcolor-diagnostics -std=c99 -fobjc-arc -Wno-trigraphs -fpascal-strings -Os -fno-common -Werror -Werror=incompatible-pointer-types -Werror=implicit-function-declaration -Wmissing-field-initializers -Wmissing-prototypes -Werror=return-type -Wdocumentation -Wunreachable-code -Wimplicit-atomic-properties -Werror=deprecated-objc-isa-usage -Werror=objc-root-class -Warc-repeated-use-of-weak -Wno-arc-maybe-repeated-use-of-weak -Wexplicit-ownership-type -Wimplicit-retain-self -Wduplicate-method-match -Wmissing-braces -Wparentheses -Wswitch -Wunused-function -Wunused-label -Wunused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wconditional-uninitialized -Wunknown-pragmas -pedantic -Wshadow -Wfour-char-constants -Wconversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Werror=float-conversion -Werror=non-literal-null-conversion -Werror=objc-literal-conversion -Wassign-enum -Wsign-compare -Wshorten-64-to-32 -Wpointer-sign -Wnewline-eof -Wno-selector -Wstrict-selector-match -Wundeclared-selector -Wdeprecated-implementations -DNS_BLOCK_ASSERTIONS=1 -DOBJC_OLD_DISPATCH_PROTOTYPES=0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -mmacosx-version-min=10.8 -g -Wsign-conversion -Winfinite-recursion -Werror=comma -Werror=block-capture-autoreleasing -Werror=strict-prototypes -Wunguarded-availability -iquote /Users/symboxtra/Library/Developer/Xcode/DerivedData/xcode-coveralls-cggamqhdbfytojgpznjrwbfokmlv/Build/Intermediates.noindex/ArchiveIntermediates/xcode-coveralls/IntermediateBuildFilesPath/xcode-coveralls.build/Release/XCC.build/XCC-generated-files.hmap -I/Users/symboxtra/Library/Developer/Xcode/DerivedData/xcode-coveralls-cggamqhdbfytojgpznjrwbfokmlv/Build/Intermediates.noindex/ArchiveIntermediates/xcode-coveralls/IntermediateBuildFilesPath/xcode-coveralls.build/Release/XCC.build/XCC-own-target-headers.hmap -I/Users/symboxtra/Library/Developer/Xcode/DerivedData/xcode-coveralls-cggamqhdbfytojgpznjrwbfokmlv/Build/Intermediates.noindex/ArchiveIntermediates/xcode-coveralls/IntermediateBuildFilesPath/xcode-coveralls.build/Release/XCC.build/XCC-all-target-headers.hmap -iquote /Users/symboxtra/Library/Developer/Xcode/DerivedData/xcode-coveralls-cggamqhdbfytojgpznjrwbfokmlv/Build/Intermediates.noindex/ArchiveIntermediates/xcode-coveralls/IntermediateBuildFilesPath/xcode-coveralls.build/Release/XCC.build/XCC-project-headers.hmap -iquoteLibraries/libgit2/include -I/tmp/xcode-coveralls/build/Release/include -ISubmodules/SeriousCode -I/Users/symboxtra/Library/Developer/Xcode/DerivedData/xcode-coveralls-cggamqhdbfytojgpznjrwbfokmlv/Build/Intermediates.noindex/ArchiveIntermediates/xcode-coveralls/IntermediateBuildFilesPath/xcode-coveralls.build/Release/XCC.build/DerivedSources/x86_64 -I/Users/symboxtra/Library/Developer/Xcode/DerivedData/xcode-coveralls-cggamqhdbfytojgpznjrwbfokmlv/Build/Intermediates.noindex/ArchiveIntermediates/xcode-coveralls/IntermediateBuildFilesPath/xcode-coveralls.build/Release/XCC.build/DerivedSources -F/tmp/xcode-coveralls/build/Release -MMD -MT dependencies -MF /Users/symboxtra/Library/Developer/Xcode/DerivedData/xcode-coveralls-cggamqhdbfytojgpznjrwbfokmlv/Build/Intermediates.noindex/ArchiveIntermediates/xcode-coveralls/IntermediateBuildFilesPath/xcode-coveralls.build/Release/XCC.build/Objects-normal/x86_64/XCCCoverallsRequest.d --serialize-diagnostics /Users/symboxtra/Library/Developer/Xcode/DerivedData/xcode-coveralls-cggamqhdbfytojgpznjrwbfokmlv/Build/Intermediates.noindex/ArchiveIntermediates/xcode-coveralls/IntermediateBuildFilesPath/xcode-coveralls.build/Release/XCC.build/Objects-normal/x86_64/XCCCoverallsRequest.dia -c /tmp/xcode-coveralls/XCC/XCCCoverallsRequest.m -o /Users/symboxtra/Library/Developer/Xcode/DerivedData/xcode-coveralls-cggamqhdbfytojgpznjrwbfokmlv/Build/Intermediates.noindex/ArchiveIntermediates/xcode-coveralls/IntermediateBuildFilesPath/xcode-coveralls.build/Release/XCC.build/Objects-normal/x86_64/XCCCoverallsRequest.o
In file included from /tmp/xcode-coveralls/XCC/XCCCoverallsRequest.m:25:
/tmp/xcode-coveralls/XCC/XCCCoverallsRequest.h:26:9: fatal error: 'clang-warnings.h' file not found
#import <clang-warnings.h>
        ^~~~~~~~~~~~~~~~~~
1 error generated.

CompileC /Users/symboxtra/Library/Developer/Xcode/DerivedData/xcode-coveralls-cggamqhdbfytojgpznjrwbfokmlv/Build/Intermediates.noindex/ArchiveIntermediates/xcode-coveralls/IntermediateBuildFilesPath/xcode-coveralls.build/Release/XCC.build/Objects-normal/x86_64/XCCGCovFile.o XCC/XCCGCovFile.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
    cd /tmp/xcode-coveralls
    export LANG=en_US.US-ASCII
    /tmp/xcode-coveralls/Scripts/ccache.sh -x objective-c -arch x86_64 -fmessage-length=120 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -fcolor-diagnostics -std=c99 -fobjc-arc -Wno-trigraphs -fpascal-strings -Os -fno-common -Werror -Werror=incompatible-pointer-types -Werror=implicit-function-declaration -Wmissing-field-initializers -Wmissing-prototypes -Werror=return-type -Wdocumentation -Wunreachable-code -Wimplicit-atomic-properties -Werror=deprecated-objc-isa-usage -Werror=objc-root-class -Warc-repeated-use-of-weak -Wno-arc-maybe-repeated-use-of-weak -Wexplicit-ownership-type -Wimplicit-retain-self -Wduplicate-method-match -Wmissing-braces -Wparentheses -Wswitch -Wunused-function -Wunused-label -Wunused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wconditional-uninitialized -Wunknown-pragmas -pedantic -Wshadow -Wfour-char-constants -Wconversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Werror=float-conversion -Werror=non-literal-null-conversion -Werror=objc-literal-conversion -Wassign-enum -Wsign-compare -Wshorten-64-to-32 -Wpointer-sign -Wnewline-eof -Wno-selector -Wstrict-selector-match -Wundeclared-selector -Wdeprecated-implementations -DNS_BLOCK_ASSERTIONS=1 -DOBJC_OLD_DISPATCH_PROTOTYPES=0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -mmacosx-version-min=10.8 -g -Wsign-conversion -Winfinite-recursion -Werror=comma -Werror=block-capture-autoreleasing -Werror=strict-prototypes -Wunguarded-availability -iquote /Users/symboxtra/Library/Developer/Xcode/DerivedData/xcode-coveralls-cggamqhdbfytojgpznjrwbfokmlv/Build/Intermediates.noindex/ArchiveIntermediates/xcode-coveralls/IntermediateBuildFilesPath/xcode-coveralls.build/Release/XCC.build/XCC-generated-files.hmap -I/Users/symboxtra/Library/Developer/Xcode/DerivedData/xcode-coveralls-cggamqhdbfytojgpznjrwbfokmlv/Build/Intermediates.noindex/ArchiveIntermediates/xcode-coveralls/IntermediateBuildFilesPath/xcode-coveralls.build/Release/XCC.build/XCC-own-target-headers.hmap -I/Users/symboxtra/Library/Developer/Xcode/DerivedData/xcode-coveralls-cggamqhdbfytojgpznjrwbfokmlv/Build/Intermediates.noindex/ArchiveIntermediates/xcode-coveralls/IntermediateBuildFilesPath/xcode-coveralls.build/Release/XCC.build/XCC-all-target-headers.hmap -iquote /Users/symboxtra/Library/Developer/Xcode/DerivedData/xcode-coveralls-cggamqhdbfytojgpznjrwbfokmlv/Build/Intermediates.noindex/ArchiveIntermediates/xcode-coveralls/IntermediateBuildFilesPath/xcode-coveralls.build/Release/XCC.build/XCC-project-headers.hmap -iquoteLibraries/libgit2/include -I/tmp/xcode-coveralls/build/Release/include -ISubmodules/SeriousCode -I/Users/symboxtra/Library/Developer/Xcode/DerivedData/xcode-coveralls-cggamqhdbfytojgpznjrwbfokmlv/Build/Intermediates.noindex/ArchiveIntermediates/xcode-coveralls/IntermediateBuildFilesPath/xcode-coveralls.build/Release/XCC.build/DerivedSources/x86_64 -I/Users/symboxtra/Library/Developer/Xcode/DerivedData/xcode-coveralls-cggamqhdbfytojgpznjrwbfokmlv/Build/Intermediates.noindex/ArchiveIntermediates/xcode-coveralls/IntermediateBuildFilesPath/xcode-coveralls.build/Release/XCC.build/DerivedSources -F/tmp/xcode-coveralls/build/Release -MMD -MT dependencies -MF /Users/symboxtra/Library/Developer/Xcode/DerivedData/xcode-coveralls-cggamqhdbfytojgpznjrwbfokmlv/Build/Intermediates.noindex/ArchiveIntermediates/xcode-coveralls/IntermediateBuildFilesPath/xcode-coveralls.build/Release/XCC.build/Objects-normal/x86_64/XCCGCovFile.d --serialize-diagnostics /Users/symboxtra/Library/Developer/Xcode/DerivedData/xcode-coveralls-cggamqhdbfytojgpznjrwbfokmlv/Build/Intermediates.noindex/ArchiveIntermediates/xcode-coveralls/IntermediateBuildFilesPath/xcode-coveralls.build/Release/XCC.build/Objects-normal/x86_64/XCCGCovFile.dia -c /tmp/xcode-coveralls/XCC/XCCGCovFile.m -o /Users/symboxtra/Library/Developer/Xcode/DerivedData/xcode-coveralls-cggamqhdbfytojgpznjrwbfokmlv/Build/Intermediates.noindex/ArchiveIntermediates/xcode-coveralls/IntermediateBuildFilesPath/xcode-coveralls.build/Release/XCC.build/Objects-normal/x86_64/XCCGCovFile.o
In file included from /tmp/xcode-coveralls/XCC/XCCGCovFile.m:25:
/tmp/xcode-coveralls/XCC/XCCGCovFile.h:26:9: fatal error: 'clang-warnings.h' file not found
#import <clang-warnings.h>
        ^~~~~~~~~~~~~~~~~~
1 error generated.

** INSTALL FAILED **


The following build commands failed:
        CompileC /Users/symboxtra/Library/Developer/Xcode/DerivedData/xcode-coveralls-cggamqhdbfytojgpznjrwbfokmlv/Build/Intermediates.noindex/ArchiveIntermediates/xcode-coveralls/IntermediateBuildFilesPath/xcode-coveralls.build/Release/XCC.build/Objects-normal/x86_64/XCCGCovFileLine.o XCC/XCCGCovFileLine.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
        CompileC /Users/symboxtra/Library/Developer/Xcode/DerivedData/xcode-coveralls-cggamqhdbfytojgpznjrwbfokmlv/Build/Intermediates.noindex/ArchiveIntermediates/xcode-coveralls/IntermediateBuildFilesPath/xcode-coveralls.build/Release/XCC.build/Objects-normal/x86_64/XCCArguments.o XCC/XCCArguments.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
        CompileC /Users/symboxtra/Library/Developer/Xcode/DerivedData/xcode-coveralls-cggamqhdbfytojgpznjrwbfokmlv/Build/Intermediates.noindex/ArchiveIntermediates/xcode-coveralls/IntermediateBuildFilesPath/xcode-coveralls.build/Release/XCC.build/Objects-normal/x86_64/XCCCoverallsRequest.o XCC/XCCCoverallsRequest.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
        CompileC /Users/symboxtra/Library/Developer/Xcode/DerivedData/xcode-coveralls-cggamqhdbfytojgpznjrwbfokmlv/Build/Intermediates.noindex/ArchiveIntermediates/xcode-coveralls/IntermediateBuildFilesPath/xcode-coveralls.build/Release/XCC.build/Objects-normal/x86_64/XCCGCovFile.o XCC/XCCGCovFile.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(4 failures)

fail to install xcode-coverall on my mac machine

Running this command to install: brew install macmade/tap/xcode-coveralls from Terminal.

Hit the error:

ld: library not found for -lcrypto
clang: error: linker command failed with exit code 1 (use -v to see invocation)

** BUILD FAILED **

The following build commands failed:
Ld build/Release/xcode-coveralls normal x86_64
(1 failure)

** INSTALL FAILED **

with

xcodebuild -version
Xcode 12.3
Build version 12C33

we ran:

git clone https://github.com/macmade/xcode-coveralls.git --depth=1
cd xcode-coveralls
git submodule init
git submodule update
xcodebuild -project xcode-coveralls.xcodeproj -scheme xcode-coveralls DSTROOT=/ SYMROOT=build install

output

ld: warning: ignoring file Libraries/libgit2//libgit2.a, building for macOS-arm64 but attempting to link with file built for unknown-x86_64
ld: warning: ignoring file Libraries/openssl//libcrypto.a, building for macOS-arm64 but attempting to link with file built for macOS-x86_64
ld: warning: ignoring file Libraries/openssl//libssl.a, building for macOS-arm64 but attempting to link with file built for macOS-x86_64
undef: _giterr_last
undef: _git_repository_head
undef: _git_reference_target
undef: _git_commit_lookup
undef: _git_commit_committer
undef: _git_repository_open
undef: _git_oid_tostr
undef: _git_commit_message
undef: _git_commit_author
undef: _git_commit_free
undef: _git_reference_free
undef: _git_remote_name
undef: _git_strarray_free
undef: _git_remote_list
undef: _git_remote_load
undef: _git_remote_url
undef: _git_branch_name
undef: _git_remote_free
undef: _git_repository_free
Undefined symbols for architecture arm64:
  "_giterr_last", referenced from:
      -[XCCGitInfo error:status:] in lto.o
  "_git_repository_head", referenced from:
      -[XCCGitInfo getGitInfos:] in lto.o
  "_git_reference_target", referenced from:
      -[XCCGitInfo getGitInfos:] in lto.o
  "_git_commit_lookup", referenced from:
      -[XCCGitInfo getGitInfos:] in lto.o
  "_git_commit_committer", referenced from:
      -[XCCGitInfo getGitInfos:] in lto.o
  "_git_repository_open", referenced from:
      -[XCCGitInfo getGitInfos:] in lto.o
  "_git_oid_tostr", referenced from:
      -[XCCGitInfo getGitInfos:] in lto.o
  "_git_commit_message", referenced from:
      -[XCCGitInfo getGitInfos:] in lto.o
  "_git_commit_author", referenced from:
      -[XCCGitInfo getGitInfos:] in lto.o
  "_git_commit_free", referenced from:
      -[XCCGitInfo getGitInfos:] in lto.o
  "_git_reference_free", referenced from:
      -[XCCGitInfo getGitInfos:] in lto.o
  "_git_remote_name", referenced from:
      -[XCCGitInfo getGitInfos:] in lto.o
  "_git_strarray_free", referenced from:
      -[XCCGitInfo getGitInfos:] in lto.o
  "_git_remote_list", referenced from:
      -[XCCGitInfo getGitInfos:] in lto.o
  "_git_remote_load", referenced from:
      -[XCCGitInfo getGitInfos:] in lto.o
  "_git_remote_url", referenced from:
      -[XCCGitInfo getGitInfos:] in lto.o
  "_git_branch_name", referenced from:
      -[XCCGitInfo getGitInfos:] in lto.o
  "_git_remote_free", referenced from:
      -[XCCGitInfo getGitInfos:] in lto.o
  "_git_repository_free", referenced from:
      -[XCCGitInfo dealloc] in lto.o
      -[XCCGitInfo getGitInfos:] in lto.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

warning: The macOS deployment target 'MACOSX_DEPLOYMENT_TARGET' is set to 10.8, but the range of supported deployment target versions is 10.9 to 11.1.99. (in target 'XCC' from project 'xcode-coveralls')
** INSTALL FAILED **

Can't build on xcode11.1

git clone https://github.com/macmade/xcode-coveralls.git --depth=1
cd xcode-coveralls
xcodebuild -project xcode-coveralls.xcodeproj -scheme xcode-coveralls DSTROOT=/ SYMROOT=build install

Output:

Build settings from command line:
    DSTROOT = /
    SYMROOT = build


note: Using new build system
note: Planning build
note: Using build description from disk
error: /Users/hejianbo/Desktop/xcode-coveralls/Submodules/xcconfig/Release.xcconfig: unable to open file (in project "xcode-coveralls") (in target 'xcode-coveralls' from project 'xcode-coveralls')
error: /Users/hejianbo/Desktop/xcode-coveralls/Submodules/xcconfig/Release.xcconfig: unable to open file (in project "xcode-coveralls") (in target 'xcode-coveralls' from project 'xcode-coveralls')
error: /Users/hejianbo/Desktop/xcode-coveralls/Submodules/xcconfig/Release.xcconfig: unable to open file (in project "xcode-coveralls") (in target 'xcode-coveralls' from project 'xcode-coveralls')
warning: Traditional headermap style is no longer supported; please migrate to using separate headermaps and set 'ALWAYS_SEARCH_USER_PATHS' to NO. (in target 'xcode-coveralls' from project 'xcode-coveralls')
error: /Users/hejianbo/Desktop/xcode-coveralls/Submodules/xcconfig/Release.xcconfig: unable to open file (in project "xcode-coveralls") (in target 'XCC' from project 'xcode-coveralls')
error: /Users/hejianbo/Desktop/xcode-coveralls/Submodules/xcconfig/Release.xcconfig: unable to open file (in project "xcode-coveralls") (in target 'XCC' from project 'xcode-coveralls')
error: /Users/hejianbo/Desktop/xcode-coveralls/Submodules/xcconfig/Release.xcconfig: unable to open file (in project "xcode-coveralls") (in target 'XCC' from project 'xcode-coveralls')
warning: Traditional headermap style is no longer supported; please migrate to using separate headermaps and set 'ALWAYS_SEARCH_USER_PATHS' to NO. (in target 'XCC' from project 'xcode-coveralls')

** INSTALL FAILED **

Branch name is not being reported in TravisCI

I thought that something was wrong with Coveralls because the badge was not working. I contacted them and they told me that the tool I was using to report the coverage wasn't reporting the branch name. I configure xcode-coveralls in verbose mode in travis and I realized that the branch name was not being set in the JSON payload. When I run it locally it works.

fail to publish report to coveralls on jenkins build machine which uses xcode7

Hit follow error: hit Error: No .gcno files in build directory: /Users/iosadmin/03b72f19/workspace/xcode-coveralls/myDerivedData

The command I run is on jenkins after running my test via xcodebuild:

xcode-coveralls --verbose --service jenkins --token --project $WORKSPACE/libs/SalesforceAnalytics --id $BUILD_NUMBER ${WORKSPACE}/myDerivedData

after test, my code only generate coverage.profdata and .xccoverage code coverage file. There is no .gcno file. Can this tool work with new code coverage formate? And how?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.