Nativescript-cli: CocoaPods issue is failing 'tns doctor', sandbox-exec: Operation not permitted

Created on 22 Jul 2016  Β·  8Comments  Β·  Source: NativeScript/nativescript-cli

I am having an issue with the installation, I am running the following:

$ tns doctor
Verifying CocoaPods. This may take more than a minute, please be patient.
  β—Ÿ Installing iOS [email protected] ../../../../var/folders/jq/y2qnpj_n7hs8s1m6ttbp4b500000gn/T/nativescript-check-cocoapods116622-9644-1vcbfc1/node_modules/tns-ios
  ◝ Verifying CocoaPods. This may take some time, please be patient..
 sandbox-exec: /Users/alex/.rvm/gems/ruby-2.2.2@global/gems/cocoapods-1.0.1/bin/pod: Operation not permitted

WARNING: There was a problem with CocoaPods
Verify that CocoaPods are configured properly.
There seem to be issues with your configuration.
? Do you want to visit the official documentation? No
? Do you want to run the setup script? No
Your components are up-to-date.

These warnings are just used to help the NativeScript maintainers with debugging if you file an issue.
Please ignore them if everything you use NativeScript for is working fine.
question

Most helpful comment

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

All 8 comments

Hey @amcfarlane,

Most probably your issue is related to this one:
https://github.com/CocoaPods/CocoaPods/issues/4794

Heya, So what was the resolution on this? Did we need to chmod the folder to 777?? When i do this it doesn't allow it

chmod: Unable to change file mode on bin: Operation not permitted
chmod: Unable to change file mode on bin/pod: Operation not permitted
chmod: Unable to change file mode on bin/sandbox-pod: Operation not permitted

hello. i am facing the same issue. everything was working fine till suddenly it decided to throw this error. please help.

I am facing the same issue.

Verifying CocoaPods. This may take more than a minute, please be patient.
Installing iOS [email protected] ../../var/folders/r1/m590zh657q7188p8wldvqv200000gp/T/nativescript-check-cocoapods11683-59706-1nzo617/node_modules/tns-ios
Verifying CocoaPods. This may take some time, please be patient..
sandbox-exec: /Users/sudhanshu/.rvm/gems/ruby-2.3.0@global/gems/cocoapods-1.0.1/bin/pod: Operation not permitted
WARNING: There was a problem with CocoaPods Verify that CocoaPods are configured properly. There seem to be issues with your configuration.

chmod is also not working.

sudhanshu$ chmod -R 777 ./bin
chmod: Unable to change file mode on ./bin: Operation not permitted
chmod: Unable to change file mode on ./bin/pod: Operation not permitted
chmod: Unable to change file mode on ./bin/sandbox-pod: Operation not permitted

Does anyone know how to fix this?

I have switched to React Native.

It seems to be a bit more stable than nativescript.

Cheers

Sent with MailTrack
https://mailtrack.io/install?source=signature&lang=en&[email protected]&idSignature=22

On 4 September 2016 at 11:30, Sudhanshu [email protected] wrote:

I am facing the same issue.

Verifying CocoaPods. This may take more than a minute, please be patient.
Installing iOS runtime.[email protected] ../../var/folders/r1/
m590zh657q7188p8wldvqv200000gp/T/nativescript-check-
cocoapods11683-59706-1nzo617/node_modules/tns-ios
Verifying CocoaPods. This may take some time, please be patient..
sandbox-exec: /Users/sudhanshu/.rvm/gems/ruby-2.3.0@global/gems/cocoapods-1.0.1/bin/pod:
Operation not permitted
WARNING: There was a problem with CocoaPods
Verify that CocoaPods are configured properly.
There seem to be issues with your configuration.

chmod is also not working.

sudhanshu$ chmod -R 777 ./bin
chmod: Unable to change file mode on ./bin: Operation not permitted
chmod: Unable to change file mode on ./bin/pod: Operation not permitted
chmod: Unable to change file mode on ./bin/sandbox-pod: Operation not
permitted

Does anyone know how to fix this?

β€”
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/NativeScript/nativescript-cli/issues/1943#issuecomment-244578993,
or mute the thread
https://github.com/notifications/unsubscribe-auth/APdHNI5_uSpA37-lyDL6bMNX1t1JVK3Xks5qmh9GgaJpZM4JTEEQ
.

Simon
0413 445 866

Is there any solution for this issue?
I'm facing the same problem from few days.. I've tied to replace versions of ruby and cocoapods in different combination but with no luck. Any help out there?

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

in my case it's already set to false but still tns doctor doing the same following thing :

_installing iOS runtime.βΈ¨ β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘βΈ© β ΄ extract:tns-ios: verb lock using /Users/Shubham/.npm/_locks/staging-9736c8419765d922.lock for /private/var/folders/z6/bx9gl1_93vvnpm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN [email protected] No description
npm WARN [email protected] No repository field.
npm WARN [email protected] No license field

+ [email protected]
added 1 package in 5.908s
β—  Installing iOS runtime.
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ npm update check failed β”‚
β”‚ Try running with sudo or get access β”‚
β”‚ to the local update config store via β”‚
β”‚ sudo chown -R $USER:$(id -gn $USER) /Users/shubham/.config β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜._

and then same message

_β—œ Verifying CocoaPods. This may take some time, please be patient..
β—‘ Verifying CocoaPods. This may take some time, please be patient...._

Any suggestion what is wrong with this.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

NickIliev picture NickIliev  Β·  3Comments

erjdriver picture erjdriver  Β·  3Comments

DimitarTachev picture DimitarTachev  Β·  3Comments

bradmartin picture bradmartin  Β·  3Comments

MrCroft picture MrCroft  Β·  3Comments