处理"文件太小" Xcode中的错误

时间:2018-04-07 10:48:06

标签: ios xcode libc++

我收到此错误{ "name": "example-create-react-app-express", "version": "0.1.0", "private": true, "proxy": "http://localhost:5000/", "dependencies": { "bootstrap": "^3.3.7", "firebase": "^3.6.1", "material-ui": "^0.20.0", "react": "^16.2.0", "react-checkbox-group": "^4.0.1", "react-dom": "^16.2.0", "react-event-timeline": "^1.5.1", "react-notification-system": "^0.2.17", "react-router-dom": "^4.2.2" }, "devDependencies": { "react-scripts": "1.1.1" }, "scripts": { "start": "react-scripts start", "build": "react-scripts build", "test": "react-scripts test --env=jsdom", "eject": "react-scripts eject" } }

我试过ld: file too small (length=19) file '/Users/xxx/xxx/xxx/libc++.dylib' for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)clean/build并没有运气。

类似帖子: post 1 post2

2 个答案:

答案 0 :(得分:0)

尝试修改您的任何源文件,例如添加新行并保存。然后清理您的项目(cmd + Shift + k)并重新生成。它为我解决了问题。

答案 1 :(得分:0)

我在 Xcode 12.5.1 上通过转到顶部栏产品菜单下的“清理构建文件夹”解决了这个问题。