`

iOS 下载最新版Xcode #include <string>报错 'string' file not found C++头文件缺失问题

    博客分类:
  • ios
 
阅读更多

下载最新版Xcode  #include <string>报错 'string' file not found C++头文件缺失问题

 

(如果pod项目在编译时会遇到: clang: warning: libstdc++ is deprecated; move to libc++ [-Wdeprecated] 时,也可用同种方案进行解决)

 

将对应文件拷贝到最新版XCode对应目录下

 

将cpp文件夹下的c++拷贝到Xcode对应目录下 (此种方式目前是适用于xcode 10以上的版本,在今天下午的xcode 13中运用该方法,也解决了该问题)

 

```

真机:

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/c++    

模拟器:    

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/include/c++

```

Xcode10中缺少的`libstdc++6.0.9.tbd`

其中文件夹 1、2、3、4 中的文件分别对应复制到Xcode10中的以下4个目录中即可:

```

1/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/

 

2/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/lib/

 

3/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/lib/

 

4/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/lib/

```

Xcode11路径:

Xcode11文件1路径发生改变

```

1/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib

```

 以下是该文件的腾讯微云下载路径:

链接:https://share.weiyun.com/r9XyO1HQ

密码:65wh45

 

 

 

 

 

 

分享到:
评论

相关推荐

    为Xcode9.1添加行操作快捷键 复制行 删除行 上下移动行

    &lt;string&gt;deleteToBeginningOfLine:&lt;/string&gt; &lt;string&gt;moveToEndOfLine:&lt;/string&gt; &lt;string&gt;deleteToBeginningOfLine:&lt;/string&gt; &lt;string&gt;deleteBackward:&lt;/string&gt; &lt;string&gt;moveDown:&lt;/string&gt; &lt;string&gt;...

    xcode9 c++文件

    #include &lt;new&gt; 在xcode10 上找不到 只需/Applications/Xcode9.4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/c++ 拷贝到xcode10 上即可

    Xcode添加空工程模板(内含步骤 模板)

    &lt;string&gt;A basic empty project for iOS development.&lt;/string&gt; &lt;key&gt;IconFile&lt;/key&gt; &lt;string&gt;icon.png&lt;/string&gt; &lt;key&gt;DefaultLocation&lt;/key&gt; &lt;string&gt;$(HOME)/Documents/Projects&lt;/string&gt; &lt;key&gt;Platforms&lt;/...

    Xcode 4.3过审 工程混淆方案--OLLVM编译

    如果项目中包含C++文件,可能会遇到`fatal error: ‘csignal’ file not found`等错误。解决方法是在项目的“Build Settings”的`Header Search Paths`中添加`/Applications/Xcode.app/Contents/Developer/...

    制作IOS企业版App网页扫描二维码下载安装 - 风中亭 - 博客园1

    &lt;string&gt;software-package&lt;/string&gt; &lt;key&gt;url&lt;/key&gt; &lt;string&gt;https://yourserver.com/yourapp.ipa&lt;/string&gt; &lt;/dict&gt; &lt;/array&gt; &lt;key&gt;metadata&lt;/key&gt; &lt;dict&gt; &lt;key&gt;bundle-identifier&lt;/key&gt; &lt;string&gt;...

    ios 调用c++代码

    Xcode作为苹果官方的集成开发环境,支持C++和Objective-C的混合编程,使得我们可以方便地在iOS应用中调用C++代码。下面将详细介绍如何在Xcode中进行C++和Objective-C的混编,以及如何调用C++的STL。 首先,让我们...

    IOS应用源码——一个简单的分享到facebookdemo.zip

    &lt;string&gt;Your App Display Name&lt;/string&gt; &lt;key&gt;LSApplicationQueriesSchemes&lt;/key&gt; &lt;array&gt; &lt;string&gt;fbapi&lt;/string&gt; &lt;string&gt;fb-messenger-api&lt;/string&gt; &lt;string&gt;fbauth2&lt;/string&gt; &lt;string&gt;fbshareextension&lt;/...

    Xcode6中怎么添加空工程模板

    &lt;string&gt;EmptyProject&lt;/string&gt; &lt;key&gt;DISPLAY_NAME&lt;/key&gt; &lt;string&gt;空工程&lt;/string&gt; &lt;key&gt;IDENTIFIER&lt;/key&gt; &lt;string&gt;com.example.EmptyProject&lt;/string&gt; &lt;key&gt;NAME&lt;/key&gt; &lt;string&gt;EmptyProject&lt;/string&gt; &lt;key...

    xcode 老项目报错缺失stdc++.6.0.9 的文件

    在iOS开发过程中,遇到“xcode 老项目报错缺失stdc++.6.0.9 的文件”的问题,这通常意味着项目的构建过程中找不到标准C++库的一个特定版本。stdc++.6.0.9是Apple iOS SDK中的一个组件,包含了C++运行时库的关键部分...

    XCode 15.3 编译私有库 报错问题

    在Libarclite_Files这个压缩包中,可能包含了用于解决这类问题的特定文件,例如,它可能是一个针对旧版Xcode编译的libarclite库的替代版本,或者包含了一些帮助调试或更新库的工具和文档。解压并研究这些文件,可以...

    最新-汽车品牌及车型plist.zip

    &lt;string&gt;A4&lt;/string&gt; &lt;string&gt;A6&lt;/string&gt; &lt;string&gt;Q5&lt;/string&gt; &lt;/array&gt; &lt;key&gt;宝马&lt;/key&gt; &lt;array&gt; &lt;string&gt;3系&lt;/string&gt; &lt;string&gt;5系&lt;/string&gt; &lt;string&gt;X3&lt;/string&gt; &lt;/array&gt; &lt;!-- 其他汽车品牌及其车型...

    解决Xcode10以上编译报错 library not found for "-lstdc++.6"

    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/ tdb放到这个路径 /...

    XCode libstdc++库

    3. **导入头文件**:在需要使用libstdc++的源文件中,正确导入所需的头文件,如`#include &lt;iostream&gt;`,`#include &lt;vector&gt;`等。 4. **更新编译器**:确保你的XCode版本支持libstdc++。虽然XCode 10及以上版本默认...

    plusaes:仅标头的C ++ AES密码库

    开发环境Visual Studio 16 2019(v142) Xcode 11.4(Apple clang 11.0.0) GCC 4.8.5(CentOS 7) GCC 4.4.7(CentOS 6)... # include " plusaes/plusaes.hpp "# include &lt; string&gt;# include &lt; vector&gt;int main () {

    ios-通过plist创建静态cell.zip

    在Xcode中,选择`File &gt; New &gt; File`,然后在模板列表中选择`Property List`。为这个文件命名,比如“TableData.plist”。接着,我们需要在`plist`文件中定义我们的单元格。一个典型的`plist`结构可能是这样的: 1....

    Xcode缺失库 libstdc++.zip

    1. Xcode版本不兼容:某些旧版Xcode可能不包含最新版本的libstdc++,特别是当你尝试编译使用了较新C++特性(如C++11或C++14)的代码时。 2. 项目配置错误:在项目设置中,链接器可能没有正确地指向libstdc++库。你...

    Xcode8运行时报错,缺少FileProvider.framework文件

    在iOS开发过程中,遇到“Xcode8运行时报错,缺少FileProvider.framework文件”的问题,这通常是由于项目中引用了FileProvider框架,但该框架没有被正确地添加到工程中导致的。FileProvider框架是Apple在iOS 9之后...

    解析汽车品牌的plist文件iOS

    &lt;string&gt;德国&lt;/string&gt; &lt;/dict&gt; &lt;key&gt;宝马&lt;/key&gt; &lt;dict&gt; &lt;key&gt;创立年份&lt;/key&gt; &lt;integer&gt;1916&lt;/integer&gt; &lt;key&gt;产地&lt;/key&gt; &lt;string&gt;德国&lt;/string&gt; &lt;/dict&gt; &lt;/dict&gt; ``` 解析这样的文件,我们可以使用Swift...

    iOS 15.3 Xcode 开发包

    **iOS 15.3 Xcode 开发包详解** iOS 15.3是Apple针对其移动操作系统的一次重大更新,旨在提供更好的性能、增强的安全性以及一系列新特性和改进。Xcode作为苹果官方的集成开发环境(IDE),是开发者进行iOS应用开发...

    Synapse TCP/IP Library v24一套通信类和函数库

    Synapse TCP/IP Library具有以下特点:&lt;br&gt; Synapse不是控件,而是一套类和函数库,因此不需要任何安装;&lt;br&gt; Synapse支持Windows下的Delphi、CBuilder和Linux下的Kylix;&lt;br&gt; 支持Winsock或基于阻塞模式的Libc通讯...

Global site tag (gtag.js) - Google Analytics