所以我想將OpenTok框架添加到我的代碼中。我從https://tokbox.com/developer/sdks/ios/下載IOS SDK,然後將opentok.framwork文件拖到我的框架列表中。當我建立我的代碼,它得到這個錯誤:將OpenTok框架添加到我的項目中
Ld /Users/hussein/Library/Developer/Xcode/DerivedData/SocieteGeneral-hiagtpmptjkrqjbabjxpjmnshezi/Build/Intermediates/SocieteGeneral.build/Debug-iphoneos/SocieteGeneral.build/Objects-normal/arm64/SocieteGeneral normal arm64
cd /Users/hussein/Projects/ios-client
export IPHONEOS_DEPLOYMENT_TARGET=5.1.1
export PATH="/Applications/Xcode 2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode 2.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode\ 2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -arch arm64 -isysroot /Applications/Xcode\ 2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.0.sdk -L/Users/hussein/Library/Developer/Xcode/DerivedData/SocieteGeneral-hiagtpmptjkrqjbabjxpjmnshezi/Build/Products/Debug-iphoneos -L/opt/vagrant/embedded/lib -F/Users/hussein/Library/Developer/Xcode/DerivedData/SocieteGeneral-hiagtpmptjkrqjbabjxpjmnshezi/Build/Products/Debug-iphoneos -F/Applications/Xcode.app/Contents/Developer/Library/Frameworks -F/Users/hussein/Projects/ios-client -filelist /Users/hussein/Library/Developer/Xcode/DerivedData/SocieteGeneral-hiagtpmptjkrqjbabjxpjmnshezi/Build/Intermediates/SocieteGeneral.build/Debug-iphoneos/SocieteGeneral.build/Objects-normal/arm64/SocieteGeneral.LinkFileList -miphoneos-version-min=5.1.1 -dead_strip -force_load -ObjC -mthumb -fobjc-arc -lsqlite3.0 -fobjc-arc -fobjc-link-runtime -framework GLKit -framework VideoToolbox -framework OpenTok -liconv -lstdc++.6.0.9 -lsqlite3 -framework LocalAuthentication /Users/hussein/Library/Developer/Xcode/DerivedData/SocieteGeneral-hiagtpmptjkrqjbabjxpjmnshezi/Build/Products/Debug-iphoneos/libCorePlot-CocoaTouch.a -framework MobileCoreServices -framework CoreText -weak_framework AdSupport -framework CoreAudio -weak_framework Social -framework QuartzCore -framework CoreGraphics -weak_framework Accounts -framework AddressBook -framework AddressBookUI -framework AudioToolbox -framework CFNetwork -framework CoreVideo -framework ImageIO -framework Foundation -framework MessageUI -framework OpenGLES -framework Twitter -framework AVFoundation -framework CoreMedia -framework CoreData -framework CoreFoundation -framework MapKit -framework CoreLocation -framework CoreTelephony -framework Security -framework SystemConfiguration -framework UIKit -Xlinker -dependency_info -Xlinker /Users/hussein/Library/Developer/Xcode/DerivedData/SocieteGeneral-hiagtpmptjkrqjbabjxpjmnshezi/Build/Intermediates/SocieteGeneral.build/Debug-iphoneos/SocieteGeneral.build/Objects-normal/arm64/SocieteGeneral_dependency_info.dat -o /Users/hussein/Library/Developer/Xcode/DerivedData/SocieteGeneral-hiagtpmptjkrqjbabjxpjmnshezi/Build/Intermediates/SocieteGeneral.build/Debug-iphoneos/SocieteGeneral.build/Objects-normal/arm64/SocieteGeneral
ld: file not found: -ObjC
clang: error: linker command failed with exit code 1 (use -v to see invocation)
您可以使用cocoaPods嗎? – kholl
我試着用cocoaPods安裝它,我仍然得到相同的錯誤! –