#ionic3 #xcode10
#ionic3 #xcode10
Вопрос:
Я хочу создать свое приложение с помощью ionic 3 для «ios», но я получаю следующую ошибку:
ordova/apple_ios_version), continuing anyways.
"framework" tag with type "podspec" is deprecated and will be removed. Please use the "podspec" tag.
Failed to install 'onesignal-cordova-plugin': undefined
CordovaError: Promise rejected with non-error: 'Version should contain only numbers and dots'
at cli.catch.err (/usr/local/lib/node_modules/cordova/bin/cordova:29:15)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:188:7)
[ERROR] An error occurred while running subprocess cordova.
cordova platform add ios --save exited with exit code 1.
Мой package.json :
"dependencies": {
"@angular/animations": "5.2.11",
"@angular/common": "5.2.11",
"@angular/compiler": "5.2.11",
"@angular/compiler-cli": "5.2.11",
"@angular/core": "5.2.11",
"@angular/forms": "5.2.11",
"@angular/http": "5.2.11",
"@angular/platform-browser": "^5.2.11",
"@angular/platform-browser-dynamic": "5.2.11",
"@ionic-native/barcode-scanner": "^4.20.0",
"@ionic-native/core": "^5.1.0",
"@ionic-native/in-app-browser": "^5.4.0",
"@ionic-native/onesignal": "^4.20.0",
"@ionic-native/photo-viewer": "^5.4.0",
"@ionic-native/splash-screen": "~4.18.0",
"@ionic-native/status-bar": "~4.18.0",
"@ionic/storage": "2.2.0",
"brmasker-ionic-3": "^1.6.3",
"com-sarriaroman-photoviewer": "1.2.1",
"cordova-android": "7.1.4",
"cordova-ios": "5.0.0",
"cordova-plugin-device": "^2.0.2",
"cordova-plugin-inappbrowser": "3.0.0",
"cordova-plugin-ionic-keyboard": "^2.1.3",
"cordova-plugin-ionic-webview": "^3.1.2",
"cordova-plugin-splashscreen": "^5.0.2",
"cordova-plugin-statusbar": "^2.4.2",
"cordova-plugin-whitelist": "^1.3.3",
"css-animator": "^2.3.1",
"ionic-angular": "3.9.3",
"ionicons": "3.0.0",
"leaflet": "^1.4.0",
"onesignal-cordova-plugin": "2.4.6",
"phonegap-plugin-barcodescanner": "8.0.1",
"rxjs": "^6.3.3",
"rxjs-compat": "^6.3.3",
"sw-toolbox": "3.6.0",
"web-animations-js": "^2.3.1",
"zone.js": "0.8.29"
},
"devDependencies": {
"@ionic/app-scripts": "3.2.1",
"typescript": "~2.6.2"
},
"description": "An Ionic project",
"cordova": {
"plugins": {
"cordova-plugin-inappbrowser": {},
"phonegap-plugin-barcodescanner": {},
"com-sarriaroman-photoviewer": {},
"onesignal-cordova-plugin": {},
"cordova-plugin-whitelist": {},
"cordova-plugin-statusbar": {},
"cordova-plugin-device": {},
"cordova-plugin-splashscreen": {},
"cordova-plugin-ionic-webview": {
"ANDROID_SUPPORT_ANNOTATIONS_VERSION": "27. "
},
"cordova-plugin-ionic-keyboard": {}
},
"platforms": [
"android"
]
}
Я использую Xcode10, я перепробовал много решений для решения этой проблемы, но я думаю, что они устарели и устарели. Если вы пытались в течение последних дней и получили успешное b-решение, я жду вашего ответа.
Ответ №1:
У меня были предыдущие версии cocoapods на моем устройстве Mac, я удалил их и решил эту проблему, когда установил последнюю стабильную версию.
Комментарии:
1.
sudo gem install cocoapods
на MacOSX