报错 - Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/...

本文介绍了两种常见iOS项目编译时出现的错误及其解决方案。一种是由于.m文件缺失导致的问题,另一种是由于编译设置不正确引起的问题。针对这两种情况,文章提供了具体的排查和修复步骤。

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

这里有两种情况:

第一种是某xxx.m文件不存在或路径不对,而且里面有5.1什么的

解决方法如下:

在Build Phases-->Complie Sources中找到有两个xxx.m文件,一个正常,一个标红了xxx.m,只要把标红的丢失文件删除掉就行了。



第二种是,里面有4.1什么的

解决方法如下:

在Build Settings 中,
将Apple LLVM compiler 4.1 - Language 中的
c++Standard Library 修改为 
libstdc++(GNU C++ standard library)

 

转载于:https://www.cnblogs.com/gongyuhonglou/p/6064912.html

Appid: __UNI__F5500F0 Command line invocation: /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild archive -sdk iphoneos18.1 -project [PackagePath]/HBuilder.xcodeproj -archivePath [PackagePath]/XArchive/HBuilder.xcarchive -scheme HBuilder -configuration Debug User defaults from command line: IDEArchivePathOverride = [PackagePath]/XArchive/HBuilder.xcarchive IDEPackageSupportUseBuiltinSCM = YES Build settings from command line: SDKROOT = iphoneos18.1 Prepare packages ComputeTargetDependencyGraph note: Building targets in dependency order note: Target dependency graph (1 target) Target 'HBuilder' in project 'HBuilder' (no dependencies) GatherProvisioningInputs CreateBuildDescription ExecuteExternalTool /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -v -E -dM -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.1.sdk -x objective-c -c /dev/null ExecuteExternalTool /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -v -E -dM -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.1.sdk -x c -c /dev/null ExecuteExternalTool /Applications/Xcode.app/Contents/Developer/usr/bin/ibtool --version --output-format xml1 ExecuteExternalTool /Applications/Xcode.app/Contents/Developer/usr/bin/actool --print-asset-tag-combinations --output-format xml1 [PackagePath]/HBuilder/Assets.xcassets ExecuteExternalTool /Applications/Xcode.app/Contents/Developer/usr/bin/actool --version --output-format xml1 ExecuteExternalTool /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc --version ExecuteExternalTool /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld -version_details ExecuteExternalTool /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -v -E
03-19
Ld /Users/qingguo/Library/Developer/Xcode/DerivedData/APP_FFT_Framework-fjxfxozmofjhqzbflrggfayhgspf/Build/Products/Debug-iphoneos/APP_FFT_Framework.framework/APP_FFT_Framework normal (in target 'APP_FFT_Framework' from project 'APP_FFT_Framework') cd /Users/qingguo/Desktop/nounou/yes/QGtest/APP_FFT_Framework /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -Xlinker -reproducible -target arm64-apple-ios18.2 -dynamiclib -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.2.sdk -O0 -L/Users/qingguo/Library/Developer/Xcode/DerivedData/APP_FFT_Framework-fjxfxozmofjhqzbflrggfayhgspf/Build/Intermediates.noindex/EagerLinkingTBDs/Debug-iphoneos -L/Users/qingguo/Library/Developer/Xcode/DerivedData/APP_FFT_Framework-fjxfxozmofjhqzbflrggfayhgspf/Build/Products/Debug-iphoneos -L/opt/homebrew/lib -F/Users/qingguo/Library/Developer/Xcode/DerivedData/APP_FFT_Framework-fjxfxozmofjhqzbflrggfayhgspf/Build/Intermediates.noindex/EagerLinkingTBDs/Debug-iphoneos -F/Users/qingguo/Library/Developer/Xcode/DerivedData/APP_FFT_Framework-fjxfxozmofjhqzbflrggfayhgspf/Build/Products/Debug-iphoneos -filelist /Users/qingguo/Library/Developer/Xcode/DerivedData/APP_FFT_Framework-fjxfxozmofjhqzbflrggfayhgspf/Build/Intermediates.noindex/APP_FFT_Framework.build/Debug-iphoneos/APP_FFT_Framework.build/Objects-normal/arm64/APP_FFT_Framework.LinkFileList -install_name @rpath/APP_FFT_Framework.framework/APP_FFT_Framework -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -rpath -Xlinker @loader_path/Frameworks -dead_strip -Xlinker -object_path_lto -Xlinker /Users/qingguo/Library/Developer/Xcode/DerivedData/APP_FFT_Framework-fjxfxozmofjhqzbflrggfayhgspf/Build/Intermediates.noindex/APP_FFT_Framework.build/Debug-iphoneos/APP_FFT_Framework.build/Objects-normal/arm64/APP_FFT_Framework_lto.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -L/opt/homebrew/lib\ -lgsl\ -lgslcblas -compatibility_version 1 -current_version 1 -Xlinker -dependency_info -Xlinker /Users/qingguo/Library/Developer/Xcode/DerivedData/APP_FFT_Framework-fjxfxozmofjhqzbflrggfayhgspf/Build/Intermediates.noindex/APP_FFT_Framework.build/Debug-iphoneos/APP_FFT_Framework.build/Objects-normal/arm64/APP_FFT_Framework_dependency_info.dat -o /Users/qingguo/Library/Developer/Xcode/DerivedData/APP_FFT_Framework-fjxfxozmofjhqzbflrggfayhgspf/Build/Products/Debug-iphoneos/APP_FFT_Framework.framework/APP_FFT_Framework ld: warning: search path '/opt/homebrew/lib -lgsl -lgslcblas' not found Undefined symbols for architecture arm64: "_gsl_interp_cspline_periodic", referenced from: _test_csplinep in test.o _test_csplinep2 in test.o "_gsl_spline_eval_deriv", referenced from: _bicubic_init in bicubic.o _bicubic_init in bicubic.o _bicubic_init in bicubic.o "_gsl_vector_alloc", referenced from: _bicubic_init in bicubic.o _bicubic_init in bicubic.o _bicubic_init in bicubic.o _bicubic_init in bicubic.o _bicubic_init in bicubic.o _bicubic_init in bicubic.o "_gsl_vector_free", referenced from: _bicubic_init in bicubic.o _bicubic_init in bicubic.o _bicubic_init in bicubic.o _bicubic_init in bicubic.o _bicubic_init in bicubic.o _bicubic_init in bicubic.o "_gsl_vector_set", referenced from: _bicubic_init in bicubic.o _bicubic_init in bicubic.o _bicubic_init in bicubic.o _bicubic_init in bicubic.o _bicubic_init in bicubic.o _bicubic_init in bicubic.o "_gsl_vector_view_array", referenced from: _cspline_init in cspline.o _cspline_init in cspline.o _cspline_init in cspline.o _cspline_init in cspline.o ld: symbol(s) not found for architecture arm64 clang++: error: linker command failed with exit code 1 (use -v to see invocation)
最新发布
03-21
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值