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

未关闭
#987 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 2 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
35/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
cpp, ios, react-native

调研方向

从 scripts/download-prebuilt-binaries.sh 和 common/cpp/audioapi/external/iphoneos/ 下的预构建库开始。检查 podspec 的 ios_min_version 值,并使用 iOS 15.1 的 Expo 构建进行复现,以确认链接器警告。完成的标准是针对受支持的部署目标重新构建列出的静态库,并在一个 release 中发布它们。

由索引模型根据 Issue 内容生成。

描述

Summary

When building a React Native / Expo app that uses [email protected] 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 [email protected]
  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+.

主要语言
C++
星标
852
派生
97
平均合并
4 天 7 小时
30 天内合并 PR
25

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

software-mansion/react-native-audio-api 的其他 Issue

查看 software-mansion/react-native-audio-api 的全部 Issue

相似的 Issue

更多 C++ Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。