-
-
Notifications
You must be signed in to change notification settings - Fork 49
Description
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.alibvorbis.a/libvorbisenc.a/libvorbisfile.alibopusfile.alibogg.alibssl.alibcrypto.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_installdeployment 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
- Create an Expo managed workflow project with
react-native-audio-api@0.11.6 - Set iOS deployment target to 15.1
- Run
eas build --platform ios - Observe 1,257+ linker warnings referencing the prebuilt
.afiles incommon/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+.