相关疑难解决方法(0)

React-Native:错误:无法为 iOS 项目安装 CocoaPods 依赖项,这是此模板所必需的

在执行时,npx react-native init MyProject我遇到了以下错误:

? Installing CocoaPods dependencies (this may take a few minutes)
error Error: Failed to install CocoaPods dependencies for iOS project, which is required by this template.
Run Code Online (Sandbox Code Playgroud)

这似乎与之前显示的错误有关:

checking for arm-apple-darwin-gcc... /Library/Developer/CommandLineTools/usr/bin/cc -arch armv7 -isysroot 
checking whether the C compiler works... no
xcrun: error: SDK "iphoneos" cannot be located
xcrun: error: SDK "iphoneos" cannot be located
xcrun: error: SDK "iphoneos" cannot be located
xcrun: error: unable to lookup item 'Path' in SDK 'iphoneos'
Run Code Online (Sandbox Code Playgroud)

XCode 及其 …

ios npm react-native

38
推荐指数
8
解决办法
3万
查看次数

VS代码忽略了c ++调试中的断点

我正在调试VS Code中的c ++代码,但它不会在断点上停止并可视化变量,监视和调用堆栈,它本应该这样做.而不是这个,它在调试控制台中打印:

Breakpoint 1, 0x000000000040074a in main ()
[Inferior 1 (process 9445) exited normally]
The program '/home/hashir/x/a.out' has exited with code 0 (0x00000000)
Run Code Online (Sandbox Code Playgroud)

这是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": "(gdb) Launch",
            "type": "cppdbg",
            "request": "launch",
            "program": "/home/hashir/x/a.out",
            "args": [],
            "stopAtEntry": false,
            "cwd": "/home/hashir/x/",
            "environment": [],
            "externalConsole": true,
            "MIMode": "gdb",
            "setupCommands": [
                {
                    "description": "Enable pretty-printing …
Run Code Online (Sandbox Code Playgroud)

c++ visual-studio-debugging visual-studio-code

3
推荐指数
1
解决办法
2797
查看次数