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

Undefined symbols for architecture x86_64 #116

Closed
nemezis16 opened this issue Dec 19, 2017 · 1 comment
Closed

Undefined symbols for architecture x86_64 #116

nemezis16 opened this issue Dec 19, 2017 · 1 comment

Comments

@nemezis16
Copy link

Hi! I have installed pod 'AppRTC'. I'm trying to run on Simulator or Device but every time It builds with the following error:

 Ld /Users/User1/Library/Developer/Xcode/DerivedData/My_Dose-bvszghhzuxaoqpcrmsjvqqsqjpbn/Build/Products/Debug-iphonesimulator/AppRTC/AppRTC.framework/AppRTC normal x86_64
    cd /Users/User1/Documents/Proj/Proj/Pods
    export IPHONEOS_DEPLOYMENT_TARGET=8.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 x86_64 -dynamiclib -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.2.sdk -L/Users/User1/Library/Developer/Xcode/DerivedData/My_Dose-bvszghhzuxaoqpcrmsjvqqsqjpbn/Build/Products/Debug-iphonesimulator/AppRTC -F/Users/User1/Library/Developer/Xcode/DerivedData/My_Dose-bvszghhzuxaoqpcrmsjvqqsqjpbn/Build/Products/Debug-iphonesimulator/AppRTC -F/Users/User1/Library/Developer/Xcode/DerivedData/My_Dose-bvszghhzuxaoqpcrmsjvqqsqjpbn/Build/Products/Debug-iphonesimulator/SocketRocket -filelist /Users/User1/Library/Developer/Xcode/DerivedData/My_Dose-bvszghhzuxaoqpcrmsjvqqsqjpbn/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/AppRTC.build/Objects-normal/x86_64/AppRTC.LinkFileList -install_name @rpath/AppRTC.framework/AppRTC -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -rpath -Xlinker @loader_path/Frameworks -mios-simulator-version-min=8.0 -dead_strip -Xlinker -object_path_lto -Xlinker /Users/User1/Library/Developer/Xcode/DerivedData/My_Dose-bvszghhzuxaoqpcrmsjvqqsqjpbn/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/AppRTC.build/Objects-normal/x86_64/AppRTC_lto.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -fobjc-link-runtime -lc++ -licucore -lsqlite3 -lstdc++.6 -framework AVFoundation -framework AudioToolbox -framework CFNetwork -framework CoreAudio -framework CoreGraphics -framework CoreMedia -framework CoreVideo -framework GLKit -framework OpenGLES -framework QuartzCore -framework Security -framework AudioToolbox -framework AVFoundation -framework CFNetwork -framework CoreAudio -framework CoreGraphics -framework CoreMedia -framework CoreVideo -framework Foundation -framework GLKit -framework OpenGLES -framework QuartzCore -framework Security -framework SocketRocket -single_module -compatibility_version 1 -current_version 1 -Xlinker -dependency_info -Xlinker /Users/User1/Library/Developer/Xcode/DerivedData/My_Dose-bvszghhzuxaoqpcrmsjvqqsqjpbn/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/AppRTC.build/Objects-normal/x86_64/AppRTC_dependency_info.dat -o /Users/User1/Library/Developer/Xcode/DerivedData/My_Dose-bvszghhzuxaoqpcrmsjvqqsqjpbn/Build/Products/Debug-iphonesimulator/AppRTC/AppRTC.framework/AppRTC

Undefined symbols for architecture x86_64:

  "_OBJC_CLASS_$_RTCSessionDescription", referenced from:
      objc-class-ref in ARDSignalingMessage.o
      objc-class-ref in RTCSessionDescription+JSON.o
      l_OBJC_$_CATEGORY_RTCSessionDescription_$_JSON in RTCSessionDescription+JSON.o
  "_OBJC_CLASS_$_RTCMediaConstraints", referenced from:
      objc-class-ref in ARDAppClient.o
      objc-class-ref in RTCMediaConstraints+JSON.o
      l_OBJC_$_CATEGORY_RTCMediaConstraints_$_JSON in RTCMediaConstraints+JSON.o
  "_OBJC_CLASS_$_RTCPair", referenced from:
      objc-class-ref in ARDAppClient.o
      objc-class-ref in RTCMediaConstraints+JSON.o
  "_OBJC_CLASS_$_RTCICECandidate", referenced from:
      objc-class-ref in ARDSignalingMessage.o
      objc-class-ref in RTCICECandidate+JSON.o
      l_OBJC_$_CATEGORY_RTCICECandidate_$_JSON in RTCICECandidate+JSON.o
  "_OBJC_CLASS_$_RTCICEServer", referenced from:
      objc-class-ref in ARDAppClient.o
      objc-class-ref in RTCICEServer+JSON.o
      l_OBJC_$_CATEGORY_RTCICEServer_$_JSON in RTCICEServer+JSON.o
  "_OBJC_CLASS_$_RTCPeerConnectionFactory", referenced from:
      objc-class-ref in ARDAppClient.o

ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Have anyone faced this issue before, and how can I fix this?
Thanks for any help or pointers to the right direction.

@nemezis16
Copy link
Author

nemezis16 commented Dec 20, 2017

Who will face this issue can follow this steps.
#39 (comment)
It works for me, many thanks @SeanChenU

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

1 participant