triniwiz / nativescript-webrtc

Apache License 2.0
42 stars 25 forks source link

Installing pods... error #4

Closed sargin48 closed 6 years ago

sargin48 commented 6 years ago

when I add it to a running ios app

Error

Installing pods...

[!] Invalid `Podfile` file: The target `Pods-baskonusmobil` already has a platform set..

 #  from /Users/abdullahsargin/sargin/baskonus_mobil/platforms/ios/Podfile:70
 #  -------------------------------------------
 #  # Begin Podfile - /Users/abdullahsargin/sargin/baskonus_mobil/node_modules/nativescript-webrtc-plugin/platforms/ios/Podfile
 >   platform :ios, '9.0'
 #  pod 'GoogleWebRTC', '~> 1.1.24168'
 #  -------------------------------------------
 package.json
"tns-android":  "4.2.0" 
"tns-ios":  "4.2.0" 
"nativescript-webrtc-plugin": "^1.0.2",
triniwiz commented 6 years ago

Did you set the platform version anywhere or are you using another plugin that maybe setting it ?

sargin48 commented 6 years ago

when i remove with this code, can build success tns plugin remove nativescript-webrtc-plugin

when i add plugin build give errror it gives podfile error

package.json

{
  "description": "NativeScript Application",
  "license": "SEE LICENSE IN <your-license-filename>",
  "readme": "NativeScript Application",
  "repository": "<fill-your-repository-here>",
  "nativescript": {
    "id": "com.sargin.baskonus",
    "tns-android": {
      "version": "4.2.0"
    },
    "tns-ios": {
      "version": "4.2.0"
    }
  },
  "dependencies": {
    "@angular/animations": "6.0.3",
    "@angular/common": "6.0.3",
    "@angular/compiler": "6.0.3",
    "@angular/core": "6.0.3",
    "@angular/forms": "6.0.3",
    "@angular/http": "6.0.3",
    "@angular/platform-browser": "6.0.3",
    "@angular/platform-browser-dynamic": "6.0.3",
    "@angular/router": "6.0.3",
    "lodash": "^4.17.10",
    "nativescript-accelerometer": "2.0.1",
    "nativescript-angular": "^6.0.0",
    "nativescript-background-http": "3.3.0",
    "nativescript-camera": "^4.0.2",
    "nativescript-directions": "^1.2.0",
    "nativescript-fresco": "4.0.0",
    "nativescript-geolocation": "4.3.0",
    "nativescript-intl": "3.0.0",
    "nativescript-iqkeyboardmanager": "^1.3.0",
    "nativescript-mapbox": "^4.2.0",
    "nativescript-ngx-fonticon": "^4.2.0",
    "nativescript-plugin-firebase": "^6.6.0",
    "nativescript-socketio": "^3.1.4",
    "nativescript-theme-core": "^1.0.4",
    "nativescript-ui-autocomplete": "3.9.0",
    "nativescript-ui-listview": "3.6.1",
    "nativescript-ui-sidedrawer": "4.3.0",
    "nativescript-webrtc-plugin": "^1.0.2",
    "reflect-metadata": "0.1.12",
    "rxjs": "^6.2.1",
    "rxjs-compat": "^6.2.1",
    "tns-core-modules": "^4.2.0",
    "zone.js": "0.8.26"
  },
  "devDependencies": {
    "@angular-devkit/build-angular": "~0.7.0-rc.0",
    "@angular/compiler-cli": "~6.1.0-beta.1",
    "babel-traverse": "6.26.0",
    "babel-types": "6.26.0",
    "babylon": "6.18.0",
    "lazy": "1.0.11",
    "nativescript-dev-typescript": "0.7.1",
    "nativescript-dev-webpack": "^0.15.1",
    "tns-platform-declarations": "3.4.1",
    "typescript": "~2.7.2"
  }
}
triniwiz commented 6 years ago

It is also set in the mapbox plugin can you try removing it and LMK what happens ?

sargin48 commented 6 years ago

I'm trying it now immediately

sargin48 commented 6 years ago

I'm very confused. remove mapbox and tns update and tns buid ios --> build successfull