gpt4 book ai didi

ios - 如何找到链接到stdlibc++的依赖项?

转载 作者:行者123 更新时间:2023-11-29 06:01:37 28 4
gpt4 key购买 nike

我目前正在开发一个在 Xcode 9.4.1 上正常运行的 iOS 项目。

由于Apple将强制所有提交到App Store的应用程序必须使用iOS 12.1 SDK或更高版本(包含在Xcode 10.1或更高版本中)构建,因此,我计划升级我当前的项目,以便它可以在 Xcode 10.1 上使用。

但是,我得到了这个stdlibc++ headers not found error..

Showing All Messages
ProcessPCH++ /Users/nm/Library/Developer/Xcode/DerivedData/tv-emcztnhcvllybhaitrhobnyjdasf/Build/Intermediates.noindex/PrecompiledHeaders/SharedPrecompiledHeaders/5421139595203421822/TV_Prefix.pch.gch /Users/nm/Desktop/temp\ v2\ code/iphone/from\ bitbucket/v2-ios-iphone/src/TV_Prefix.pch normal i386 c++ com.apple.compilers.llvm.clang.1_0.compiler (in target: TV_iPhone)
cd /Users/nm/Desktop/temp\ v2\ code/iphone/from\ bitbucket/v2-ios-iphone
/Applications/Xcode10.1/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c++-header -arch i386 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -gmodules -Wno-trigraphs -fpascal-strings -O0 -Werror -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-non-virtual-dtor -Wno-overloaded-virtual -Wno-exit-time-destructors -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wno-empty-body -Wno-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-constant-conversion -Wno-int-conversion -Wno-bool-conversion -Wno-enum-conversion -Wno-float-conversion -Wno-non-literal-null-conversion -Wno-objc-literal-conversion -Wno-shorten-64-to-32 -Wno-newline-eof -Wno-c++11-extensions -isysroot /Applications/Xcode10.1/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk -fasm-blocks -fstrict-aliasing -Wno-deprecated-declarations -Winvalid-offsetof -mios-simulator-version-min=6.0 -g -fvisibility=hidden -fvisibility-inlines-hidden -Wno-sign-conversion -Wno-infinite-recursion -Wno-move -Wno-comma -Wno-block-capture-autoreleasing -Wno-strict-prototypes -Wno-range-loop-analysis -Wno-semicolon-before-method-body -index-store-path /Users/nm/Library/Developer/Xcode/DerivedData/tv-emcztnhcvllybhaitrhobnyjdasf/Index/DataStore -iquote /Users/nm/Library/Developer/Xcode/DerivedData/tv-emcztnhcvllybhaitrhobnyjdasf/Build/Intermediates.noindex/tv.build/Debug-iphonesimulator/TV_iPhone.build/Media\ Everywhere-generated-files.hmap -I/Users/nm/Library/Developer/Xcode/DerivedData/tv-emcztnhcvllybhaitrhobnyjdasf/Build/Intermediates.noindex/tv.build/Debug-iphonesimulator/TV_iPhone.build/Media\ Everywhere-own-target-headers.hmap -I/Users/nm/Library/Developer/Xcode/DerivedData/tv-emcztnhcvllybhaitrhobnyjdasf/Build/Intermediates.noindex/tv.build/Debug-iphonesimulator/TV_iPhone.build/Media\ Everywhere-all-target-headers.hmap -iquote /Users/nm/Library/Developer/Xcode/DerivedData/tv-emcztnhcvllybhaitrhobnyjdasf/Build/Intermediates.noindex/tv.build/Debug-iphonesimulator/TV_iPhone.build/Media\ Everywhere-project-headers.hmap -I/Users/nm/Library/Developer/Xcode/DerivedData/tv-emcztnhcvllybhaitrhobnyjdasf/Build/Products/Debug-iphonesimulator/include -I/Applications/Xcode10.1/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/usr/include/libxml2 -I/Applications/Xcode10.1/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/usr/include/libxml2/libxml -I/Users/nm/Desktop/temp\ v2\ code/iphone/from\ bitbucket/v2-ios-iphone/opensource/Curl -I/Users/nm/Library/Developer/Xcode/DerivedData/tv-emcztnhcvllybhaitrhobnyjdasf/Build/Intermediates.noindex/tv.build/Debug-iphonesimulator/TV_iPhone.build/DerivedSources/i386 -I/Users/nm/Library/Developer/Xcode/DerivedData/tv-emcztnhcvllybhaitrhobnyjdasf/Build/Intermediates.noindex/tv.build/Debug-iphonesimulator/TV_iPhone.build/DerivedSources -F/Users/nm/Library/Developer/Xcode/DerivedData/tv-emcztnhcvllybhaitrhobnyjdasf/Build/Products/Debug-iphonesimulator -F/Users/nm/Desktop/temp\ v2\ code/iphone/from\ bitbucket/v2-ios-iphone -F/Users/nm/Desktop/temp\ v2\ code/iphone/from\ bitbucket/v2-ios-iphone -c /Users/nm/Desktop/temp\ v2\ code/iphone/from\ bitbucket/v2-ios-iphone/src/TV_Prefix.pch -MD -MT dependencies -MF /Users/nm/Library/Developer/Xcode/DerivedData/tv-emcztnhcvllybhaitrhobnyjdasf/Build/Intermediates.noindex/PrecompiledHeaders/SharedPrecompiledHeaders/5421139595203421822/TV_Prefix.pch.d -iquote /Users/nm/Library/Developer/Xcode/DerivedData/tv-emcztnhcvllybhaitrhobnyjdasf/Build/Intermediates.noindex/tv.build/Debug-iphonesimulator/TV_iPhone.build/Media\ Everywhere-generated-files.hmap -I/Users/nm/Library/Developer/Xcode/DerivedData/tv-emcztnhcvllybhaitrhobnyjdasf/Build/Intermediates.noindex/tv.build/Debug-iphonesimulator/TV_iPhone.build/Media\ Everywhere-own-target-headers.hmap -I/Users/nm/Library/Developer/Xcode/DerivedData/tv-emcztnhcvllybhaitrhobnyjdasf/Build/Intermediates.noindex/tv.build/Debug-iphonesimulator/TV_iPhone.build/Media\ Everywhere-all-target-headers.hmap -iquote /Users/nm/Library/Developer/Xcode/DerivedData/tv-emcztnhcvllybhaitrhobnyjdasf/Build/Intermediates.noindex/tv.build/Debug-iphonesimulator/TV_iPhone.build/Media\ Everywhere-project-headers.hmap -I/Users/nm/Library/Developer/Xcode/DerivedData/tv-emcztnhcvllybhaitrhobnyjdasf/Build/Products/Debug-iphonesimulator/include -I/Applications/Xcode10.1/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/usr/include/libxml2 -I/Applications/Xcode10.1/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/usr/include/libxml2/libxml -I/Users/nm/Desktop/temp\ v2\ code/iphone/from\ bitbucket/v2-ios-iphone/opensource/Curl -I/Users/nm/Library/Developer/Xcode/DerivedData/tv-emcztnhcvllybhaitrhobnyjdasf/Build/Intermediates.noindex/tv.build/Debug-iphonesimulator/TV_iPhone.build/DerivedSources/i386 -I/Users/nm/Library/Developer/Xcode/DerivedData/tv-emcztnhcvllybhaitrhobnyjdasf/Build/Intermediates.noindex/tv.build/Debug-iphonesimulator/TV_iPhone.build/DerivedSources -o /Users/nm/Library/Developer/Xcode/DerivedData/tv-emcztnhcvllybhaitrhobnyjdasf/Build/Intermediates.noindex/PrecompiledHeaders/SharedPrecompiledHeaders/5421139595203421822/TV_Prefix.pch.gch --serialize-diagnostics /Users/nm/Library/Developer/Xcode/DerivedData/tv-emcztnhcvllybhaitrhobnyjdasf/Build/Intermediates.noindex/PrecompiledHeaders/SharedPrecompiledHeaders/5421139595203421822/TV_Prefix.pch.dia
error: include path for stdlibc++ headers not found; pass '-std=libc++' on the command line to use the libc++ standard library instead [-Werror,-Wstdlibcxx-not-found]
1 error generated.

我知道 Xcode 10 不支持 libstdc++,我计划进行必要的更改。

由于这个项目最初不是我开发的,并且与它相关的人员已经无法接触到,有什么方法可以找到项目中的哪个文件依赖于stdlibc++ ?另外,我的项目没有使用任何cocoapods并且完全在objective-c上开发

感谢您提前提供的帮助。 ^_^

最佳答案

它正在编译预编译头:/Users/nm/Desktop/temp v2 code/iphone/from bitbucket/v2-ios-iphone/src/TV_Prefix.pch

它将其编译为 C++ 头文件。我不确定这是否是因为它在文件设置中被标记为 C++ 文件,或者是否每当项目中有任何 C++ 源文件时都会这样做。

关于ios - 如何找到链接到stdlibc++的依赖项?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54611990/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com