Skip to content

[iOS] build fails with DISABLE_SVG=1 'SDWebImageSVGCoder/SDImageSVGCoder.h' file not found #379

@kashmiry

Description

@kashmiry

Description

When disabling SVG for iOS following:

export DISABLE_SVG=1 
cd ios && pod install

and then building the iOS app, build fails and i get this error.

'SDWebImageSVGCoder/SDImageSVGCoder.h' file not found
Image

Tested on a new bare react-native version 0.79.7

"react-native": "0.79.7"
"@d11/react-native-fast-image": "^8.13.0"

Tried both newArch disabled and enabled.
issue only fixed if I unset DISABLE_SVG
also tried adding this to podfile:

ENV['DISABLE_SVG'] = '1'

Update:
Tested on react-native 0.80.3 and this issue does not seem to occur. Maybe its only on <= 0.79.7

Steps to reproduce

  1. install package
  2. disable SVG & install pods
  3. clean project & build for ios
export DISABLE_SVG=1 
cd ios && pod install
  1. bulid ios app

Expected behavior

App to build normally without SVG support.

Stacktrace or Logs

'SDWebImageSVGCoder/SDImageSVGCoder.h' file not found

Output of npx react-native info

System:
  OS: macOS 15.7.3
  CPU: (8) arm64 Apple M1 Pro
  Memory: 211.80 MB / 32.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 24.4.0
    path: /opt/homebrew/bin/node
  Yarn:
    version: 3.6.4
    path: /opt/homebrew/bin/yarn
  npm:
    version: 11.4.2
    path: /opt/homebrew/bin/npm
  Watchman:
    version: 2025.06.30.00
    path: /opt/homebrew/bin/watchman
Managers:
  CocoaPods:
    version: 1.16.2
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 25.2
      - iOS 26.2
      - macOS 26.2
      - tvOS 26.2
      - visionOS 26.2
      - watchOS 26.2
  Android SDK:
    API Levels:
      - "21"
      - "29"
      - "30"
      - "31"
      - "32"
      - "33"
      - "34"
      - "35"
    Build Tools:
      - 29.0.2
      - 30.0.2
      - 30.0.3
      - 31.0.0
      - 32.0.0
      - 33.0.0
      - 33.0.0
      - 33.0.1
      - 34.0.0
      - 35.0.0
    System Images:
      - android-21 | ARM 64 v8a
      - android-21 | Google APIs ARM EABI v7a
      - android-29 | Google APIs ARM 64 v8a
      - android-29 | Google Play ARM 64 v8a
      - android-32 | Google APIs ARM 64 v8a
      - android-34 | ARM 64 v8a
      - android-34 | Google Play ARM 64 v8a
      - android-36 | Google Play ARM 64 v8a
      - android-36 | Pre-Release 16 KB Page Size Google Play ARM 64 v8a
    Android NDK: Not Found
IDEs:
  Android Studio: 2025.2 AI-252.27397.103.2522.14514259
  Xcode:
    version: 26.2/17C52
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: 17.0.12
    path: /usr/bin/javac
  Ruby:
    version: 3.2.2
npmPackages:
  "@react-native-community/cli": Not Found
  react: Not Found
  react-native: Not Found
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: true
iOS:
  hermesEnabled: true
  newArchEnabled: true

Affected React-Native Architecture

Old Architecture, New Architecture

Affected Platforms

Runtime - iOS

Reproducer

https://github.com/kashmiry/rnfs-ios-svg-issue

Screenshots and Videos

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions