Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

framework not found CocoaAsyncSocket #660

Open
Nayab3d opened this issue Jan 13, 2016 · 9 comments
Open

framework not found CocoaAsyncSocket #660

Nayab3d opened this issue Jan 13, 2016 · 9 comments

Comments

@Nayab3d
Copy link

Nayab3d commented Jan 13, 2016

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)

@meghaParmar
Copy link

Add Security.framework to your project target. This worked for me.

@SerggioC
Copy link

SerggioC commented Oct 21, 2019

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?

@SerggioC
Copy link

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'

@InfoAndroid
Copy link

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)

@tinyCoder32
Copy link

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)

@rajanpreetstanza
Copy link

I'm also facing the same issue, anybody got the solution ?

@tinyCoder32
Copy link

I'm also facing the same issue, anybody got the solution ?
image

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.

@skaciroy92
Copy link

I'm also facing the same issue, anybody got the solution ?
image

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...

@coolmagic
Copy link

Worked for us as well by moving $(inherited) at the bottom. thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants