Ios Hybrid build not creating after enabling push Notification Permission
1
Hi All, I want to implement Push notification for online hybrid iOS application. I have followed the documentation to register the iOS application in fire base and downloaded GoogleService-Info.plist. As per the documentation for push notification I have downloaded the phone gap package and pasted the .plist file in the config folder as mentioned in the mendix documentation link : https://docs.mendix.com/howto/mobile/setting-up-hybrid-push-notifications After that I imported the phonegap package into my Mac machine and implemented the following commands in the terminal “ npm i && npm run package && npm run platform:ios” . The commands are not executed completely and an error occurred at last while executing the above Commands. Note : Push Notification permission is enabled in the mobile flow of developer portal Please find the below error stack trace : Discovered saved plugin "phonegap-plugin-push". Adding it to the project Installing "phonegap-plugin-push" for ios "framework" tag with type "podspec" is deprecated and will be removed. Please use the "podspec" tag. Failed to install 'phonegap-plugin-push': undefined Failed to restore plugin "phonegap-plugin-push" from config.xml. You might need to try adding it again. Error: CocoaPods was not found. Please install version 1.0.1 or greater from https://cocoapods.org/ Discovered saved plugin "@mendix/cordova-plugin-wkwebview-engine". Adding it to the project Installing "cordova-plugin-wkwebview-engine" for ios Plugin dependency "cordova-plugin-file@6.0.1" already fetched, using that version. Dependent plugin "cordova-plugin-file" already installed on ios. Adding cordova-plugin-wkwebview-engine to package.json Overwriting existing resource file at platforms/ios/NewPushNotification/Resources/config/GoogleService-Info.plist npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! @mendix/mendix-hybrid-app-template@5.0.0 phonegap: `cd build && phonegap "platform" "add" "ios"` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the @mendix/mendix-hybrid-app-template@5.0.0 phonegap script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! /Users/indium/.npm/_logs/2020-08-25T13_57_31_449Z-debug.log npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! @mendix/mendix-hybrid-app-template@5.0.0 platform: `npm run phonegap -- platform "add" "ios"` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the @mendix/mendix-hybrid-app-template@5.0.0 platform script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! /Users/indium/.npm/_logs/2020-08-25T13_57_31_614Z-debug.log npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! @mendix/mendix-hybrid-app-template@5.0.0 platform:ios: `npm run platform -- add ios && cd build/platforms/ios` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the @mendix/mendix-hybrid-app-template@5.0.0 platform:ios script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! /Users/indium/.npm/_logs/2020-08-25T13_57_31_724Z-debug.log Please let us know what is going wrong and any solution to fix the issue. Thanks in Advance!!!
asked
BHARATHIDASAN S
1 answers
0
Hi, after downloading and unpacking the zip you should run the following commands. Also make sure to delete the build folder if already exist, so you can start from scratch. For more info see also https://github.com/mendix/hybrid-app-template#build-run-locally