JJ Redikes
JJ Redikes

Reputation: 431

'config.h' file not found after moving the third-party folder

Im having an issue with running my app in react native after trying upgrade react-native version.

The error show in Xcode 10:

 mkdir: third-party: Permission denied

 /Users/XXXX/New app/mobile_app/node_modules/react-native/scripts/ios-install-third-party.sh: line 49: cd: third-party: No such file or directory

I had been trying to install the folder again by deleting the node_module clone from the project and return to the previous react-native version

Update:

after moving the third-party folder under node_module/react-native/script to node_module/react-native I'm getting different error

'config.h' file not found

Upvotes: 2

Views: 1537

Answers (4)

Bhavik Modi
Bhavik Modi

Reputation: 1565

If any of these solution does not work, please check your project path.

Project path and/or directory names should not contain any space in its name or you can create project on Desktop or in Documents directory.

It solves this issue

Upvotes: 0

Tal Shani
Tal Shani

Reputation: 690

You should try this solution

I had the same issue and it worked for me!

Upvotes: 1

Felix Too
Felix Too

Reputation: 11941

Please try to run ios-install-third-party.sh like:

>$ node_modules/react-native/ios-install-third-party.sh or

>$ node_modules/react-native/scripts/ios-install-third-party.sh

depending on the location of ios-install-third-party.sh.

Check if directory was created:

$ ls node_modules/react-native/ -- third-party directory present

You can then build the project on XCode

Upvotes: 0

Saeid
Saeid

Reputation: 2046

Well, try to follow this solution: Assuming you are starting at your projects root. You need to execute these commands in your terminal:

cd ios

rm -fr Pods

rm Podfiles.lock

pod install

cd node_modules/react-native/third-party/glog-0.3.4

sh ../../scripts/ios-configure-glog.sh

ios-configure-glog.sh uses a relative path to ./configure. Then execute this:

./configure 

Then Clear(command+k) and rebuild(command+R).

Let me know if it is working.:)

Upvotes: 2

Related Questions