链接器命令失败,退出代码为 1

linker command failed with exit code 1

我在构建 IOS 项目时收到一些错误和警告

ld: warning: directory not found for option '-L/Users/parikshitpatel/Documents/IphoneDevelopment/FH/funkiorangemobile_iphonehealthadviceapp/Social'
ld: warning: directory not found for option '-LMedia/Twitter/Twitter'
ld: warning: directory not found for option '-LLibrary/Libraries'
ld: warning: directory not found for option '-L/Users/parikshitpatel/Documents/IphoneDevelopment/FH/funkiorangemobile_iphonehealthadviceapp0/Social'
ld: warning: directory not found for option '-L&'
ld: warning: directory not found for option '-LHeaders'
ld: warning: directory not found for option '-LMedia/Twitter'
ld: library not found for -lOAuth
clang: error: linker command failed with exit code 1 (use -v to see invocation)

我不知道如何解决这个错误,有人可以帮忙吗?

您的库路径似乎不正确。
尝试转到:Targets - Build Phases - Link Binary with Libraries
并添加你的 Twitter Library/Framework

在您的文件夹路径中,它们之间有空格。例如:

/Users/parikshitpatel/Documents/IphoneDevelopment/FH/funkiorangemobile_iphonehealthadviceapp/Social Media

在您的库依赖项中写入 Social\ Media

对其他图书馆做同样的事情。

对我来说,我打开的是 .xcodeproj Xcode 项目而不是 .xcworkspace 工作区。我是 iOS 开发的新手,但这感觉类似于在 Android Studio

中打开错误的 gradle 文件