Xcode项目无法编译

时间:2016-06-05 21:33:13

标签: c++ xcode

ALL,

我正在尝试为我的应用程序设置Xcode项目。

我确实用dylib库和一个库成功创建了一个项目。我成功设置了依赖项--2个dylibs依赖于库。

之后我能够成功编译一个库。没有错误。

然而,尝试编译依赖于它的dylib之一我得到了错误。在Xcode中显示的构建日志如下:

Ld /Users/igorkorot/dbhandler/dbhandler/Build/Products/Debug/liblibsqlite.dylib normal x86_64
    cd /Users/igorkorot/dbhandler/dbhandler/libsqlite
    export MACOSX_DEPLOYMENT_TARGET=10.8
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -arch x86_64 -dynamiclib -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk -L/Users/igorkorot/dbhandler/dbhandler/Build/Products/Debug -L/Users/igorkorot/dbhandler/dbhandler/dbinterface/build/Debug -F/Users/igorkorot/dbhandler/dbhandler/Build/Products/Debug -filelist /Users/igorkorot/dbhandler/dbhandler/Build/Intermediates/libsqlite.build/Debug/libsqlite.build/Objects-normal/x86_64/libsqlite.LinkFileList -install_name /usr/local/lib/liblibsqlite.dylib -mmacosx-version-min=10.8 -stdlib=libc++ -ldbinterface -single_module -compatibility_version 1 -current_version 1 -Xlinker -dependency_info -Xlinker /Users/igorkorot/dbhandler/dbhandler/Build/Intermediates/libsqlite.build/Debug/libsqlite.build/Objects-normal/x86_64/libsqlite_dependency_info.dat -o /Users/igorkorot/dbhandler/dbhandler/Build/Products/Debug/liblibsqlite.dylib

ld: warning: directory not found for option '-L/Users/igorkorot/dbhandler/dbhandler/dbinterface/build/Debug'
ld: library not found for -ldbinterface
clang: error: linker command failed with exit code 1 (use -v to see invocation)

我不明白这一点。 libdbinterface.a已成功构建。我可以在Build Phases-> Link Binary With Libraries中选择这个库,但由于某些原因,Xcode无法找到它。

现在最大的问题是:我该如何解决?

感谢您提供任何信息。

0 个答案:

没有答案