导入BmobSDK报错求指导
make测试编译报错内容:
Linking tweak tweak…
Undefined symbols for architecture armv7:
“OBJC_CLASS$_PHAssetResource”, referenced from:
objc-class-ref in BmobSDK
"OBJC_CLASS$PHAssetResourceManager", referenced from:
objc-class-ref in BmobSDK
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [obj/tweak.dylib.ba964c90.unsigned] Error 1
make[1]: *** [internal-library-all] Error 2
make: *** [tweak.all.tweak.variables] Error 2
SDK依赖框架以及dylib都引入了。makefile内容:
tweak_FILES = Tweak.xm
tweak_FRAMEWORKS = UIKit CoreFoundation Foundation CoreGraphics MobileCoreServices CoreTelephony
tweak_FRAMEWORKS += CFNetwork CoreLocation Security SystemConfiguration
tweak_PRIVATE_FRAMEWORKS = AppSupport
tweak_LDFLAGS += -lz.1 -lstdc++ -lxml2 -lz -licucore -lsqlite3 -lc++
tweak_LDFLAGS += BmobSDK.framework/BmobSDK
`
在Xcode上写了几段SDK的代码编译通过. 现在搞不清楚到底该如何找原因,求大神指点!
@snakeninny @tinkl @NavilleZhang @everettjf