1.确认project name & company
create BaiduMobAdNative folder
在BaiduMobAdNative 里面建BaiduMobAdNativeSDKSample, app
在BaiduMobAdNativeSDKSample 右键新建BaiduMobAdNativeSDK, static lib 静态库
target-------BaiduMobAdNativeSDKSample
architectures 添加 $(ARCHS_STANDARD_32_BIT)
other linker flags -lstdc++ -ObjC
linked framework and libraries
Generate Test Coverage Files 和Instrument Program Flow为YES
linked framework and libraries
部分非arc文件 -fno-objc-arc
target-------BaiduMobAdNativeSDKSampleTest
architectures 添加 $(ARCHS_STANDARD_32_BIT)
other linker flags -lstdc++ -ObjC
OCHamcrestIOS.framework
OCMockitoIOS.framework
user header search path $(SRCROOT)/../..
architectures 添加 $(ARCHS_STANDARD_32_BIT)
Generate Test Coverage Files 和Instrument Program Flow为YES
build phases添加 script " XcodeCoverage/exportenv.sh"