react-native-sms-sdk
封装的mob sms sdk
Install
npm install --save react-native-sms-sdk
IOS
Manual Installation
- In the XCode's "Project navigator", right click on your project's Libraries folder ➜ Add Files to <...>
- Go to node_modules ➜ react-native-sms-sdk ➜ ios ➜ select ReactNativeSMSSdk.xcodeproj
- Add libReactNativeSMSSdk.a to Build Phases -> Link Binary With Libraries
- Add MOBFoundation.framework,MOBFoundationEx.framework,SMS_SDK.framework to Build Phases ➜ Link Binary With Libraries
- Add $(PROJECT_DIR)/../node_modules/react-native-sms-sdk/ios/SMS_SDK to Build Settings ➜ Framework Search Paths
- Goto Build Phases,and click "+",and click "Add Other...",click " Shift+Cmd+G",and input "/usr/lib",click "GO",add libz.dylib,libicucore.dylib,libstdc++.dylib
- Goto Build Phases,and click "+",add MessageUI.framework,JavaScriptCore.framework,SystemConfiguration.framework,CoreTelephony.framework,AdSupport.framework.
- In the XCode's "Project navigator",click on your project's Libraries folder ➜ReactNativeSMSSdk.xcodeproj➜Build Phases,remove libicucore.A.dylib,libz.1.1dylib,libstdc++.6.0.9.dylib
- Compile and have fun!