Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Non-portable path to file yoga-prefix.pch, specified path differs in case. Corrupted file path with duplicated characters

I've created a project with react-native-cli and installed some pods via cocoapods but eveytime I try building the project in Xcode it gives me this strange error:

Non-portable path to file /UUsersCcrysilDDesktopaapp-demoiiosPPodsTTarget Support Filesyyogayyoga-prefix.pch; specified path differs in case from the file name on disk

For some reason the path duplicates the first character for each file/folder and removes all backslashes. I can find this file without problems in the finder and I haven't touched any of the path variables automatically set by cocoapods so I'm not sure what could be causing this. I've also tried deleting all the pods and reinstalling them, deleting the whole /ios folder and rebuilding it but nothing seems to work.

I'm using Xcode 9.2, react-native 0.53.3 and cocoapods 1.4.0 and here's my Podfile incase it might help: https://nofile.io/f/6oCNuZ6HEYb/Podfile

like image 570
crysil Avatar asked Mar 08 '18 19:03

crysil


3 Answers

For me, I had to remove and reinstall both node_modules and Pods. Always reinstall node_modules first, as Pods rely on them.

rm -Rf node_nodules
npm install
cd ios
rm -Rf Pods
pod install
like image 94
Jeremy Avatar answered Oct 17 '22 03:10

Jeremy


For me the only working solution was to remove the pods

rm -Rf Pods pod install rebuild

like image 43
MokumJ Avatar answered Oct 17 '22 02:10

MokumJ


enter image description here

For me, changing 'yoga' to 'Yoga' in the path for Prefix Header got rid of the error

like image 1
vrush Avatar answered Oct 17 '22 02:10

vrush