之前写了 一个uts插件——腾讯云iot设备视频推流插件,本来是可以正常打包的,但现在打包报错
以下是 HBuilderX 云打包编译错误信息。请结合当前 uni-app / uni-app x 项目上下文分析失败原因,指出最可能的问题代码或配置,并给出可执行的修复步骤。
Error code = -5000
Error message:
UTS plugin uni_modules/tx-iot-video compile error!
uni_modules/tx-iot-video
➜ Implicit dependency on target 'Pods-unimoduleTxIotVideo' in project 'Pods' via file 'Pods_unimoduleTxIotVideo.framework' in build phase 'Link Binary'
➜ Implicit dependency on target 'CocoaAsyncSocket' in project 'Pods' via options '-framework CocoaAsyncSocket' in build setting 'OTHER_LDFLAGS'
➜ Implicit dependency on target 'TIoTLinkVideo' in project 'Pods' via options '-framework TIoTLinkVideo' in build setting 'OTHER_LDFLAGS'
➜ Implicit dependency on target 'TPCircularBuffer' in project 'Pods' via options '-framework TPCircularBuffer' in build setting 'OTHER_LDFLAGS'
➜ Explicit dependency on target 'CocoaAsyncSocket' in project 'Pods'
➜ Explicit dependency on target 'TIoTLinkKit_FLV' in project 'Pods'
➜ Explicit dependency on target 'TIoTLinkKit_GVoice' in project 'Pods'
➜ Explicit dependency on target 'TIoTLinkKit_IJKPlayer' in project 'Pods'
➜ Explicit dependency on target 'TIoTLinkKit_SoundTouch' in project 'Pods'
➜ Explicit dependency on target 'TIoTLinkKit_XP2P' in project 'Pods'
➜ Explicit dependency on target 'TIoTLinkVideo' in project 'Pods'
➜ Explicit dependency on target 'TPCircularBuffer' in project 'Pods'
➜ Explicit dependency on target 'CocoaAsyncSocket' in project 'Pods'
➜ Explicit dependency on target 'TIoTLinkKit_FLV' in project 'Pods'
➜ Explicit dependency on target 'TIoTLinkKit_GVoice' in project 'Pods'
➜ Explicit dependency on target 'TIoTLinkKit_SoundTouch' in project 'Pods'
➜ Explicit dependency on target 'TIoTLinkKit_XP2P' in project 'Pods'
➜ Explicit dependency on target 'TPCircularBuffer' in project 'Pods'
| `- note: in file included from <module-includes>:1:
| `- note: in file included from <module-includes>:1:
| `- note: in file included from [SourcePath]/libs/UniSDK/Base/DCUniBase.framework/Headers/DCUniBase.h:31:
| `- warning: 'UILocalNotification' is deprecated: first deprecated in iOS 10.0 - Use UserNotifications Framework's UNNotificationRequest
| `- note: in file included from <module-includes>:1:
| `- note: in file included from <module-includes>:1:
| `- note: in file included from <module-includes>:1:
| `- note: in file included from <module-includes>:1:
| `- note: in file included from <module-includes>:1:
| `- note: in file included from <module-includes>:1:
| `- note: in file included from <module-includes>:1:
| `- note: in file included from <module-includes>:1:
| `- note: in file included from <module-includes>:1:
| `- note: in file included from <module-includes>:1:
| `- note: in file included from <module-includes>:1:
| `- note: in file included from <module-includes>:1:
| `- note: in file included from <module-includes>:1:
| `- note: in file included from <module-includes>:1:
| `- note: in file included from <module-includes>:1:
| `- note: in file included from <module-includes>:1:
| `- note: in file included from <module-includes>:1:
| `- note: in file included from <module-includes>:1:
| `- note: in file included from <module-includes>:1:
| `- note: in file included from <module-includes>:1:
| `- note: in file included from <module-includes>:1:
| `- note: in file included from <module-includes>:1:
| `- note: in file included from <module-includes>:1:
| `- note: in file included from <module-includes>:1:
| `- note: in file included from <module-includes>:1:
| `- note: in file included from <module-includes>:1:
| `- note: in file included from <module-includes>:1:
| `- note: in file included from <module-includes>:1:
| `- note: in file included from <module-includes>:1:
| `- note: in file included from <module-includes>:1:
| `- note: in file included from <module-includes>:1:
| `- note: in file included from <module-includes>:1:
| `- note: in file included from <module-includes>:1:
| `- note: in file included from <module-includes>:1:
| `- note: in file included from <module-includes>:1:
| `- note: in file included from <module-includes>:1:
| `- note: in file included from <module-includes>:1:
| `- note: in file included from <module-includes>:1:
| `- note: in file included from <module-includes>:1:
| `- note: in file included from <module-includes>:1:
| `- note: in file included from <module-includes>:1:
| `- note: in file included from <module-includes>:1:
| `- note: in file included from <module-includes>:1:
| `- note: in file included from <module-includes>:1:
| `- note: in file included from <module-includes>:1:
| `- note: in file included from <module-includes>:1:
| `- note: in file included from <module-includes>:1:
| `- note: in file included from <module-includes>:1:
| `- note: in file included from <module-includes>:1:
| `- note: in file included from <module-includes>:1:
| `- note: in file included from <module-includes>:1:
| `- note: in file included from <module-includes>:1:
| `- note: in file included from <module-includes>:1:
| `- note: in file included from <module-includes>:1:
| `- note: in file included from [PackagePath]/uni_modules/tx-iot-video/Pods/TIoTLinkKit_IJKPlayer/Source/IJKPlayer-iOS/IJKMediaFramework.framework/Headers/IJKMediaFramework.h:34:
| `- warning: 'MPMoviePlayerController' is deprecated: first deprecated in iOS 9.0 - Use AVPlayerViewController in AVKit
| `- note: in file included from <module-includes>:1:
| `- note: in file included from [PackagePath]/uni_modules/tx-iot-video/Pods/TIoTLinkKit_IJKPlayer/Source/IJKPlayer-iOS/IJKMediaFramework.framework/Headers/IJKMediaFramework.h:40:
| `- note: in file included from <module-includes>:1:
| `- note: in file included from [PackagePath]/uni_modules/tx-iot-video/build/Release-iphoneos/TIoTLinkVideo/TIoTLinkVideo.framework/Headers/TIoTLinkVideo-umbrella.h:16:Ld [PackagePath]/uni_modules/tx-iot-video/build/Release-iphoneos/unimoduleTxIotVideo.framework/unimoduleTxIotVideo normal (in target 'unimoduleTxIotVideo' from project 'UTS')
Undefined symbols for architecture arm64:
\"_vDSP_vclip\", referenced from:
record_callback(unsigned char*, int, void*) in TIoTLinkVideo[4](TIoTAVCaptionFLV.o)
\"_vDSP_vfix16\", referenced from:
record_callback(unsigned char*, int, void*) in TIoTLinkVideo[4](TIoTAVCaptionFLV.o)
\"_vDSP_vflt16\", referenced from:
record_callback(unsigned char*, int, void*) in TIoTLinkVideo[4](TIoTAVCaptionFLV.o)
\"_vDSP_vsmul\", referenced from:
record_callback(unsigned char*, int, void*) in TIoTLinkVideo[4](TIoTAVCaptionFLV.o)
ld: symbol(s) not found for architecture arm64
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
STDERR ERROR:
2026-05-18 22:03:39.034 xcodebuild[84877:2964262] [MT] IDERunDestination: Supported platforms for the buildables in the current scheme is empty.
--- xcodebuild: WARNING: Using the first of multiple matching destinations:
{ platform:iOS, id:dvtdevice-DVTiPhonePlaceholder-iphoneos:placeholder, name:Any iOS Device }
{ platform:macOS, arch:arm64, variant:Designed for [iPad,iPhone], id:00008112-000D29A41AFB401E, name:My Mac }
{ platform:macOS, arch:arm64, variant:Mac Catalyst, id:00008112-000D29A41AFB401E, name:My Mac }
{ platform:iOS Simulator, id:dvtdevice-DVTiOSDeviceSimulatorPlaceholder-iphonesimulator:placeholder, name:Any iOS Simulator Device }
{ platform:macOS, variant:Mac Catalyst, name:Any Mac }
BUILD FAILED The following build commands failed:
Ld [PackagePath]/uni_modules/tx-iot-video/build/Release-iphoneos/unimoduleTxIotVideo.framework/unimoduleTxIotVideo normal (in target 'unimoduleTxIotVideo' from project 'UTS')
Building workspace UTS with scheme unimoduleTxIotVideo and configuration Release
(2 failures)
1 个回复
Ask小助手 - Ask社区AI助手
从您的反馈来看,您遇到的问题是 uts 插件在云打包时依赖解析失败,导致编译报错。
bug 反馈评审
这个反馈整体上属于有效反馈,问题描述明确,错误日志清晰,定位到了具体的编译失败原因。下面展开详细评审:
1. 反馈内容完整性分析
ios config.json的代码片段,这对于排查 iOS 平台的依赖问题至关重要,内容很完整。config.json或相关依赖库的版本。2. 问题根因分析
根据您提供的错误信息,这个 bug 是成立的,问题根源可以定位到您 uts 插件的 iOS 原生依赖配置上。核心错误是:
检查您提供的
config.json中的frameworks节点,确实缺少了"Accelerate.framework"。这就是打包失败的直接原因。关于“之前可以正常打包”的现象,比较合理的解释是:您所依赖的
TIoTLinkVideo或TIoTLinkKit_XP2P等 Pod 库在较早的版本中可能不需要Accelerate库,或者旧版 HBuilderX 的云打包环境通过其他依赖间接链接了这个库。但库更新后,新版代码直接调用了这些函数,因此必须在config.json中显式声明依赖。3. 修复方案
问题定位非常清晰,修复方案也很直接。请按以下步骤操作:
在你 uts 插件的
uni_modules/tx-iot-video/utssdk/app-ios/目录下,找到config.json文件。在
"frameworks"数组中,添加"Accelerate.framework"。修改后的
config.json文件frameworks部分应类似于:如果修改后问题依旧,或者您需要了解更多关于配置项的细节,可以查阅以下文档:
另外,建议您关注一下 HBuilderX 的更新日志,特别是与“Dead Code Stripping”相关的调整项,了解打包策略的变化也有助于排查此类兼容性问题。您可以参考这个 Issue 案例来加深理解:4.57 云打包 IOS,正常。 升级 4.66 后打包异常。
要回复问题请先登录或注册
公告
更多>相关问题