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

Running Error #17

Open
WebTalentTop opened this issue May 2, 2017 · 1 comment
Open

Running Error #17

WebTalentTop opened this issue May 2, 2017 · 1 comment

Comments

@WebTalentTop
Copy link

clang: error: linker command failed with exit code 1 (use -v to see invocation)
Ld /Users/lv/Library/Developer/Xcode/DerivedData/mySocket-eejbwkwzhnjjjkaekcmqfajzpkjk/Build/Products/Debug/CoreWebSocket.framework/Versions/A/CoreWebSocket normal x86_64
cd /Volumes/Works/MySocket/mySocket/CoreWebSocket
export MACOSX_DEPLOYMENT_TARGET=10.6
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch x86_64 -dynamiclib -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -L/Users/lv/Library/Developer/Xcode/DerivedData/mySocket-eejbwkwzhnjjjkaekcmqfajzpkjk/Build/Products/Debug -F/Users/lv/Library/Developer/Xcode/DerivedData/mySocket-eejbwkwzhnjjjkaekcmqfajzpkjk/Build/Products/Debug -filelist /Users/lv/Library/Developer/Xcode/DerivedData/mySocket-eejbwkwzhnjjjkaekcmqfajzpkjk/Build/Intermediates/CoreWebSocket.build/Debug/CoreWebSocket.build/Objects-normal/x86_64/CoreWebSocket.LinkFileList -install_name /Library/Frameworks/CoreWebSocket.framework/Versions/A/CoreWebSocket -mmacosx-version-min=10.6 -Xlinker -no_deduplicate -framework CoreFoundation -framework CoreServices -lcrypto -single_module -compatibility_version 1 -current_version 1 -Xlinker -dependency_info -Xlinker /Users/lv/Library/Developer/Xcode/DerivedData/mySocket-eejbwkwzhnjjjkaekcmqfajzpkjk/Build/Intermediates/CoreWebSocket.build/Debug/CoreWebSocket.build/Objects-normal/x86_64/CoreWebSocket_dependency_info.dat -o /Users/lv/Library/Developer/Xcode/DerivedData/mySocket-eejbwkwzhnjjjkaekcmqfajzpkjk/Build/Products/Debug/CoreWebSocket.framework/Versions/A/CoreWebSocket
duplicate symbol ___WebSocketFrameOpCodeCString in:
/Users/lv/Library/Developer/Xcode/DerivedData/mySocket-eejbwkwzhnjjjkaekcmqfajzpkjk/Build/Intermediates/CoreWebSocket.build/Debug/CoreWebSocket.build/Objects-normal/x86_64/WebSocket.o
/Users/lv/Library/Developer/Xcode/DerivedData/mySocket-eejbwkwzhnjjjkaekcmqfajzpkjk/Build/Intermediates/CoreWebSocket.build/Debug/CoreWebSocket.build/Objects-normal/x86_64/WebSocketClient.o
duplicate symbol ___WebSocketFrameOpCodeCString in:
/Users/lv/Library/Developer/Xcode/DerivedData/mySocket-eejbwkwzhnjjjkaekcmqfajzpkjk/Build/Intermediates/CoreWebSocket.build/Debug/CoreWebSocket.build/Objects-normal/x86_64/WebSocket.o
/Users/lv/Library/Developer/Xcode/DerivedData/mySocket-eejbwkwzhnjjjkaekcmqfajzpkjk/Build/Intermediates/CoreWebSocket.build/Debug/CoreWebSocket.build/Objects-normal/x86_64/WebSocketFrame.o
ld: 2 duplicate symbols for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

I did follow your instructions step by step.
But I can't run my app with this library.
MacOS 10.12, Xcode 7.3
Hope you guide me.

@cjm10
Copy link

cjm10 commented May 5, 2017

I had a similar problem that I was able to get around by changing the No Common Blocks flag to No.
If you select CoreWebSocket.xcodeproj in the project navigator and then select the target CoreWebSocket, you can find the setting in Build Settings -> Apple LLVM

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

2 participants