Cocoapods安装AVOSCloudIM出现错误

 
  
为了更好地帮您解决问题,请尽量提供下列信息(可选)  #### 网络环境(WIFI 或者联通、移动 3/4G 等信息)  我的网络环境是:  #### LeanCloud SDK 或者工具的版本号  版本号:3.1.1.1  #### 相关代码  相关代码如下:   #### 相关日志(curl,异常堆栈输出等)  相关日志如下:   Ld /Users/Lance/Library/Developer/Xcode/DerivedData/XListing-fvxbqzqhhjjsvphgsnrrdsntbdwy/Build/Products/Debug-iphonesimulator/Pods-XListing/AVOSCloudIM.framework/AVOSCloudIM normal x86_64 cd /Users/Lance/Documents/XListing/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/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/iPhoneSimulator8.3.sdk -L/Users/Lance/Library/Developer/Xcode/DerivedData/XListing-fvxbqzqhhjjsvphgsnrrdsntbdwy/Build/Products/Debug-iphonesimulator/Pods-XListing -L/Users/Lance/Documents/XListing/Pods/AVOSCloudIM -F/Users/Lance/Library/Developer/Xcode/DerivedData/XListing-fvxbqzqhhjjsvphgsnrrdsntbdwy/Build/Products/Debug-iphonesimulator/Pods-XListing -filelist /Users/Lance/Library/Developer/Xcode/DerivedData/XListing-fvxbqzqhhjjsvphgsnrrdsntbdwy/Build/Intermediates/Pods.build/Debug-iphonesimulator/Pods-XListing-AVOSCloudIM.build/Objects-normal/x86_64/AVOSCloudIM.LinkFileList -install_name @rpath/AVOSCloudIM.framework/AVOSCloudIM -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -rpath -Xlinker @loader_path/Frameworks -Xlinker -objc_abi_version -Xlinker 2 -lAVOSCloudIM -ObjC -fobjc-arc -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=8.0 -framework AVOSCloud -framework Foundation -single_module -compatibility_version 1 -current_version 1 -Xlinker -dependency_info -Xlinker /Users/Lance/Library/Developer/Xcode/DerivedData/XListing-fvxbqzqhhjjsvphgsnrrdsntbdwy/Build/Intermediates/Pods.build/Debug-iphonesimulator/Pods-XListing-AVOSCloudIM.build/Objects-normal/x86_64/AVOSCloudIM_dependency_info.dat -o /Users/Lance/Library/Developer/Xcode/DerivedData/XListing-fvxbqzqhhjjsvphgsnrrdsntbdwy/Build/Products/Debug-iphonesimulator/Pods-XListing/AVOSCloudIM.framework/AVOSCloudIM  Undefined symbols for architecture x86_64: "_utf8_nextCharSafeBody", referenced from: -[AVIMWebSocket _innerPumpScanner] in libAVOSCloudIM.a(AVIMWebSocket.o) ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)    #### 详细的问题描述  问题描述如下:  用Cocoapods安装AVOSCloudIM后运行app出现如上错误,请问如何解决?谢谢

[LeanCloud] tang3w @ 3 months ago

你好,请在 Xcode 工程中的 Link Binary With Libraries 中手动加入 libicucore.dylib:  
 
    

Hxucaa @ 3 months ago

谢谢你的回复,我已经搞定了,虽然并不是完全按照你的建议。 因为是用cocoapods安装的,所以要把libicucore.dylib加在AVOSCloudIM下的Link Binary With Libraries,而非整个app下。  但是你们不能把libicucore加到podspec里吗?



你可能感兴趣的:(Objective-C,tips)