Ignore not working on iOS project

Before submitting a topic, please confirm the following

I have searched for similar issues before creating this topic.
I have validated my codecov.yaml configuration file.
I have filled out the below sections to the best of my ability.
I understand that the community boards are a free, best-effort tool. While we hope to have someone on the Codecov team resolve your problem quickly, this is not always possible.

Description

Hello,

I’m using CodeCov to see our coverage on iOS swift project.
We’re able to execute our UITests but when we push the report to CodeCov ignored folders/files are visible and reduce the coverage uselessly.

Codecov Output

Please provide the full output of running the uploader on your CI/CD. This will typically have the Codecov logo as ASCII.

+ bash /dev/fd/63
++ curl -s https://codecov.io/bash

  _____          _
 / ____|        | |
| |     ___   __| | ___  ___ _____   __
| |    / _ \ / _` |/ _ \/ __/ _ \ \ / /
| |___| (_) | (_| |  __/ (_| (_) \ V /
 \_____\___/ \__,_|\___|\___\___/ \_/
                              Bash-1.0.6


==> git version 2.38.1 found
==> curl 7.79.1 (x86_64-apple-darwin21.0) libcurl/7.79.1 (SecureTransport) LibreSSL/3.3.6 zlib/1.2.11 nghttp2/1.45.1
Release-Date: 2021-09-22
Protocols: dict file ftp ftps gopher gophers http https imap imaps ldap ldaps mqtt pop3 pop3s rtsp smb smbs smtp smtps telnet tftp 
Features: alt-svc AsynchDNS GSS-API HSTS HTTP2 HTTPS-proxy IPv6 Kerberos Largefile libz MultiSSL NTLM NTLM_WB SPNEGO SSL UnixSockets
x> No CI provider detected.
    Testing inside Docker? http://docs.codecov.io/docs/testing-with-docker
    Testing with Tox? https://docs.codecov.io/docs/python#section-testing-with-tox
    current dir:  /Users/builder/clone
    project root: .
--> token set from env
    Yaml found at: codecov.yml
==> Processing Xcode reports via llvm-cov
    DerivedData folder: /Users/builder/Library/Developer/Xcode/DerivedData
    hint Speed up Swift processing by using use -J 'AppName' (regexp accepted)
    hint This will remove Pods/ from your report. Also https://docs.codecov.io/docs/ignoring-paths
    + Building reports for MapFrameworkMobileEvents framework
error: /Users/builder/Library/Developer/Xcode/DerivedData/myprojectcore-gnfsiyddlykcavcvxvfxvbuhfnqs/Build/Products/Debug-iphonesimulator/MapFrameworkMobileEvents.framework/MapFrameworkMobileEvents: Failed to load coverage: `-arch` specifier is invalid or missing for universal binary
    x> llvm-cov failed to produce results for /Users/builder/Library/Developer/Xcode/DerivedData/myprojectcore-gnfsiyddlykcavcvxvfxvbuhfnqs/Build/Products/Debug-iphonesimulator/MapFrameworkMobileEvents.framework/MapFrameworkMobileEvents
    + Building reports for Solar framework
error: /Users/builder/Library/Developer/Xcode/DerivedData/myprojectcore-gnfsiyddlykcavcvxvfxvbuhfnqs/Build/Products/Debug-iphonesimulator/Solar.framework/Solar: Failed to load coverage: `-arch` specifier is invalid or missing for universal binary
    x> llvm-cov failed to produce results for /Users/builder/Library/Developer/Xcode/DerivedData/myprojectcore-gnfsiyddlykcavcvxvfxvbuhfnqs/Build/Products/Debug-iphonesimulator/Solar.framework/Solar
    + Building reports for myprojectcore framework
    + Building reports for MapFramework framework
error: /Users/builder/Library/Developer/Xcode/DerivedData/myprojectcore-gnfsiyddlykcavcvxvfxvbuhfnqs/Build/Products/Debug-iphonesimulator/MapFramework.framework/MapFramework: Failed to load coverage: `-arch` specifier is invalid or missing for universal binary
    x> llvm-cov failed to produce results for /Users/builder/Library/Developer/Xcode/DerivedData/myprojectcore-gnfsiyddlykcavcvxvfxvbuhfnqs/Build/Products/Debug-iphonesimulator/MapFramework.framework/MapFramework
    + Building reports for SnapKit framework
    + Building reports for Gzip framework
    + Building reports for SnapKit framework
    + Building reports for MKRingProgressView framework
    + Building reports for Pods_myprojectcore_myprojectcoreTests framework
error: /Users/builder/Library/Developer/Xcode/DerivedData/myprojectcore-gnfsiyddlykcavcvxvfxvbuhfnqs/Build/Products/Debug-iphonesimulator/Pods_myprojectcore_myprojectcoreTests.framework/Pods_myprojectcore_myprojectcoreTests: Failed to load coverage: No coverage data found
    x> llvm-cov failed to produce results for /Users/builder/Library/Developer/Xcode/DerivedData/myprojectcore-gnfsiyddlykcavcvxvfxvbuhfnqs/Build/Products/Debug-iphonesimulator/Pods_myprojectcore_myprojectcoreTests.framework/Pods_myprojectcore_myprojectcoreTests
    + Building reports for MKRingProgressView framework
    + Building reports for MapFrameworkGeocoder framework
error: /Users/builder/Library/Developer/Xcode/DerivedData/myprojectcore-gnfsiyddlykcavcvxvfxvbuhfnqs/Build/Products/Debug-iphonesimulator/MapFrameworkGeocoder.framework/MapFrameworkGeocoder: Failed to load coverage: `-arch` specifier is invalid or missing for universal binary
    x> llvm-cov failed to produce results for /Users/builder/Library/Developer/Xcode/DerivedData/myprojectcore-gnfsiyddlykcavcvxvfxvbuhfnqs/Build/Products/Debug-iphonesimulator/MapFrameworkGeocoder.framework/MapFrameworkGeocoder
    + Building reports for Gzip framework
    + Building reports for Pods_myprojectcore framework
error: /Users/builder/Library/Developer/Xcode/DerivedData/myprojectcore-gnfsiyddlykcavcvxvfxvbuhfnqs/Build/Products/Debug-iphonesimulator/Pods_myprojectcore.framework/Pods_myprojectcore: Failed to load coverage: No coverage data found
    x> llvm-cov failed to produce results for /Users/builder/Library/Developer/Xcode/DerivedData/myprojectcore-gnfsiyddlykcavcvxvfxvbuhfnqs/Build/Products/Debug-iphonesimulator/Pods_myprojectcore.framework/Pods_myprojectcore
    + Building reports for Turf framework
error: /Users/builder/Library/Developer/Xcode/DerivedData/myprojectcore-gnfsiyddlykcavcvxvfxvbuhfnqs/Build/Products/Debug-iphonesimulator/Turf.framework/Turf: Failed to load coverage: `-arch` specifier is invalid or missing for universal binary
    x> llvm-cov failed to produce results for /Users/builder/Library/Developer/Xcode/DerivedData/myprojectcore-gnfsiyddlykcavcvxvfxvbuhfnqs/Build/Products/Debug-iphonesimulator/Turf.framework/Turf
    + Building reports for MapFrameworkCoreNavigation framework
error: /Users/builder/Library/Developer/Xcode/DerivedData/myprojectcore-gnfsiyddlykcavcvxvfxvbuhfnqs/Build/Products/Debug-iphonesimulator/MapFrameworkCoreNavigation.framework/MapFrameworkCoreNavigation: Failed to load coverage: `-arch` specifier is invalid or missing for universal binary
    x> llvm-cov failed to produce results for /Users/builder/Library/Developer/Xcode/DerivedData/myprojectcore-gnfsiyddlykcavcvxvfxvbuhfnqs/Build/Products/Debug-iphonesimulator/MapFrameworkCoreNavigation.framework/MapFrameworkCoreNavigation
    + Building reports for MapFrameworkNavigation framework
error: /Users/builder/Library/Developer/Xcode/DerivedData/myprojectcore-gnfsiyddlykcavcvxvfxvbuhfnqs/Build/Products/Debug-iphonesimulator/MapFrameworkNavigation.framework/MapFrameworkNavigation: Failed to load coverage: `-arch` specifier is invalid or missing for universal binary
    x> llvm-cov failed to produce results for /Users/builder/Library/Developer/Xcode/DerivedData/myprojectcore-gnfsiyddlykcavcvxvfxvbuhfnqs/Build/Products/Debug-iphonesimulator/MapFrameworkNavigation.framework/MapFrameworkNavigation
    + Building reports for MapFrameworkSpeech framework
error: /Users/builder/Library/Developer/Xcode/DerivedData/myprojectcore-gnfsiyddlykcavcvxvfxvbuhfnqs/Build/Products/Debug-iphonesimulator/MapFrameworkSpeech.framework/MapFrameworkSpeech: Failed to load coverage: `-arch` specifier is invalid or missing for universal binary
    x> llvm-cov failed to produce results for /Users/builder/Library/Developer/Xcode/DerivedData/myprojectcore-gnfsiyddlykcavcvxvfxvbuhfnqs/Build/Products/Debug-iphonesimulator/MapFrameworkSpeech.framework/MapFrameworkSpeech
    + Building reports for Polyline framework
error: /Users/builder/Library/Developer/Xcode/DerivedData/myprojectcore-gnfsiyddlykcavcvxvfxvbuhfnqs/Build/Products/Debug-iphonesimulator/Polyline.framework/Polyline: Failed to load coverage: `-arch` specifier is invalid or missing for universal binary
    x> llvm-cov failed to produce results for /Users/builder/Library/Developer/Xcode/DerivedData/myprojectcore-gnfsiyddlykcavcvxvfxvbuhfnqs/Build/Products/Debug-iphonesimulator/Polyline.framework/Polyline
    + Building reports for MapFrameworkDirections framework
error: /Users/builder/Library/Developer/Xcode/DerivedData/myprojectcore-gnfsiyddlykcavcvxvfxvbuhfnqs/Build/Products/Debug-iphonesimulator/MapFrameworkDirections.framework/MapFrameworkDirections: Failed to load coverage: `-arch` specifier is invalid or missing for universal binary
    x> llvm-cov failed to produce results for /Users/builder/Library/Developer/Xcode/DerivedData/myprojectcore-gnfsiyddlykcavcvxvfxvbuhfnqs/Build/Products/Debug-iphonesimulator/MapFrameworkDirections.framework/MapFrameworkDirections
    + Building reports for myprojectcoreTests xctest
    -> Running gcov for Obj-C
==> Running gcov in . (disable via -X gcov)
==> Python coveragepy not found
==> Searching for coverage reports in:
    + .
    -> Found 17 reports
==> Detecting git/mercurial file structure
==> Reading reports
    + ./myprojectcore.framework.coverage.txt bytes=619608
    + ./MKRingProgressView.framework.coverage.txt bytes=37406
    + ./myprojectcoreTests.xctest.coverage.txt bytes=644455
    - Skipping empty file ./MapFramework.framework.coverage.txt
    - Skipping empty file ./Solar.framework.coverage.txt
    + ./SnapKit.framework.coverage.txt bytes=161656
    - Skipping empty file ./MapFrameworkDirections.framework.coverage.txt
    - Skipping empty file ./MapFrameworkGeocoder.framework.coverage.txt
    - Skipping empty file ./Turf.framework.coverage.txt
    - Skipping empty file ./Pods_myprojectcore.framework.coverage.txt
    + ./Gzip.framework.coverage.txt bytes=13962
    - Skipping empty file ./MapFrameworkSpeech.framework.coverage.txt
    - Skipping empty file ./Pods_myprojectcore_myprojectcoreTests.framework.coverage.txt
    - Skipping empty file ./MapFrameworkMobileEvents.framework.coverage.txt
    - Skipping empty file ./MapFrameworkCoreNavigation.framework.coverage.txt
    - Skipping empty file ./Polyline.framework.coverage.txt
    - Skipping empty file ./MapFrameworkNavigation.framework.coverage.txt
==> Appending adjustments
    https://docs.codecov.io/docs/fixing-reports
    + Found adjustments
==> Gzipping contents
        1.0M	/tmp/codecov.EhjT7A.gz
==> Uploading reports
    url: https://codecov.io
    query: branch=feat%2Fdestination_bar&commit=e28ea7a26b4c3bccdf1c800fbd7bc64943449f44&build=&build_url=&name=&tag=&slug=proximus.com%2Fproximusplus&service=&flags=&pr=&job=&cmd_args=
->  Pinging Codecov
https://codecov.io/upload/v4?package=bash-1.0.6&token=<hidden>&package=bash-1.0.6&token=3d0c64a5-b778-4da8-a63a-a381823ab920&branch=feat%2Fdestination_bar&commit=e28ea7a26b4c3bccdf1c800fbd7bc64943449f44&build=&build_url=&name=&tag=&slug=proximus.com%2Fproximusplus&service=&flags=&pr=&job=&cmd_args=
->  Uploading to
https://storage.googleapis.com/codecov/v4/raw/2023-02-23/317D095011BAB9A29AB63E2861F5D544/e28ea7a26b4c3bccdf1c800fbd7bc64943449f44/62e747c3-cda4-41ed-bfb3-44e0df2cf594.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EJOGFN2JQ4OCTGA2MU5AEIT7OT5Z7HTFOAN2SPG4NWSN2UJYOY5U6LZQ%2F20230223%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20230223T092712Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=4c75dffc51c6ba562dd510d41c7167347d5910ace080ed76de4626e0883023be
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 1059k    0     0  100 1059k      0  4269k --:--:-- --:--:-- --:--:-- 4413k
    -> Reports have been successfully queued for processing at https://app.codecov.io/gitlab/proximus.com:proximusplus/react-native-myproject/commit/e28ea7a26b4c3bccdf1c800fbd7bc64943449f44

codecov.yml

ignore:
  - "ios/myprojectcore/myprojectcore/CITS/**/*"
  - "ios/myprojectcore/myprojectcoreTests/**/*"
  - "example/**/*"
  - "src/**/*"
  - "android/**/*"

Expected Results

CITS and myprojectcoreTests folder should not be visible

Actual Results

CITS and myprojectcoreTests folder are visible

Additional Information

  • I already validated the codecov.yml, looks good
  • When I’m looking on my branch’s settings (on codecov), repository yaml is empty
  • I’m pushing the report with bash <(curl -s https://codecov.io/bash) from CodeMagic

Thanks in advance for your support

@imranMnts, have you set up a team bot?

No, we’re executing tests and sending the reports directly from codemagic

@imranMnts those things aren’t mutually exclusive. But if you have not set up a team bot, Codecov cannot access the codecov.yml file where your ignore is placed.