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

时间:2019-02-09 23:45:56

标签: ios objective-c

我目前正在在Xcode 9.4.1上正常运行的iOS项目上工作。

由于苹果将强制所有提交给应用程序的应用程序必须使用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上完全开发的

谢谢您的协助。 ^ _ ^

1 个答案:

答案 0 :(得分:0)

它正在编译预编译的头文件:/ Users / nm / Desktop / temp v2代码/ iphone / from bitbucket / v2-ios-iphone / src / TV_Prefix.pch

将其编译为C ++头文件。我不确定这是因为在文件设置中将其标记为C ++文件,还是在项目中有任何C ++源文件时都将其标记为C ++文件。