maxkonovalov / MKDropdownMenu

🔻 Dropdown Menu for iOS with many customizable parameters to suit any needs
MIT License
531 stars 83 forks source link

Library not found for -lMKDropdownMenu #36

Open madelinezec opened 6 years ago

madelinezec commented 6 years ago

I installed MKDropdownMenu with CocoaPods. I added, import "MKDropdownMenu.h" to the ViewController.h file where I use MKDropdownMenu.

When I run my app, it crashes with , Linker Command failed with exit code 1

The full crash message is here:

Ld /Users/madelinezec/Library/Developer/Xcode/DerivedData/Leaflet-djeecvpagrsvxibmnayfiowcsnjt/Build/Intermediates.noindex/Leaflet.build/Debug-iphonesimulator/Leaflet-US.build/Objects-normal/i386/Leaflet-US normal i386
    cd /Users/madelinezec/temp_leaf/leafsnap-app/Leaflet-Localized
    export IPHONEOS_DEPLOYMENT_TARGET=9.0
    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 i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.0.sdk -L/Users/madelinezec/Library/Developer/Xcode/DerivedData/Leaflet-djeecvpagrsvxibmnayfiowcsnjt/Build/Products/Debug-iphonesimulator -L/Users/madelinezec/Library/Developer/Xcode/DerivedData/Leaflet-djeecvpagrsvxibmnayfiowcsnjt/Build/Products/Debug-iphonesimulator/MKDropdownMenu -F/Users/madelinezec/Library/Developer/Xcode/DerivedData/Leaflet-djeecvpagrsvxibmnayfiowcsnjt/Build/Products/Debug-iphonesimulator -filelist /Users/madelinezec/Library/Developer/Xcode/DerivedData/Leaflet-djeecvpagrsvxibmnayfiowcsnjt/Build/Intermediates.noindex/Leaflet.build/Debug-iphonesimulator/Leaflet-US.build/Objects-normal/i386/Leaflet-US.LinkFileList -mios-simulator-version-min=9.0 -dead_strip -Xlinker -object_path_lto -Xlinker /Users/madelinezec/Library/Developer/Xcode/DerivedData/Leaflet-djeecvpagrsvxibmnayfiowcsnjt/Build/Intermediates.noindex/Leaflet.build/Debug-iphonesimulator/Leaflet-US.build/Objects-normal/i386/Leaflet-US_lto.o -Xlinker -no_deduplicate -Xlinker -objc_abi_version -Xlinker 2 -Xlinker -final_output -Xlinker /Applications/Leaflet-US.app/Leaflet-US -fobjc-link-runtime -ObjC -lMKDropdownMenu -Xlinker -sectcreate -Xlinker __TEXT -Xlinker __entitlements -Xlinker /Users/madelinezec/Library/Developer/Xcode/DerivedData/Leaflet-djeecvpagrsvxibmnayfiowcsnjt/Build/Intermediates.noindex/Leaflet.build/Debug-iphonesimulator/Leaflet-US.build/Leaflet-US.app.xcent -framework AVFoundation -lz.1.2.5 -framework Foundation -framework UIKit -framework CoreGraphics -framework CoreData -framework CoreLocation -framework MapKit -framework QuartzCore -framework CFNetwork -framework MobileCoreServices -framework SystemConfiguration -lPods-Leaflet-US -Xlinker -dependency_info -Xlinker /Users/madelinezec/Library/Developer/Xcode/DerivedData/Leaflet-djeecvpagrsvxibmnayfiowcsnjt/Build/Intermediates.noindex/Leaflet.build/Debug-iphonesimulator/Leaflet-US.build/Objects-normal/i386/Leaflet-US_dependency_info.dat -o /Users/madelinezec/Library/Developer/Xcode/DerivedData/Leaflet-djeecvpagrsvxibmnayfiowcsnjt/Build/Intermediates.noindex/Leaflet.build/Debug-iphonesimulator/Leaflet-US.build/Objects-normal/i386/Leaflet-US

ld: warning: directory not found for option '-L/Users/madelinezec/Library/Developer/Xcode/DerivedData/Leaflet-djeecvpagrsvxibmnayfiowcsnjt/Build/Products/Debug-iphonesimulator/MKDropdownMenu'
ld: library not found for -lMKDropdownMenu
clang: error: linker command failed with exit code 1 (use -v to see invocation)
maxkonovalov commented 6 years ago

Looks like there’s an issue with your cocoapods installation. Try cleaning the build and removing derived data. You can also try to deintegrate pods altogether and reinstall them fresh.