CoreFoundation/CoreFoundation.h‘ file not found 解决方法

在更换电脑并使用迁移助手恢复工作环境后,遇到单测报错,发现Xcode命令行工具未完全迁移。解决方案是备份现有工具,然后通过重新安装Xcodecommandlinetools解决。在安装后,系统提示git需要Xcode,安装后环境恢复正常。最后,确认无误后删除备份。此过程涉及git、Xcode和命令行工具的配置。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

换了电脑通过迁移助手直接回复工作环境,所有东西都没有异常,但是今天跑单测的时候报错
在这里插入图片描述

看来转移开发环境还是不能完整转移啊。

解决方法就是重新安装Xcode command line tools

  1. 备份Xcode command line tools
sudo mv /Library/Developer/CommandLineTools /Library/Developer/CommandLineTools_bak

其实我在这一步后系统就提示我git需要xcode了,点击安装就完事,环境就好了。

  1. 重新安装Xcode command line tools
xcode-select --install
open /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg
ls -lh /System/Library/Frameworks/CoreFoundation.framework/Headers
  1. 确认环境没问题后删除备份即可(1个多g挺大的)

参考:http://heismart.cn/?read-12.htm

执行调试命令以后出现下面输出,无法继续调试 ~ # id uid=0(root) gid=0(root) groups=0(root) ~ # gdb -p 567 GNU gdb (Debian 7.7.1+dfsg-5) 7.7.1 Copyright (C) 2014 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>. Find the GDB manual and other documentation resources online at: <http://www.gnu.org/software/gdb/documentation/>. For help, type "help". Type "apropos word" to search for commands related to "word". Attaching to process 567 Reading symbols from /opt/kerio/winroute/winroute...(no debugging symbols found)...done. Reading symbols from /opt/kerio/winroute/libkvnet.so...(no debugging symbols found)...done. Loaded symbols for /opt/kerio/winroute/libkvnet.so Reading symbols from /opt/kerio/winroute/libkipf.so...(no debugging symbols found)...done. Loaded symbols for /opt/kerio/winroute/libkipf.so Reading symbols from /lib/x86_64-linux-gnu/libpng12.so.0...(no debugging symbols found)...done. Loaded symbols for /lib/x86_64-linux-gnu/libpng12.so.0 Reading symbols from /usr/lib/x86_64-linux-gnu/libqrencode.so.3...(no debugging symbols found)...done. Loaded symbols for /usr/lib/x86_64-linux-gnu/libqrencode.so.3 Reading symbols from /usr/lib/x86_64-linux-gnu/libfbclient.so.2...(no debugging symbols found)...done. Loaded symbols for /usr/lib/x86_64-linux-gnu/libfbclient.so.2 Reading symbols from /opt/kerio/winroute/libkeriogl.so...(no debugging symbols found)...done. Loaded symbols for /opt/kerio/winroute/libkeriogl.so Reading symbols from /opt/kerio/winroute/libQtGui.so.4...(no debugging symbols found)...done. Loaded symbols for /opt/kerio/winroute/libQtGui.so.4 Reading symbols from /opt/kerio/winroute/libQtCore.so.4...(no debugging symbols found)...done. Loaded symbols for /opt/kerio/winroute/libQtCore.so.4 Reading symbols from /usr/lib/x86_64-linux-gnu/libfontconfig.so.1...(no debugging symbols found)...done. Loaded symbols for /usr/lib/x86_64-linux-gnu/libfontconfig.so.1 Reading symbols from /opt/kerio/winroute/libkticonv.so.2...(no debugging symbols found)...done. Loaded symbols for /opt/kerio/winroute/libkticonv.so.2 Reading symbols from /lib/x86_64-linux-gnu/librt.so.1...(no debugging symbols found)...done. Loaded symbols for /lib/x86_64-linux-gnu/librt.so.1 Reading symbols from /lib/x86_64-linux-gnu/libpthread.so.0...(no debugging symbols found)...done. [New LWP 9920] [New LWP 1212] [New LWP 1177] [New LWP 1121] [New LWP 1075] [New LWP 1033] [New LWP 911] [New LWP 910] [New LWP 908] [New LWP 758] [New LWP 756] [New LWP 755] [New LWP 738] [New LWP 737]
03-08
gdb libvo_test_so.so /home/mdc/var/log/npu/coredump/core.\!mnt\!vo_test-26826-46889 GNU gdb (GDB) iAOS3.3 9.2-1.AOS3.3 Copyright (C) 2020 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "aarch64-aos-linux". Type "show configuration" for configuration details. For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>. Find the GDB manual and other documentation resources online at: <http://www.gnu.org/software/gdb/documentation/>. For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from libvo_test_so.so... (No debugging symbols found in libvo_test_so.so) warning: core file may not match specified executable file. [New LWP 26826] [Thread debugging using libthread_db enabled] Using host libthread_db library "/usr/lib64/libthread_db.so.1". Core was generated by `./vo_test --mode=func --scene=VoTestBase'. Program terminated with signal SIGSEGV, Segmentation fault. #0 0x0000e7fbe569cb04 in ?? () Missing separate debuginfos, use: dnf debuginfo-install compiler-rt-builtins-12.--Type <RET> for more, q to quit, c to continue without paging-- 0.1-1.a1.AOS3.3.aarch64 glibc-2.34-AOS3.3.aarch64 (gdb) bt #0 0x0000e7fbe569cb04 in ?? () #1 0x0000e7fbe69677b0 in ?? () from /usr/lib64/libc.so.6 #2 0x0000e7fbe6a9c000 in sys_sigabbrev () from /usr/lib64/libc.so.6 Backtrace stopped: previous frame identical to this frame (corrupt stack?) (gdb) where #0 0x0000e7fbe569cb04 in ?? () #1 0x0000e7fbe69677b0 in ?? () from /usr/lib64/libc.so.6 #2 0x0000e7fbe6a9c000 in sys_sigabbrev () from /usr/lib64/libc.so.6 Backtrace stopped: previous frame identical to this frame (corrupt stack?)
最新发布
07-05
在验证root命令行时报错,显示:warning: no such sysroot directory: '/Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk' fatal error: module map file '/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/std_darwin.MacOSX15.2.sdk.modulemap' not found Failed to load module Darwin Module std not found. <<< cling interactive line includer >>>: fatal error: module file '/private/tmp/root-20250525-18258-2chvbf/root-6.36.00/builddir/lib/_stdint.pcm' not found: module file not found <<< cling interactive line includer >>>: note: imported by module '_Builtin_intrinsics' in '/opt/homebrew/Cellar/root/6.36.00/lib/root/_Builtin_intrinsics.pcm' Failed to load module _Builtin_intrinsics Failed to load module ROOT_Foundation_C Failed to load module ROOT_Config Failed to load module ROOT_Rtypes Failed to load module ROOT_Foundation_Stage1_NoRTTI Failed to load module Core Failed to load module Rint Failed to load module RIO Failed to load module MathCore Failed to load module Hist Failed to load module ROOTDataFrame Failed to load module XMLParser Failed to load module SpectrumPainter Failed to load module RooFitHS3 Failed to load module Core Failed to load module SPlot Failed to load module TreePlayer Failed to load module Gpad Failed to load module Foam Failed to load module ROOTBrowserv7 Failed to load module Physics Failed to load module ROOTBrowsable Failed to load module RCsg Failed to load module _Builtin_intrinsics Failed to load module Rint Failed to load module Minuit2 Failed to load module Thread Failed to load module Imt Failed to load module PyMVA Failed to load module Graf3d Failed to load module FFTW Failed to load module Quadp Failed to load module RooFitMore Failed to load module Hbook Failed to load module Postscript Failed to load module ROOTGraphicsPrimitives Failed to load module Genetic Failed to load module ROOT_Rtypes Failed to load module RSQLite Failed to load module RIO Failed to load module FITSIO Failed to load module ROOTGeomViewer Failed to load module GCocoa Failed to load module MathCore Failed to load module Fumili Failed to load module FitPanel Failed to load module RHTTP Failed to load module HistFactory Failed to load module Smatrix Failed to load module ROOT_Foundation_Stage1_NoRTTI Failed to load module Spectrum Failed to load module ROOTFitPanelv7 Failed to load module ASImageGui Failed to load module Geom Failed to load module MultiProc Failed to load module Net Failed to load module Gviz3d Failed to load module Graf Failed to load module Minuit Failed to load module WebGui6 Failed to load module Eve Failed to load module TMVAUtils Failed to load module RooStats Failed to load module ROOTGpadv7 Failed to load module GeomPainter Failed to load module GuiHtml Failed to load module RMySQL Failed to load module ROOTEve Failed to load module Cling_Runtime_Extra Failed to load module RDAVIX Failed to load module Darwin Failed to load module HistPainter Failed to load module MLP Failed to load module XMLIO Failed to load module ROOTTPython Failed to load module Ged Failed to load module GuiBld Failed to load module TMVA Failed to load module RooFitCodegen Failed to load module ROOTWebDisplay Failed to load module NetxNG Failed to load module RHTTPSniff Failed to load module RooFitXRooFit Failed to load module RGL Failed to load module Tree Failed to load module SQLIO Failed to load module TMVAGui Failed to load module ROOTNTuple Failed to load module ROOTTMVASofie Failed to load module ROOTVecOps Failed to load module RootAuth Failed to load module EG Failed to load module Gui Failed to load module ASImage Failed to load module ROOT_Config Failed to load module Matrix Failed to load module RooFitJSONInterface Failed to load module Recorder Failed to load module Gdml Failed to load module ROOT_Foundation_C Failed to load module ROOTTreeViewer Failed to load module MathMore Failed to load module GenVector Failed to load module Cling_Runtime Failed to load module RooFitCore Failed to load module RooFit Failed to load module Hist Failed to load module ROOTNTupleUtil Failed to load module TreeViewer *** Break *** segmentation violation [/usr/lib/system/libsystem_platform.dylib] _sigtramp (no debug info) [/opt/homebrew/Cellar/root/6.36.00/lib/root/libCling.so] ROOT::TMetaUtils::TNormalizedCtxtImpl::keepTypedef(cling::LookupHelper const&, char const*, bool) (no debug info) [/opt/homebrew/Cellar/root/6.36.00/lib/root/libCling.so] ROOT::TMetaUtils::TNormalizedCtxtImpl::TNormalizedCtxtImpl(cling::LookupHelper const&) (no debug info) [/opt/homebrew/Cellar/root/6.36.00/lib/root/libCling.so] ROOT::TMetaUtils::TNormalizedCtxt::TNormalizedCtxt(cling::LookupHelper const&) (no debug info) [/opt/homebrew/Cellar/root/6.36.00/lib/root/libCling.so] TCling::TCling(char const*, char const*, char const* const*, void*) (no debug info) [/opt/homebrew/Cellar/root/6.36.00/lib/root/libCling.so] CreateInterpreter (no debug info) [/opt/homebrew/Cellar/root/6.36.00/lib/root/libCore.so] TROOT::InitInterpreter() (no debug info) [/opt/homebrew/Cellar/root/6.36.00/lib/root/libCore.so] ROOT::Internal::GetROOT2() (no debug info) [/opt/homebrew/Cellar/root/6.36.00/lib/root/libCore.so] TApplication::TApplication(char const*, int*, char**, void*, int) (no debug info) [/opt/homebrew/Cellar/root/6.36.00/lib/root/libRint.so] TRint::TRint(char const*, int*, char**, void*, int, bool, bool) (no debug info) [/opt/homebrew/Cellar/root/6.36.00/bin/root.exe] main (no debug info) [/usr/lib/dyld] start (no debug info)。请就此把所有缺失的库用终端下载
06-27
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值