我的config.josn如下:
{
"frameworks": [
"CoreTelephony",
"libz.tbd"
],
"deploymentTarget": "14",
"dependencies-pod-sources": [
"https://github.com/CocoaPods/Specs.git",
"https://github.com/volcengine/volcengine-specs.git"
],
"dependencies-pods": [
{
"name": "SpeechEngineToB",
"version": "0.0.11.3-bugfix"
},
{
"name": "TTNetworkManager",
"version": "4.2.210.20"
}
]
}
报错信息如下:
10:47:14.847 uts插件[thy-speech]编译失败
10:47:14.873 Analyzing dependencies
10:47:14.873 Downloading dependencies
10:47:14.873 Installing SpeechEngineToB (0.0.11.3-bugfix)
10:47:14.873 Installing TTNetworkManager (4.2.210.20)
10:47:14.873 Generating Pods project
10:47:14.873 Integrating client project
10:47:14.873 [!] Please close any current Xcode sessions and use UTS.xcworkspace for this project from now on.
10:47:14.873 ――― MARKDOWN TEMPLATE ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
10:47:14.873 ### Command
10:47:14.873 10:47:14.873 /usr/local/Cellar/cocoapods/1.16.2_1/libexec/bin/pod install 10:47:14.873
10:47:14.873 ### Report
10:47:14.873 What did you do?
10:47:14.873 What did you expect to happen?
10:47:14.873 What happened instead?
10:47:14.873 ### Stack
10:47:14.875 10:47:14.875 CocoaPods : 1.16.2 10:47:14.875 Ruby : ruby 3.4.7 (2025-10-08 revision 7a5688e2a2) +PRISM [x86_64-darwin23] 10:47:14.875 RubyGems : 3.7.2 10:47:14.875 Host : macOS 26.1 (25B78) 10:47:14.875 Xcode : 26.1 (17B55) 10:47:14.875 Git : git version 2.50.1 (Apple Git-155) 10:47:14.876 Ruby lib dir : /usr/local/Cellar/ruby/3.4.7/lib 10:47:14.876 Repositories : bytedance-cocoapods_sdk_source_repo - git - https://github.com/bytedance/cocoapods_sdk_source_repo.git @ f24bcdb3e1b4fc0c8814839fbeb77dd7053ce7f4 10:47:14.876 cocoapods - git - https://github.com/CocoaPods/Specs.git @ a107b439fe0f27d39dd06ae0247022fa5b6ba8e8 10:47:14.876 gitee-mirrors-cocoapods-specs - git - https://gitee.com/mirrors/CocoaPods-Specs.git @ 89fd0cbd960f6c45d2fa1f9d44b19d0d4a8bd7f1 10:47:14.876 pujiaxin33-jxcategoryview - git - https://github.com/pujiaxin33/JXCategoryView.git @ d2bcedd9f12a4241666b87ad6d85a45395a34a6a 10:47:14.876 trunk - CDN - https://cdn.cocoapods.org/ 10:47:14.876 tsinghua-git-cocoapods - git - https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git @ 60aa14af37c752ec8a9243cde24d12df8b086674 10:47:14.876 volcengine-volcengine-specs - git - https://github.com/volcengine/volcengine-specs.git @ df74cae4a6f185ea809fdf495300d70f0cb145f9 10:47:14.876
10:47:14.876 ### Plugins
10:47:14.876 10:47:14.876 cocoapods-deintegrate : 1.0.5 10:47:14.876 cocoapods-plugins : 1.0.0 10:47:14.876 cocoapods-search : 1.0.1 10:47:14.876 cocoapods-trunk : 1.6.0 10:47:14.876 cocoapods-try : 1.2.0 10:47:14.876
10:47:14.876 ### Podfile
10:47:14.876 ``ruby 10:47:14.876 source 'https://cdn.cocoapods.org/' 10:47:14.876 source 'https://github.com/CocoaPods/Specs.git' 10:47:14.876 source 'https://github.com/volcengine/volcengine-specs.git' 10:47:14.876 platform :ios, '14' 10:47:14.876 use_frameworks! 10:47:14.876 install! 'cocoapods', :warn_for_unused_master_specs_repo => false 10:47:14.876 10:47:14.876 target 'unimoduleThySpeech' do 10:47:14.876 pod 'SpeechEngineToB', '0.0.11.3-bugfix' 10:47:14.876 pod 'TTNetworkManager', '4.2.210.20' 10:47:14.876 10:47:14.876 end 10:47:14.876 10:47:14.876 post_install do |installer| 10:47:14.876 installer.pods_project.targets.each do |target| 10:47:14.876 target.build_configurations.each do |config| 10:47:14.876 config.build_settings['MACH_O_TYPE'] = "staticlib" 10:47:14.876 config.build_settings['GCC_WARN_INHIBIT_ALL_WARNINGS'] = 'NO' 10:47:14.876 config.build_settings['GCC_WARN_PEDANTIC'] = 'YES' 10:47:14.876 config.build_settings['GCC_WARN_PEDANTIC_WARNINGS'] = 'YES' 10:47:14.876 config.build_settings['CLANG_WARN_SUSPICIOUS_IMPLICIT_CONVERSION'] = 'NO' 10:47:14.876 end 10:47:14.876 end 10:47:14.876 end 10:47:14.876 10:47:14.876 post_integrate do |installer| 10:47:14.876 libs =find "$PWD/Pods" -iname ".framework" -type d.split(" 10:47:14.876 ") 10:47:14.876 libs.each do |f| 10:47:14.876 name = f.split("/").last.split(".").first 10:47:14.876 execFile = File.expand_path("#{name}", f) 10:47:14.876 if !f.include?('.xcframework') && File.exist?(execFile) 10:47:14.876 outStr =file #{execFile} 10:47:14.876 if outStr.include?('dynamically linked shared library') 10:47:14.876 tr = ('/Users/mac/Documents/HBuilderProjects/火山语音识别/unpackage/cache/uts_standard_ios/modules'.include?(' ')) ? "/Users/mac/Documents/HBuilderProjects/火山语音识别/unpackage/cache/uts_standard_ios/modules" : '/Users/mac/Documents/HBuilderProjects/火山语音识别/unpackage/cache/uts_standard_ios/modules' 10:47:14.876 FileUtils.cp_r(f, tr) 10:47:14.876 end 10:47:14.877 end 10:47:14.877 end 10:47:14.877 end 10:47:14.877 ``` 10:47:14.877 ### Error 10:47:14.877 ``` 10:47:14.877 RuntimeError - [Xcodeproj] Consistency issue: no parent for objectCoreTelephony:FrameworksBuildPhase,FrameworksBuildPhase`
10:47:14.877 /usr/local/Cellar/cocoapods/1.16.2_1/libexec/gems/xcodeproj-1.27.0/lib/xcodeproj/project/object/helpers/groupable_helper.rb:19:in 'Xcodeproj::Project::Object::GroupableHelper.parent'
10:47:14.877 /usr/local/Cellar/cocoapods/1.16.2_1/libexec/gems/xcodeproj-1.27.0/lib/xcodeproj/project/object/build_file.rb:77:in 'Xcodeproj::Project::Object::PBXBuildFile#ascii_plist_annotation'
10:47:14.877 /usr/local/Cellar/cocoapods/1.16.2_1/libexec/gems/xcodeproj-1.27.0/lib/xcodeproj/project.rb:297:in 'block in Xcodeproj::Project#to_ascii_plist'
10:47:14.877 /usr/local/Cellar/cocoapods/1.16.2_1/libexec/gems/xcodeproj-1.27.0/lib/xcodeproj/project.rb:296:in 'Array#each'
10:47:14.877 /usr/local/Cellar/cocoapods/1.16.2_1/libexec/gems/xcodeproj-1.27.0/lib/xcodeproj/project.rb:296:in 'Xcodeproj::Project#to_ascii_plist'
10:47:14.877 /usr/local/Cellar/cocoapods/1.16.2_1/libexec/gems/xcodeproj-1.27.0/lib/xcodeproj/project.rb:365:in 'block in Xcodeproj::Project#save'
10:47:14.877 /usr/local/Cellar/cocoapods/1.16.2_1/libexec/gems/atomos-0.1.3/lib/atomos.rb:21:in 'block in Atomos.atomic_write'
10:47:14.877 /usr/local/Cellar/ruby/3.4.7/lib/ruby/3.4.0/tempfile.rb:444:in 'Tempfile.open'
10:47:14.877 /usr/local/Cellar/cocoapods/1.16.2_1/libexec/gems/atomos-0.1.3/lib/atomos.rb:17:in 'Atomos.atomic_write'
10:47:14.877 /usr/local/Cellar/cocoapods/1.16.2_1/libexec/gems/xcodeproj-1.27.0/lib/xcodeproj/project.rb:364:in 'Xcodeproj::Project#save'
10:47:14.877 /usr/local/Cellar/cocoapods/1.16.2_1/libexec/gems/cocoapods-1.16.2/lib/cocoapods/installer/user_project_integrator.rb:158:in 'block in Pod::Installer::UserProjectIntegrator#save_projects'
10:47:14.877 /usr/local/Cellar/cocoapods/1.16.2_1/libexec/gems/cocoapods-1.16.2/lib/cocoapods/installer/user_project_integrator.rb:156:in 'Array#each'
10:47:14.877 /usr/local/Cellar/cocoapods/1.16.2_1/libexec/gems/cocoapods-1.16.2/lib/cocoapods/installer/user_project_integrator.rb:156:in 'Pod::Installer::UserProjectIntegrator#save_projects'
10:47:14.877 /usr/local/Cellar/cocoapods/1.16.2_1/libexec/gems/cocoapods-1.16.2/lib/cocoapods/installer/user_project_integrator.rb:76:in 'Pod::Installer::UserProjectIntegrator#integrate!'
10:47:14.877 /usr/local/Cellar/cocoapods/1.16.2_1/libexec/gems/cocoapods-1.16.2/lib/cocoapods/installer.rb:929:in 'block in Pod::Installer#integrate_user_project'
10:47:14.877 /usr/local/Cellar/cocoapods/1.16.2_1/libexec/gems/cocoapods-1.16.2/lib/cocoapods/user_interface.rb:64:in 'Pod::UserInterface.section'
10:47:14.877 /usr/local/Cellar/cocoapods/1.16.2_1/libexec/gems/cocoapods-1.16.2/lib/cocoapods/installer.rb:925:in 'Pod::Installer#integrate_user_project'
10:47:14.877 /usr/local/Cellar/cocoapods/1.16.2_1/libexec/gems/cocoapods-1.16.2/lib/cocoapods/installer.rb:185:in 'Pod::Installer#integrate'
10:47:14.877 /usr/local/Cellar/cocoapods/1.16.2_1/libexec/gems/cocoapods-1.16.2/lib/cocoapods/installer.rb:170:in 'Pod::Installer#install!'
10:47:14.877 /usr/local/Cellar/cocoapods/1.16.2_1/libexec/gems/cocoapods-1.16.2/lib/cocoapods/command/install.rb:52:in 'Pod::Command::Install#run'
10:47:14.877 /usr/local/Cellar/cocoapods/1.16.2_1/libexec/gems/claide-1.1.0/lib/claide/command.rb:334:in 'CLAide::Command.run'
10:47:14.877 /usr/local/Cellar/cocoapods/1.16.2_1/libexec/gems/cocoapods-1.16.2/lib/cocoapods/command.rb:52:in 'Pod::Command.run'
10:47:14.877 /usr/local/Cellar/cocoapods/1.16.2_1/libexec/gems/cocoapods-1.16.2/bin/pod:55:in '<top (required)>'
10:47:14.877 /usr/local/Cellar/cocoapods/1.16.2_1/libexec/bin/pod:25:in 'Kernel#load'
10:47:14.877 /usr/local/Cellar/cocoapods/1.16.2_1/libexec/bin/pod:25:in '<main>'
10:47:14.877 ```
10:47:14.877 ――― TEMPLATE END ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
10:47:14.877 [!] Oh no, an error occurred.
10:47:14.877 Search for existing GitHub issues similar to yours:
10:47:14.877 https://github.com/CocoaPods/CocoaPods/search?q=%5BXcodeproj%5D+Consistency+issue%3A+no+parent+for+object+%60CoreTelephony%60%3A+%60FrameworksBuildPhase%60%2C+%60FrameworksBuildPhase%60&type=Issues
10:47:14.877 If none exists, create a ticket, with the template displayed above, on:
10:47:14.877 https://github.com/CocoaPods/CocoaPods/issues/new
10:47:14.877 Be sure to first read the contributing guide for details on how to properly submit a ticket:
10:47:14.877 https://github.com/CocoaPods/CocoaPods/blob/master/CONTRIBUTING.md
10:47:14.877 Don't forget to anonymize any private data!
10:47:14.877 Looking for related issues on cocoapods/cocoapods...
10:47:14.877 Found no similar issues. To create a new issue, please visit:
10:47:14.877 https://github.com/cocoapods/cocoapods/issues/new
10:47:14.877 pod install 失败! 详情点击
0 个回复