Nativescript-cli: tns doctor => cocoapods failed

Created on 6 May 2016  ·  21Comments  ·  Source: NativeScript/nativescript-cli

Hello,

When try to do tns doctor, I have error with Podfile of AFNetworking:

Verifying CocoaPods. This may take more than a minute, please be patient.
  ◝ Installing iOS runtime.(node:85055) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version.
  ◝ Installing iOS [email protected] ../../var/folders/br/8v_dvjf57v33lg60t_711qh00000gn/T/nativescript-check-cocoapods11646-85055-xtr4je.b2w8ode7b9/node_modules/tns-ios
  ◠ Verifying CocoaPods. This may take some time, please be patient..
Analyzing dependencies
[!] The dependency `AFNetworking (~> 1.0)` is not used in any concrete target.

WARNING: There was a problem with CocoaPods
Verify that CocoaPods are configured properly.
There seem to be issues with your configuration.

I've reinstalled so many times cocoapods in v0.39 and in pre release but nothing works.

Can you help me?

Thanks.

bug

All 21 comments

I have this problem too.

Any ideas?

the same

Ditto

Same problem here!

`Verifying CocoaPods. This may take more than a minute, please be patient.
Installing iOS [email protected] ../../var/folders/gn/_vqlg02n1r3_3pb_csvyrqgc0000gn/T/nativescript-check-cocoapods116415-47389-15druqb/node_modules/tns-ios
Verifying CocoaPods. This may take some time, please be patient..
Analyzing dependencies
[!] The dependency "AFNetworking (~> 1.0)" is not used in any concrete target.

WARNING: There was a problem with CocoaPods
Verify that CocoaPods are configured properly.
There seem to be issues with your configuration.
`

same here. I've been stuck on this part of the chapter one tutorial for dayz...

Hey @ejsuncy, though I am getting the error I could able to run the app in the IOS emulator. Probably you can check on that.

Same for me

+1

+1

Also having the same problem. On Running $ tns doctor after the dependency installation, I'm getting [!] The dependencyAFNetworking (~> 1.0)is not used in any concrete target.

I had skipped installing node because I already had it. I ended up installing node 4.4.4 from the website (not with homebrew), which also updated npm to 2.15.1. I then started the tutorial over again, installing nativescript, and everything works as expected now...problem solved for me :)

This issue was resolved with the latest 2.0.1 version of the NativeScript CLI

2.1.1, Ditto

Same here, Version 2.2.1. Is it a Pods problem? Does reinstalling help?

Version 2.2.1. I gave reinstalling all the gems and nativescript a try and it didn't seem to help.

This is the command it seems to be blowing up at:

Errno::EACCES - Permission denied @ dir_s_mkdir - /Users/justin.rassier/Library/Caches/CocoaPods

I also cannot install cocoa pods.
I have the latest nativescript cli

Same problem here: I installed nativescript 2.3.0 and followed your getting started guide. tns doctor fails with


WARNING: There was a problem with CocoaPods
Verify that CocoaPods are configured properly.
There seem to be issues with your configuration.

NativeScript uses the sandbox-pod executable. This may prevent some pods from installing correctly. If you encounter such cases, you can switch to the regular pod executable:
+>
+> 1. Open the NativeScript CLI configuration file, usually located in /usr/local/lib/node_modules/nativescript/config/config.json.
+> 1. Change the value of USE_POD_SANDBOX to false.

This worked for me.

https://github.com/NativeScript/docs/pull/259/files

@sudhanshu-15 , @florianbepunkt , please make sure you have Cocoapods 1.0.0 or later installed on your machines. Due to latest changes in Cocoapods (described in their blog) versions pre 1.0.0 will not work.

@rosen-vladimirov this is a fix for Cocoapods 1.0.1 and 1.1.1

Was this page helpful?
0 / 5 - 0 ratings

Related issues

trodellez picture trodellez  ·  3Comments

ZMW9 picture ZMW9  ·  3Comments

erjdriver picture erjdriver  ·  3Comments

jerbob92 picture jerbob92  ·  3Comments

donker picture donker  ·  3Comments