You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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.
The text was updated successfully, but these errors were encountered: