## Q1：c_cpp_properties.json文件中的macFrameworkPath参数配置

​官网​​上给定内容如下：

`{  "configurations": [    {      "name": "Mac",      "includePath": ["\${workspaceFolder}/**"],      "defines": [],      "macFrameworkPath": [        "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks"      ],      "compilerPath": "/usr/bin/clang",      "cStandard": "c11",      "cppStandard": "c++17",      "intelliSenseMode": "clang-x64"    }  ],  "version": 4}`

"/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks"

## Q2：NSCocoaErrorDomain相关错误

dsymutil[1705:43670] There was an error parsing the Info.plist for the bundle at URL <0x7fd839d11660>: NSCocoaErrorDomain - 3840

## 附：我目前MAC上能够完整调试运行与正常运行的配置文件内容

【1】launch.json，此文件主要与调试有关，但是也不尽然：

`{    // Use IntelliSense to learn about possible attributes.    // Hover to view descriptions of existing attributes.    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387    "version": "0.2.0",    "configurations": [      {        "name": "C/C++: clang++ build and debug active file",        "type": "cppdbg",        "request": "launch",        "program": "\${fileDirname}/\${fileBasenameNoExtension}",        "args": [],        "stopAtEntry": false,        "cwd": "\${workspaceFolder}",        "environment": [],        "externalConsole": true,        "MIMode": "lldb",        "preLaunchTask": "C/C++: clang++ build active file"      }    ]  }`

dsymutil[1601:31403] There was an error parsing the Info.plist for the bundle at URL <0x7fceb5412c20>: NSCocoaErrorDomain - 3840

`{    "version": "2.0.0",    "tasks": [        {            "type": "shell",            "label": "C/C++: clang++ build active file",            "command": "/usr/bin/clang++",            "args": [                "-std=c++17",                "-stdlib=libc++",                "-g",                "\${file}",                "-o",                "\${fileDirname}/\${fileBasenameNoExtension}"            ],            "options": {                "cwd": "\${workspaceFolder}"            },            "problemMatcher": [                "\$gcc"            ],            "group": "build",            "detail": "Task generated by Debugger."        },        {            "type": "cppbuild",            "label": "C/C++: clang++ 生成活动文件",            "command": "/usr/bin/clang++",            "args": [                "-fcolor-diagnostics",                "-fansi-escape-codes",                "-g",                "\${file}",                "-o",                "\${fileDirname}/\${fileBasenameNoExtension}"            ],            "options": {                "cwd": "\${workspaceFolder}"            },            "problemMatcher": [                "\$gcc"            ],            "group": {                "kind": "build",                "isDefault": true            },            "detail": "调试器生成的任务。"        }    ]}`

【3】c_cpp_properties.json：which allows you to change settings such as the path to the compiler, include paths, which C++ standard to compile against (such as C++17), and more.

`{    "configurations": [      {        "name": "Mac",        "includePath": ["\${workspaceFolder}/**"],        "defines": [],        "macFrameworkPath": [          "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks"        ],        "compilerPath": "/usr/bin/clang",        "cStandard": "c11",        "cppStandard": "c++17",        "intelliSenseMode": "clang-x64"      }    ],    "version": 4  }`

## 后记1

dsymutil[1601:31403] There was an error parsing the Info.plist for the bundle at URL <0x7fceb5412c20>: NSCocoaErrorDomain - 3840

## 后记3

​参考文章​​。调整后的完整内容如下：

`{    "version": "2.0.0",    "presentation": {                "echo": true,                "reveal": "always",                "focus": false,                "panel": "dedicated",  //任务间不共享面板, 同一个任务共享相同面板.                "showReuseMessage": false, //控制是否显示“终端将被任务重用, 按任意键关闭”提示.                "clear": false            },  //如果这是你最后一部分内容，就把这个逗号去掉。    "tasks": [        {            "type": "shell",            "label": "C/C++: clang++ build active file",            "command": "/usr/bin/clang++",            "args": [                "-std=c++17",                "-stdlib=libc++",                "-g",                "\${file}",                "-o",                "\${fileDirname}/\${fileBasenameNoExtension}"            ],            "options": {                "cwd": "\${workspaceFolder}"            },            "problemMatcher": [                "\$gcc"            ],            "group": "build",            "detail": "Task generated by Debugger."        },        {            "type": "cppbuild",            "label": "C/C++: clang++ 生成活动文件",            "command": "/usr/bin/clang++",            "args": [                "-fcolor-diagnostics",                "-fansi-escape-codes",                "-g",                "\${file}",                "-o",                "\${fileDirname}/\${fileBasenameNoExtension}"            ],            "options": {                "cwd": "\${workspaceFolder}"            },            "problemMatcher": [                "\$gcc"            ],            "group": {                "kind": "build",                "isDefault": true            },            "detail": "调试器生成的任务。"        }    ]}`