Xcode 5铛:错误:链接器命令失败,退出代码1(使用-v看到调用)

我为我的移动应用程序项目使用xcode 5。 我尝试构build项目时出现此错误。

ld: warning: directory not found for option '-L\\\\\\\"/Applications/MAMP/htdocs/rmbp/apps/rmbp/iphone/native/WorklightSDK\\\\\\\"' ld: warning: directory not found for option '-L/Applications/MAMP/htdocs/rmbp/apps/rmbp/iphone/native/WikitudeSDK' ld: warning: directory not found for option '-F"/Applications/MAMP/htdocs/rmbp/apps/rmbp/iphone/native/Frameworks"' ld: warning: directory not found for option '-F/Applications/MAMP/htdocs/rmbp/apps/rmbp/iphone/native/WikitudeSDK' ld: framework not found sqlcipher clang: error: linker command failed with exit code 1 (use -v to see invocation) ld: warning: directory not found for option '-L\\\\\\\"/Applications/MAMP/htdocs/rmbp/apps/rmbp/iphone/native/WorklightSDK\\\\\\\"' ld: warning: directory not found for option '-L/Applications/MAMP/htdocs/rmbp/apps/rmbp/iphone/native/WikitudeSDK' ld: warning: directory not found for option '-F"/Applications/MAMP/htdocs/rmbp/apps/rmbp/iphone/native/Frameworks"' ld: warning: directory not found for option '-F/Applications/MAMP/htdocs/rmbp/apps/rmbp/iphone/native/WikitudeSDK' ld: framework not found sqlcipher clang: error: linker command failed with exit code 1 (use -v to see invocation) 

为什么?

这个错误是因为你的项目中缺less了一些库。

检查您的Build Phases – > Link Binary With Libraries 。 您的任何框架可能已经从那里删除。

添加它,并清理和build立你的项目。 它应该工作正常。

希望它可以帮助你。

还有另外一种可能性,就是你在使用Cocoa Pods来安装库,但是在pod install成功执行之后,不能打开项目的工作区( *.xcworkspace )文件。