Open AndrWeisR opened 6 years ago
Variable ${PODS_ROOT} was not set and I do below trick.
Go to Build Phases -> Check Pods Manifest.lock and replace diff "${PODS_ROOT}/../Podfile.lock" "${PODS_ROOT}/ Manifest.lock" > /dev/null to diff "${SRCROOT}/Podfile.lock" "${SRCROOT}/Pods/
@AndrWeisR from the looks of the error message it seems something is wrong with your cocoapods install. Did you try running pod install
as it suggested?
Yes, I did a pod install
, but it didn't help. I had to do as @jaigtz88 above, and manually edit the command in the build phase to enter SRCROOT
.
@AndrWeisR after i update cordova and cocopods, i dont have that error anymore
Remove all the files related to pod from your project folder, Close xcode project and run pod init
and open -a Xcode Podfile
. Add your pod files again and run pod install
. Reopen and run your project.
Hi all people,
Same problem with high sierra 10.13.2 and Xcode 9.2, I had have all, delete, start from zero, more than 10 times, I have tested all posibles fixes from all posts related with this issue but always the same result, not working!!!
May be a problem with permissions? I don't know.... I changed PODS_PODFILE_DIR_PATH for real path /Users/...../documents..../ios/. and PODS_ROOT too and system return same error, it is as if system can't find or not have access to this path that is obvious that it exists...
Any help from somebody?
Thanks in advance.
I have this same error, but I can't find the lines in manifest.lock referenced above to edit...
Is there any progress on this? Or anything else to try?
I has had (at least per now), write the complete path to the .lock files in order to build the project, just like a show below:
At least it will work for me while I fix the issue with the path variables.
solved for me: XCODE, IOS, CORDOVA y IONIC
1 - in xcode change value of $(SRCROOT) for you root project in xcode las var of config build in user-defined enter image description here
2 - changed var in this clic in the plus of up: enter image description here
nota: root project is: location of my project and location where use pod this my firs question thank for watching
Did you miss a " in the new script line? from diff "${SRCROOT}/Podfile.lock" "${SRCROOT}/Pods/
to diff "${SRCROOT}/Podfile.lock" "${SRCROOT}/Pods/"
IMO, the better solution is to add a couple build user-defined settings. Go to your Project Target, change to Build Settings tab, press the '+' symbol, "Add User-Defined Setting".
PODS_PODFILE_DIR_PATH = ${SRCROOT}/.
PODS_ROOT = ${SRCROOT}/Pods
@MarkAMcCorkle it work for me
@MarkAMcCorkle I'm not working on this project but ahhh thanks so much man! I'm trying to do something with Firebase and I wasn't able to build it!
Lifesaver!
@MarkAMcCorkle I tried this solution but still have the same error :/ ... This is how I have it setup: Build Settings :
Build Phases:
Error:
What should I do now??
IMO, the better solution is to add a couple build user-defined settings. Go to your Project Target, change to Build Settings tab, press the '+' symbol, "Add User-Defined Setting".
PODS_PODFILE_DIR_PATH = ${SRCROOT}/. PODS_ROOT = ${SRCROOT}/Pods
Thank you a lot. It's save my whole day.
Update your cocoapod using the command sudo gem install cocoapod
in your terminal. I had the same issue and it seems like the cocoapod version was old.
Update your cocoapod using the command
sudo gem install cocoapod
in your terminal. I had the same issue and it seems like the cocoapod version was old.
It works for me!!!!!!
sudo gem install cocoapod
Kindly note it is 'cocoapods' not 'cocoapod'
Expected Behaviour
Build in Xcode is successful.
Actual Behaviour
Build in XCode 9.2 fails with errors. I opened the Xcode workspace, not the project.
Reproduce Scenario (including but not limited to)
Steps to Reproduce
Platform and Version (eg. Android 5.0 or iOS 9.2.1)
iOS 10.13.2 I have installed CocoaPods 1.4.0
Cordova CLI version and cordova platform version
Plugin version
Notes
Seems to be similar to issue #1668 My Podfile.lock does actually exist.
The .sh file that produces the error above contains:
It looks like the PODS_PODFILE_DIR_PATH and PODS_ROOT variables are empty.