代码之家  ›  专栏  ›  技术社区  ›  Mike Schmidt

Xcode链接框架错误?

  •  1
  • Mike Schmidt  · 技术社区  · 10 年前

    即使在遵循couchbase网站上的说明并尝试进行一些不同的更改时,我仍然会遇到以下错误。

    Ld /Users/mpschmidt/Library/Developer/Xcode/DerivedData/Resources-
    gawdqzaqxvjlymbelkixzqnweita/Build/Products/Debug-
    iphonesimulator/Resources.app/Resources normal x86_64
    cd /Users/mpschmidt/Documents/Code/Resources
    export IPHONEOS_DEPLOYMENT_TARGET=9.3
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/
    iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents
    /Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/
    usr/bin/clang -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms
    /iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.3.sdk -L/Users/mpschmidt/Library
    /Developer/Xcode/DerivedData/Resources-gawdqzaqxvjlymbelkixzqnweita/Build/Products
    /Debug-iphonesimulator -F/Users/mpschmidt/Library/Developer/Xcode/DerivedData/
    Resources-gawdqzaqxvjlymbelkixzqnweita/Build/Products/Debug-iphonesimulator -    
    F/Users/mpschmidt/Documents/Code/Resources -filelist /Users/mpschmidt/Library/Developer
    /Xcode/DerivedData/
    Resources-gawdqzaqxvjlymbelkixzqnweita/Build/Intermediates/Resources.build/
    Debug-iphonesimulator/Resources.build/Objects-normal/x86_64/Resources.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -mios-simulator-version-min=9.3 
    -Xlinker -no_deduplicate -Xlinker -objc_abi_version 
    -Xlinker 2 -ObjC -L/Applications/Xcode.app/Contents/Developer/Toolchains/
    XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator -Xlinker -add_ast_path -Xlinker /Users/mpschmidt/Library/Developer/Xcode/DerivedData/Resources-gawdqzaqxvjlymbelkixzqnweita/Build/Intermediates/Resources.build/Debug-iphonesimulator/Resources.build/Objects-normal/x86_64/Resources.swiftmodule -framework CouchbaseLiteListener -framework CouchbaseLite -lz -lsqlite3 -framework SystemConfiguration -framework Security -framework CFNetwork 
    -Xlinker -dependency_info -Xlinker /Users/mpschmidt/Library/Developer/Xcode/DerivedData/
    Resources-gawdqzaqxvjlymbelkixzqnweita/Build/Intermediates/Resources.build/
    Debug-iphonesimulator/Resources.build/Objects-normal/x86_64/Resources_dependency_info.dat -o /Users/mpschmidt/Library/Developer/Xcode/DerivedData/
    Resources-gawdqzaqxvjlymbelkixzqnweita/Build/Products/Debug-iphonesimulator/
    Resources.app/Resources
    
    ld: framework not found CouchbaseLite
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    

    这里的错误是什么?我上传了框架,并遵循了所有关于 http://developer.couchbase.com/documentation/mobile/current/develop/training/build-first-ios-app/create-new-project/index.html 顺便说一句,我正在尝试使用swift,我有关于如何使用它的说明,但我不确定在这种情况下这是否重要。

    1 回复  |  直到 10 年前
        1
  •  1
  •   Jens Alfke    10 年前

    它试图将CouchbaseLite链接为一个动态框架( -framework CouchbaseLite )但它实际上是静态的。

    我猜是你不小心下载了Mac版本(这是一个动态框架),而不是iOS版本。

    推荐文章