Skip to content

Your environment is not configured properly and you will not be able to execute local builds #9969

@JimLynchCodes

Description

@JimLynchCodes

Issue Description

I have setup my environment, but I am still getting warnings... tns will not create a build even though things are already installed!

Reproduction

reproduced in this repo: https://github.com/JimLynchCodes/Study-App

Relevant log output (if applicable)

when I run `ns doctor ios`


You are using the deprecated nsconfig.json file. Just be aware that NativeScript now has an improved nativescript.config.(js|ts) file for when you're ready to upgrade this project.
✔ Getting environment information 

There seem to be issues with your configuration.
✔ Getting NativeScript components versions information...
✔ Component nativescript has 8.2.3 version and is up to date.
⚠ Update available for component tns-core-modules. Your current version is 6.5.10 and the latest available version is 6.5.27.
✔ Component tns-ios has * version and is up to date.
✔ Xcode is installed and is configured properly.
✔ xcodeproj is installed and is configured properly.
✔ CocoaPods update is not required.
✔ Your current CocoaPods version is newer than 1.0.0.
✔ Xcode version 13.4.1 satisfies minimum required version 10.
✖ WARNING: CocoaPods is not installed or is not configured properly. 
 You will not be able to build your projects for iOS if they contain plugin with CocoaPod file.
To be able to build such projects, verify that you have installed CocoaPods (`sudo gem install cocoapods`). 

✖ WARNING: Couldn't retrieve installed python packages. 
 We cannot verify your python installation is setup correctly. Please, make sure you have both 'python' and 'pip' installed.
Error while validating Python packages. Error is: Command failed: python -c "import six"
python: error: Failed to locate 'python'.
xcode-select: Failed to locate 'python', requesting installation of command line developer tools.
 

✖ WARNING: The Python 'six' package not found. 
 This package is required by the Debugger library (LLDB) for iOS. You can install it by first making sure you have pip installed and then running 'pip install six' from the terminal. 

Your environment is not configured properly and you will not be able to execute local builds.
Verify that your environment is configured according to the system requirements described at
https://docs.nativescript.org/environment-setup.html#macos-ios.

When I run sudo gem install cocoapods, output says it's installed, but ns doctor still gives the error...

Successfully installed cocoapods-1.11.3
Parsing documentation for cocoapods-1.11.3
Done installing documentation for cocoapods after 1 seconds
1 gem installed

Running python3 -m pip install six:

Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: six in /Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/site-packages (1.15.0)


### Environment

<!-- COPY START -->
```yaml
OS: macOS 12.4
CPU: (12) x64 Intel(R) Core(TM) i7-8700B CPU @ 3.20GHz
Shell: /bin/zsh
node: 13.13.0
npm: 6.14.4
nativescript: 8.2.3

# android
java: Not Found
ndk: Not Found
apis: Not Found
build_tools: Not Found
system_images: Not Found

# ios
xcode: 13.4.1/13F100
cocoapods: Not Found
python: Not Found
python3: 3.8.9
ruby: 2.6.8
platforms: 
  - DriverKit 21.4
  - iOS 15.5
  - macOS 12.3
  - tvOS 15.4
  - watchOS 8.5

Dependencies

"dependencies": {
  "@angular/animations": "~8.2.0",
  "@angular/common": "~8.2.0",
  "@angular/compiler": "~8.2.0",
  "@angular/core": "~8.2.0",
  "@angular/forms": "~8.2.0",
  "@angular/platform-browser": "~8.2.0",
  "@angular/platform-browser-dynamic": "~8.2.0",
  "@angular/router": "~8.2.0",
  "@nativescript/theme": "~2.3.0",
  "nativescript-angular": "~8.21.0",
  "nativescript-auth0": "^3.0.2",
  "nativescript-plugin-firebase": "^10.6.3",
  "nativescript-ui-sidedrawer": "~8.0.0",
  "reflect-metadata": "~0.1.12",
  "rxjs": "^6.4.0",
  "tns-core-modules": "~6.5.0",
  "zone.js": "~0.9.1"
},
"devDependencies": {
  "@angular/compiler-cli": "~8.2.0",
  "@nativescript/schematics": "^9.0.0",
  "@ngtools/webpack": "~8.2.0",
  "codelyzer": "~4.5.0",
  "nativescript-angular-cli": "^0.1.9",
  "nativescript-dev-webpack": "~1.5.0",
  "node-sass": "^4.7.1",
  "tns-ios": "6.5.3",
  "tslint": "~5.19.0",
  "typescript": "~3.5.3"
}

Please accept these terms

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions