Open Nayab3d opened 8 years ago
Add Security.framework to your project target. This worked for me.
I keep getting the same error after adding Security framework. :§ Cleaned build folder, restarted xcode, restarted podfile etc, It's a new project from scratch. Any ideas?
Ld /Users/Ld /Users/sergio/Library/Developer/Xcode/DerivedData/mqtt-ewwvqsvpmtedaqcdgwiqvzetyfts/Build/Products/Debug-iphonesimulator/mqtt.app/mqtt normal x86_64 (in target 'mqtt' from project 'mqtt') cd /Users/sergio/Desktop/mqtt /Users/sergio/Desktop/Xcode\ 11.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -target x86_64-apple-ios13.1-simulator -isysroot /Users/sergio/Desktop/Xcode\ 11.1.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.1.sdk -L/Users/sergio/Library/Developer/Xcode/DerivedData/mqtt-ewwvqsvpmtedaqcdgwiqvzetyfts/Build/Products/Debug-iphonesimulator -F/Users/sergio/Library/Developer/Xcode/DerivedData/mqtt-ewwvqsvpmtedaqcdgwiqvzetyfts/Build/Products/Debug-iphonesimulator -F/Users/sergio/Library/Developer/Xcode/DerivedData/mqtt-ewwvqsvpmtedaqcdgwiqvzetyfts/Build/Products/Debug-iphonesimulator/CocoaAsyncSocket -F/Users/sergio/Library/Developer/Xcode/DerivedData/mqtt-ewwvqsvpmtedaqcdgwiqvzetyfts/Build/Products/Debug-iphonesimulator/JKVValue -F/Users/sergio/Library/Developer/Xcode/DerivedData/mqtt-ewwvqsvpmtedaqcdgwiqvzetyfts/Build/Products/Debug-iphonesimulator/RMQClient -filelist /Users/sergio/Library/Developer/Xcode/DerivedData/mqtt-ewwvqsvpmtedaqcdgwiqvzetyfts/Build/Intermediates.noindex/mqtt.build/Debug-iphonesimulator/mqtt.build/Objects-normal/x86_64/mqtt.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -rpath -Xlinker @loader_path/Frameworks -Xlinker -rpath -Xlinker @executable_path/Frameworks -dead_strip -Xlinker -object_path_lto -Xlinker /Users/sergio/Library/Developer/Xcode/DerivedData/mqtt-ewwvqsvpmtedaqcdgwiqvzetyfts/Build/Intermediates.noindex/mqtt.build/Debug-iphonesimulator/mqtt.build/Objects-normal/x86_64/mqtt_lto.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -Xlinker -objc_abi_version -Xlinker 2 -fobjc-link-runtime -L/Users/sergio/Desktop/Xcode\ 11.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator -L/usr/lib/swift -Xlinker -add_ast_path -Xlinker /Users/sergio/Library/Developer/Xcode/DerivedData/mqtt-ewwvqsvpmtedaqcdgwiqvzetyfts/Build/Intermediates.noindex/mqtt.build/Debug-iphonesimulator/mqtt.build/Objects-normal/x86_64/mqtt.swiftmodule -framework CFNetwork -framework CocoaAsyncSocket -framework JKVValue -framework RMQClient -framework Security -Xlinker -sectcreate -Xlinker TEXT -Xlinker entitlements -Xlinker /Users/sergio/Library/Developer/Xcode/DerivedData/mqtt-ewwvqsvpmtedaqcdgwiqvzetyfts/Build/Intermediates.noindex/mqtt.build/Debug-iphonesimulator/mqtt.build/mqtt.app-Simulated.xcent -framework Pods_mqtt -Xlinker -dependency_info -Xlinker /Users/sergio/Library/Developer/Xcode/DerivedData/mqtt-ewwvqsvpmtedaqcdgwiqvzetyfts/Build/Intermediates.noindex/mqtt.build/Debug-iphonesimulator/mqtt.build/Objects-normal/x86_64/mqtt_dependency_info.dat -o /Users/sergio/Library/Developer/Xcode/DerivedData/mqtt-ewwvqsvpmtedaqcdgwiqvzetyfts/Build/Products/Debug-iphonesimulator/mqtt.app/mqtt
ld: warning: directory not found for option '-F/Users/sergio/Library/Developer/Xcode/DerivedData/mqtt-ewwvqsvpmtedaqcdgwiqvzetyfts/Build/Products/Debug-iphonesimulator/CocoaAsyncSocket' ld: warning: directory not found for option '-F/Users/sergio/Library/Developer/Xcode/DerivedData/mqtt-ewwvqsvpmtedaqcdgwiqvzetyfts/Build/Products/Debug-iphonesimulator/JKVValue' ld: warning: directory not found for option '-F/Users/sergio/Library/Developer/Xcode/DerivedData/mqtt-ewwvqsvpmtedaqcdgwiqvzetyfts/Build/Products/Debug-iphonesimulator/RMQClient' ld: framework not found CocoaAsyncSocket clang: error: linker command failed with exit code 1 (use -v to see invocation) /Library/Developer/Xcode/DerivedData/mqtt-ewwvqsvpmtedaqcdgwiqvzetyfts/Build/Products/Debug-iphonesimulator/mqtt.app/mqtt normal x86_64 (in target 'mqtt' from project 'mqtt') cd /Users/sergio/Desktop/mqtt /Users/sergio/Desktop/Xcode\ 11.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -target x86_64-apple-ios13.1-simulator -isysroot /Users/sergio/Desktop/Xcode\ 11.1.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.1.sdk -L/Users/sergio/Library/Developer/Xcode/DerivedData/mqtt-ewwvqsvpmtedaqcdgwiqvzetyfts/Build/Products/Debug-iphonesimulator -F/Users/sergio/Library/Developer/Xcode/DerivedData/mqtt-ewwvqsvpmtedaqcdgwiqvzetyfts/Build/Products/Debug-iphonesimulator -F/Users/sergio/Library/Developer/Xcode/DerivedData/mqtt-ewwvqsvpmtedaqcdgwiqvzetyfts/Build/Products/Debug-iphonesimulator/CocoaAsyncSocket -F/Users/sergio/Library/Developer/Xcode/DerivedData/mqtt-ewwvqsvpmtedaqcdgwiqvzetyfts/Build/Products/Debug-iphonesimulator/JKVValue -F/Users/sergio/Library/Developer/Xcode/DerivedData/mqtt-ewwvqsvpmtedaqcdgwiqvzetyfts/Build/Products/Debug-iphonesimulator/RMQClient -filelist /Users/sergio/Library/Developer/Xcode/DerivedData/mqtt-ewwvqsvpmtedaqcdgwiqvzetyfts/Build/Intermediates.noindex/mqtt.build/Debug-iphonesimulator/mqtt.build/Objects-normal/x86_64/mqtt.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -rpath -Xlinker @loader_path/Frameworks -Xlinker -rpath -Xlinker @executable_path/Frameworks -dead_strip -Xlinker -object_path_lto -Xlinker /Users/sergio/Library/Developer/Xcode/DerivedData/mqtt-ewwvqsvpmtedaqcdgwiqvzetyfts/Build/Intermediates.noindex/mqtt.build/Debug-iphonesimulator/mqtt.build/Objects-normal/x86_64/mqtt_lto.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -Xlinker -objc_abi_version -Xlinker 2 -fobjc-link-runtime -L/Users/sergio/Desktop/Xcode\ 11.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator -L/usr/lib/swift -Xlinker -add_ast_path -Xlinker /Users/sergio/Library/Developer/Xcode/DerivedData/mqtt-ewwvqsvpmtedaqcdgwiqvzetyfts/Build/Intermediates.noindex/mqtt.build/Debug-iphonesimulator/mqtt.build/Objects-normal/x86_64/mqtt.swiftmodule -framework CFNetwork -framework CocoaAsyncSocket -framework JKVValue -framework RMQClient -framework Security -Xlinker -sectcreate -Xlinker TEXT -Xlinker entitlements -Xlinker /Users/sergio/Library/Developer/Xcode/DerivedData/mqtt-ewwvqsvpmtedaqcdgwiqvzetyfts/Build/Intermediates.noindex/mqtt.build/Debug-iphonesimulator/mqtt.build/mqtt.app-Simulated.xcent -framework Pods_mqtt -Xlinker -dependency_info -Xlinker /Users/sergio/Library/Developer/Xcode/DerivedData/mqtt-ewwvqsvpmtedaqcdgwiqvzetyfts/Build/Intermediates.noindex/mqtt.build/Debug-iphonesimulator/mqtt.build/Objects-normal/x86_64/mqtt_dependency_info.dat -o /Users/sergio/Library/Developer/Xcode/DerivedData/mqtt-ewwvqsvpmtedaqcdgwiqvzetyfts/Build/Products/Debug-iphonesimulator/mqtt.app/mqtt
ld: warning: directory not found for option '-F/Users/sergio/Library/Developer/Xcode/DerivedData/mqtt-ewwvqsvpmtedaqcdgwiqvzetyfts/Build/Products/Debug-iphonesimulator/CocoaAsyncSocket' ld: warning: directory not found for option '-F/Users/sergio/Library/Developer/Xcode/DerivedData/mqtt-ewwvqsvpmtedaqcdgwiqvzetyfts/Build/Products/Debug-iphonesimulator/JKVValue' ld: warning: directory not found for option '-F/Users/sergio/Library/Developer/Xcode/DerivedData/mqtt-ewwvqsvpmtedaqcdgwiqvzetyfts/Build/Products/Debug-iphonesimulator/RMQClient' ld: framework not found CocoaAsyncSocket clang: error: linker command failed with exit code 1 (use -v to see invocation)
Showing All Messages Directory not found for option '-F/Users/sergio/Library/Developer/Xcode/DerivedData/mqtt-ewwvqsvpmtedaqcdgwiqvzetyfts/Build/Products/Debug-iphonesimulator/CocoaAsyncSocket'
Directory not found for option '-F/Users/sergio/Library/Developer/Xcode/DerivedData/mqtt-ewwvqsvpmtedaqcdgwiqvzetyfts/Build/Products/Debug-iphonesimulator/JKVValue'
Directory not found for option '-F/Users/sergio/Library/Developer/Xcode/DerivedData/mqtt-ewwvqsvpmtedaqcdgwiqvzetyfts/Build/Products/Debug-iphonesimulator/RMQClient'
d/Products/Debug-iphonesimulator/CocoaAsyncSocket' ld: library not found for -lCocoaAsyncSocket clang: error: linker command failed with exit code 1 (use -v to see invocation)
ld: warning: directory not found for option '-L-L/Users/X/Library/Developer/Xcode/DerivedData/poducer-gkzdwqghkdxiafbbxjqasdkmvuzp/Build/Intermediates.noindex/ArchiveIntermediates/poducer/BuildProductsPath/Release-iphoneos/CocoaAsyncSocket' ld: library not found for -lCocoaAsyncSocket clang: error: linker command failed with exit code 1 (use -v to see invocation)
I'm also facing the same issue, anybody got the solution ?
I'm also facing the same issue, anybody got the solution ?
Moving $(inherited)
to the bottom of the list in "Library Search Paths" solved the problem for me. Thanks to someone who posted it somewhere. I couldn't find it to referer to it.
I'm also facing the same issue, anybody got the solution ?
Moving
$(inherited)
to the bottom of the list in "Library Search Paths" solved the problem for me. Thanks to someone who posted it somewhere. I couldn't find it to referer to it.
Many Thanks! Worked...
Worked for us as well by moving $(inherited) at the bottom. thanks
I'm getting following error when I build the project.
Ld /Users/kpmd/Library/Developer/Xcode/DerivedData/XMPPCHAT-ahymopwtsevkytdbbxztakjpelaf/Build/Products/Debug-iphonesimulator/XMPPCHAT.app/XMPPCHAT normal x86_64 cd /Users/kpmd/Desktop/Nayab/XMPPCHAT export IPHONEOS_DEPLOYMENT_TARGET=8.4 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.2.sdk -L/Users/kpmd/Library/Developer/Xcode/DerivedData/XMPPCHAT-ahymopwtsevkytdbbxztakjpelaf/Build/Products/Debug-iphonesimulator -L/Users/kpmd/Desktop/Nayab/XMPPCHAT/Pods/XMPPFramework/Vendor/libidn -F/Users/kpmd/Library/Developer/Xcode/DerivedData/XMPPCHAT-ahymopwtsevkytdbbxztakjpelaf/Build/Products/Debug-iphonesimulator -filelist /Users/kpmd/Library/Developer/Xcode/DerivedData/XMPPCHAT-ahymopwtsevkytdbbxztakjpelaf/Build/Intermediates/XMPPCHAT.build/Debug-iphonesimulator/XMPPCHAT.build/Objects-normal/x86_64/XMPPCHAT.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -rpath -Xlinker @loader_path/Frameworks -Xlinker -rpath -Xlinker @executable_path/Frameworks -mios-simulator-version-min=8.4 -Xlinker -objc_abi_version -Xlinker 2 -ObjC -lxml2 -framework CocoaAsyncSocket -framework CocoaLumberjack -framework FMDB -framework JSQMessagesViewController -framework JSQSystemSoundPlayer -framework XMPPFramework -framework xmpp_messenger_ios -ObjC -lxml2 -framework CocoaAsyncSocket -framework CocoaLumberjack -framework FMDB -framework JSQMessagesViewController -framework JSQSystemSoundPlayer -framework XMPPFramework -framework xmpp_messenger_ios -lxml2 -fobjc-arc -fobjc-link-runtime -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator -Xlinker -add_ast_path -Xlinker /Users/kpmd/Library/Developer/Xcode/DerivedData/XMPPCHAT-ahymopwtsevkytdbbxztakjpelaf/Build/Intermediates/XMPPCHAT.build/Debug-iphonesimulator/XMPPCHAT.build/Objects-normal/x86_64/XMPPCHAT.swiftmodule -lresolv.9 -lxml2.2 -framework Security -framework CFNetwork -framework Pods_XMPPCHAT -lidn -Xlinker -dependency_info -Xlinker /Users/kpmd/Library/Developer/Xcode/DerivedData/XMPPCHAT-ahymopwtsevkytdbbxztakjpelaf/Build/Intermediates/XMPPCHAT.build/Debug-iphonesimulator/XMPPCHAT.build/Objects-normal/x86_64/XMPPCHAT_dependency_info.dat -o /Users/kpmd/Library/Developer/Xcode/DerivedData/XMPPCHAT-ahymopwtsevkytdbbxztakjpelaf/Build/Products/Debug-iphonesimulator/XMPPCHAT.app/XMPPCHAT
ld: framework not found CocoaAsyncSocket clang: error: linker command failed with exit code 1 (use -v to see invocation)