I am trying to use SwiftSVG framework but linker shows "framework not found"

I clone the git at https://github.com/mchoe/SwiftSVG.git, and:

1. build the SwiftSVGiOS framework

2. drag the SwiftSVGiOS.framework to my project's Embedded Binaries category.

3. a) drag a view to Main.storyboard

b) set the custom class category at the View. (set Class to SVGVIew, Module to SwiftSVGiOS, and defined an key path SVGName to wp, which is my svg file.)


and at that time I compile the project, it shows:

Ld /Users/Rui-Mac/Library/Developer/Xcode/DerivedData/TryChess-aqrlgyjaigsqzohdhqelpqebfjxa/Build/Products/Debug-iphonesimulator/TryChess.app/TryChess normal x86_64
    cd /Users/Rui-Mac/source/Xcodeproject/TryChess
    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/Rui-Mac/Library/Developer/Xcode/DerivedData/TryChess-aqrlgyjaigsqzohdhqelpqebfjxa/Build/Products/Debug-iphonesimulator -F/Users/Rui-Mac/Library/Developer/Xcode/DerivedData/TryChess-aqrlgyjaigsqzohdhqelpqebfjxa/Build/Products/Debug-iphonesimulator -F/Users/Rui-Mac/source/Xcodeproject/TryChess -filelist /Users/Rui-Mac/Library/Developer/Xcode/DerivedData/TryChess-aqrlgyjaigsqzohdhqelpqebfjxa/Build/Intermediates/TryChess.build/Debug-iphonesimulator/TryChess.build/Objects-normal/x86_64/TryChess.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -mios-simulator-version-min=9.3 -Xlinker -no_deduplicate -Xlinker -objc_abi_version -Xlinker 2 -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator -Xlinker -add_ast_path -Xlinker /Users/Rui-Mac/Library/Developer/Xcode/DerivedData/TryChess-aqrlgyjaigsqzohdhqelpqebfjxa/Build/Intermediates/TryChess.build/Debug-iphonesimulator/TryChess.build/Objects-normal/x86_64/TryChess.swiftmodule -framework SwiftSVGiOS -Xlinker -dependency_info -Xlinker /Users/Rui-Mac/Library/Developer/Xcode/DerivedData/TryChess-aqrlgyjaigsqzohdhqelpqebfjxa/Build/Intermediates/TryChess.build/Debug-iphonesimulator/TryChess.build/Objects-normal/x86_64/TryChess_dependency_info.dat -o /Users/Rui-Mac/Library/Developer/Xcode/DerivedData/TryChess-aqrlgyjaigsqzohdhqelpqebfjxa/Build/Products/Debug-iphonesimulator/TryChess.app/TryChess
ld: framework not found SwiftSVGiOS
clang: error: linker command failed with exit code 1 (use -v to see invocation)
 


I click the little arrow button at the right of the Class. But it shows the UIView's head file.


I build a new project and add all the files in SwiftSVG, and it won't copy either. An article says to use an framework, just drag it into the Embedded Binaries category, that is all I need. I have search alot at the web, still confused. What have i missed?

Answered by xiongmao86 in 137456022

Turns out the SwiftSVG had some problem. The framework works fine after I fix the problem, and re-added it into Embedded Binaries, check the copy if needed option.

Accepted Answer

Turns out the SwiftSVG had some problem. The framework works fine after I fix the problem, and re-added it into Embedded Binaries, check the copy if needed option.

I am trying to use SwiftSVG framework but linker shows "framework not found"
 
 
Q