Prebuilt static libraries compiled against iOS 26 SDK cause 1257 linker warnings when linking against iOS 15.1 target
维护者通常 2 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 35/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- cpp, ios, react-native
- 领域
- build-system, mobile, release
调研方向
从 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.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
[email protected] - 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+.
- 主要语言
- C++
- 星标
- 852
- 派生
- 97
- 平均合并
- 4 天 7 小时
- 30 天内合并 PR
- 25
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
software-mansion/react-native-audio-api 的其他 Issue
-
android bug
难度 2/5 1-3 小时 新手友好度 76/100
software-mansion/react-native-audio-api#1358 · 1 条评论 ·
维护者通常 2 天内回复
-
android bug
难度 2/5 1-3 小时 新手友好度 82/100
software-mansion/react-native-audio-api#1273 · 5 条评论 ·
维护者通常 2 天内回复
-
bug ios
难度 2/5 1-3 小时 新手友好度 78/100
software-mansion/react-native-audio-api#1238 · 1 条评论 ·
维护者通常 2 天内回复
-
[Android] Let the app handle recording notification pause/resume可能已有人在做 @wildseansy 于 1 天前认领。 未关闭android feature-request
难度 4/5 3-5 天 新手友好度 35/100
software-mansion/react-native-audio-api#1390 ·
维护者通常 2 天内回复
-
bug ios
难度 4/5 3-5 天 新手友好度 25/100
software-mansion/react-native-audio-api#1389 · 1 条评论 ·
维护者通常 2 天内回复
查看 software-mansion/react-native-audio-api 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 80/100
-
难度 1/5 1 小时以内 新手友好度 82/100
-
难度 2/5 1-3 小时 新手友好度 72/100
eclipse-score/lifecycle#929 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 62/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
colbymchenry/codegraph#3223 ·
维护者通常 1 天内回复