442623641 / cordova-plugin-aliyunpush Goto Github PK
View Code? Open in Web Editor NEW阿里云消息推送插件
阿里云消息推送插件
ld: framework not found UTDID
clang: error: linker command failed with exit code 1 (use -v to see invocation)
The following build commands failed:
Ld build/emulator/newApp.app/newApp normal x86_64
(1 failure)
(node:6414) UnhandledPromiseRejectionWarning: Error code 65 for command: xcodebuild with args: -xcconfig,/Users/liqinong/Desktop/liqinong/newApp/newApp/platforms/ios/cordova/build-debug.xcconfig,-workspace,newApp.xcworkspace,-scheme,newApp,-configuration,Debug,-sdk,iphonesimulator,-destination,platform=iOS Simulator,name=iPhone X,build,CONFIGURATION_BUILD_DIR=/Users/liqinong/Desktop/liqinong/newApp/newApp/platforms/ios/build/emulator,SHARED_PRECOMPS_DIR=/Users/liqinong/Desktop/liqinong/newApp/newApp/platforms/ios/build/sharedpch
(node:6414) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:6414) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
如题
AliyunPush.m:87:56: error: no known class method for selector 'sharedSevenAppNotificationLauncher'
NSString *deviceId = [[AliyunNotificationLauncher sharedSevenAppNotificationLauncher] getDeviceId];
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/liqinong/Desktop/liqinong/newApp/newApp/platforms/ios/newApp/Plugins/cordova-plugin-aliyunpush/AliyunPush.m:109:38: error: no known class method for selector 'sharedSevenAppNotificationLauncher'
[[AliyunNotificationLauncher sharedSevenAppNotificationLauncher] bindAccountWithAccount:account andCallback:^(BOOL result) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/liqinong/Desktop/liqinong/newApp/newApp/platforms/ios/newApp/Plugins/cordova-plugin-aliyunpush/AliyunPush.m:133:34: error: no known class method for selector 'sharedSevenAppNotificationLauncher'
[[AliyunNotificationLauncher sharedSevenAppNotificationLauncher] bindTagsWithTags:tags andCallback:^(BOOL result) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/liqinong/Desktop/liqinong/newApp/newApp/platforms/ios/newApp/Plugins/cordova-plugin-aliyunpush/AliyunPush.m:154:34: error: no known class method for selector 'sharedSevenAppNotificationLauncher'
[[AliyunNotificationLauncher sharedSevenAppNotificationLauncher] unbindTagsWithTags:tags andCallback:^(BOOL result) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/liqinong/Desktop/liqinong/newApp/newApp/platforms/ios/newApp/Plugins/cordova-plugin-aliyunpush/AliyunPush.m:175:34: error: no known class method for selector 'sharedSevenAppNotificationLauncher'
[[AliyunNotificationLauncher sharedSevenAppNotificationLauncher] listTagsAndCallback:^(id result) {5 errors generated.
1、src/ios/Plugins/AppDelegate+AliyunPush.m
第62行NSLog(@"---applicationDidBecomeActive----")后面少了一个分号,会导致build报错
2、aliyunpush.js中getRegisterId没有失败回调函数,会导致用的时候自己写的失败回调不会被执行
getRegisterId: function(successCallback, errorCallback) {
this.callNative('getRegisterId', [], successCallback, errorCallback);
}
3、在plugin.xml中的下面添加aps-environment,才能确保生产环境推送成功
<config-file parent="aps-environment" target="*-Debug.plist">
<string>development</string>
</config-file>
<config-file parent="aps-environment" target="*-Release.plist">
<string>production</string>
</config-file>
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.