Skip to content

Prebuilt static libraries compiled against iOS 26 SDK cause 1257 linker warnings when linking against iOS 15.1 target #987

@fierceuno

Description

@fierceuno

Summary

When building a React Native / Expo app that uses react-native-audio-api@0.11.6 targeting iOS 15.1, the prebuilt static libraries downloaded by scripts/download-prebuilt-binaries.sh generate 1,257 linker warnings of the form:

ld: warning: object file (…/external/iphoneos/libopus.a(…)) was built for newer iOS version (26.0) than being linked (15.1)

The affected prebuilt binaries are:

  • libopus.a
  • libvorbis.a / libvorbisenc.a / libvorbisfile.a
  • libopusfile.a
  • libogg.a
  • libssl.a
  • libcrypto.a

These carry a LC_VERSION_MIN_IPHONEOS Mach-O header specifying iOS 26.0 (Xcode 26 beta SDK), while the project deployment target is iOS 15.1.

Impact

  • 1,257 of the 3,313 total build warnings (38%) originate from this mismatch.
  • This creates undefined behavior risk and is a potential App Store rejection flag.
  • A Podfile post_install deployment target override cannot fix binary Mach-O headers — the binaries themselves need to be rebuilt.

Environment

  • react-native-audio-api: 0.11.6 (latest stable)
  • Expo SDK: 54
  • React Native: 0.81.5
  • Project iOS deployment target: 15.1
  • Build system: EAS Build (Expo managed workflow)

Steps to Reproduce

  1. Create an Expo managed workflow project with react-native-audio-api@0.11.6
  2. Set iOS deployment target to 15.1
  3. Run eas build --platform ios
  4. Observe 1,257+ linker warnings referencing the prebuilt .a files in common/cpp/audioapi/external/iphoneos/

Expected Behavior

Prebuilt static libraries should be compiled against the minimum supported iOS deployment target (14.0 per the podspec ios_min_version, or ideally 15.1 to match current Expo SDK defaults).

Workaround

Setting DISABLE_AUDIOAPI_FFMPEG=1 removes the FFmpeg xcframeworks but the core static libs (opus, vorbis, ssl, crypto) remain mismatched.

Request

Please rebuild the prebuilt static libraries against iOS 14.0 or iOS 15.1 SDK target and publish in the next release. This would eliminate ~38% of build warnings for all users on Expo SDK 52+.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions