cordova-plugin-speechrecognition
cordova-plugin-speechrecognition copied to clipboard
My app which is use your plugin not gonna build under iOS with ionic cloud
I try to build my app which is use your SpeechRecognition plugin under iOS in Ionic cloud and get this error
"In file included from /Users/package/workspace/apps-25c2fea9-82/cordova/platforms/ios/CargoMessenger/Plugins/cordova-plugin-speechrecognition/SpeechRecognition.m:5: /Users/package/workspace/apps-25c2fea9-82/cordova/platforms/ios/CargoMessenger/Plugins/cordova-plugin-speechrecognition/SpeechRecognition.h:2:9: fatal error: 'Speech/Speech.h' file not found ** import Speech/Speech.h** ** ^** 1 error generated.
BUILD FAILED "
under Android everything work good.
This plugin introduced in ionic 2 documentation, so I want to understand something wrong with plugin itself or something wrong with build process
I was also having this error until I did a complete update of everything. You might find that this helps. Can you list what version of everything you're on?
This is my package.json configurations
{ "name": "....................", "description": "........................", "license": "Apache-2.0", "scripts": { "clean": "ionic-app-scripts clean", "build": "ionic-app-scripts build", "ionic:build": "ionic-app-scripts build --dev", "ionic:serve": "ionic-app-scripts serve" }, "dependencies": { "@angular/common": "2.2.1", "@angular/compiler": "2.2.1", "@angular/compiler-cli": "2.2.1", "@angular/core": "2.2.1", "@angular/forms": "2.2.1", "@angular/http": "2.2.1", "@angular/platform-browser": "2.2.1", "@angular/platform-browser-dynamic": "2.2.1", "@angular/platform-server": "2.2.1", "@ionic/cloud-angular": "^0.11.0", "@ionic/storage": "1.1.6", "@types/googlemaps": "^3.25.38", "angularfire2": "2.0.0-beta.6", "@types/jasmine": "^2.5.36", "ionic-angular": "^2.1.0", "ionic-native": "^2.5.1", "ionicons": "3.0.0", "moment": "2.15.1", "ng2-translate": "^5.0.0", "rxjs": "5.0.0-beta.12", "zone.js": "^0.6.21" }, "devDependencies": { "@ionic/app-scripts": "^1.1.4", "sw-toolbox": "^3.4.0", "typescript": "2.0.9" }, "cordovaPlugins": [ "cordova-sqlite-storage", "cordova-plugin-inappbrowser", { "locator": "https://github.com/driftyco/cordova-plugin-wkwebview-engine.git", "id": "cordova-plugin-wkwebview-engine" }, "ionic-plugin-keyboard", { "locator": "https://github.com/apache/cordova-plugin-splashscreen.git", "id": "cordova-plugin-splashscreen" }, "cordova-plugin-whitelist", "cordova-plugin-console", "cordova-plugin-statusbar", "cordova-plugin-device", "cordova-plugin-camera", "cordova-plugin-compat", "cordova-plugin-geolocation", "cordova-plugin-media-capture", "phonegap-plugin-barcodescanner", "cordova-plugin-streaming-media", "cordova-plugin-email", "cordova-plugin-file", "cordova-plugin-x-socialsharing" ], "cordovaPlatforms": [ "android", { "platform": "ios", "version": "4.3.0", "locator": "ios" } ] }
hey @TigranOtaryan , @aurothic , Did u get this working ? I'm having the same issue and dont know what to do. If any of you got it working, appreciate any insight.
cheers
I'm running on
global packages:
@ionic/cli-utils : 1.0.0
Cordova CLI : 7.0.0
Ionic CLI : 3.0.0
local packages:
@ionic/app-scripts : 1.3.7
@ionic/cli-plugin-cordova : 1.2.1
@ionic/cli-plugin-ionic-angular : 1.2.0
Cordova Platforms : ios 4.4.0
Ionic Framework : ionic-angular 3.3.0
System:
Node : v7.10.0
OS : OS X El Capitan
Xcode : Xcode 7.3.1 Build version 7D1014
ios-deploy : 1.9.1
ios-sim : 5.0.8
I completely removed and reinstalled everything. That was the only fix I could find and I'm not sure where the issue arose from.
Hey @aurothic , thanks for the reply,
When you say removed and reinstalled everything
, do you mean remove the plugin and reinstall it, or remove the both platform + plugin and reinstall it.
Coz I've done both and couldn't get it working.
And also would you mind sharing your package.json
file please. Following is mine.
{
"name": "myapp",
"version": "0.0.1",
"author": "Ionic Framework",
"homepage": "http://ionicframework.com/",
"private": true,
"scripts": {
"clean": "ionic-app-scripts clean",
"build": "ionic-app-scripts build",
"lint": "ionic-app-scripts lint",
"ionic:build": "ionic-app-scripts build",
"ionic:serve": "ionic-app-scripts serve"
},
"dependencies": {
"@angular/common": "4.1.2",
"@angular/compiler": "4.1.2",
"@angular/compiler-cli": "4.1.2",
"@angular/core": "4.1.2",
"@angular/forms": "4.1.2",
"@angular/http": "4.1.2",
"@angular/platform-browser": "4.1.2",
"@angular/platform-browser-dynamic": "4.1.2",
"@ionic-native/core": "3.10.2",
"@ionic-native/speech-recognition": "^3.10.3",
"@ionic-native/splash-screen": "3.10.2",
"@ionic-native/status-bar": "3.10.2",
"@ionic/storage": "2.0.1",
"cordova-ios": "^4.4.0",
"cordova-plugin-console": "^1.0.5",
"cordova-plugin-device": "^1.1.4",
"cordova-plugin-speechrecognition": "^1.1.2",
"cordova-plugin-splashscreen": "^4.0.3",
"cordova-plugin-statusbar": "^2.2.2",
"cordova-plugin-whitelist": "^1.3.1",
"ionic-angular": "3.3.0",
"ionic-plugin-keyboard": "^2.2.1",
"ionicons": "3.0.0",
"rxjs": "5.1.1",
"sw-toolbox": "3.6.0",
"zone.js": "0.8.11"
},
"devDependencies": {
"@ionic/app-scripts": "1.3.7",
"@ionic/cli-plugin-cordova": "1.2.1",
"@ionic/cli-plugin-ionic-angular": "1.2.0",
"typescript": "2.3.3"
},
"description": "An Ionic project",
"cordova": {
"plugins": {
"cordova-plugin-speechrecognition": {},
"cordova-plugin-console": {},
"cordova-plugin-device": {},
"cordova-plugin-splashscreen": {},
"cordova-plugin-statusbar": {},
"cordova-plugin-whitelist": {},
"ionic-plugin-keyboard": {}
},
"platforms": [
"ios"
]
}
}
cheers, Sam
Sorry for the confusion Sam, I'm at home right now but will do my best to get my package.json to you tomorrow. I mean I completely removed ionic/cordova, plugins, platforms, everything.
As promised.