Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build Error on fresh install : config.h not found #10

Open
thylo opened this issue Dec 7, 2018 · 4 comments
Open

Build Error on fresh install : config.h not found #10

thylo opened this issue Dec 7, 2018 · 4 comments

Comments

@thylo
Copy link

thylo commented Dec 7, 2018

Hello,

I'm trying to get Viro (and this sample) running as a separate IOS application without any luck for the past few hours...

Steps to reproduce :

  • OSX, node v10.8.0, homebrew v1.8.4, react-native-cli v2.0.1, Xcode v10.01
  • clone this repo
  • run yarn install
  • run yarn start
  • run ./setup-ide.sh --ios
  • opening ./ios/ViroSample.xcworkspace in Xcode
  • changing the package name for Target ViroSampleAR to be.thylo.ViroSampleAR
  • assign me in the signing fields
  • hit build -> iPhone 8
  • tried to set ios 10 as target without luck

Build Error :

'config.h' file not found

in file included from :
/Users/julienmoreau/code/experiments/ViroARSampleApp/node_modules/react-native/third-party/glog-0.3.4/src/utilities.cc:32:10: In file included from /Users/julienmoreau/code/experiments/ViroARSampleApp/node_modules/react-native/third-party/glog-0.3.4/src/utilities.cc:32:

in file included from :
/Users/julienmoreau/code/experiments/ViroARSampleApp/node_modules/react-native/third-party/glog-0.3.4/src/utilities.h:73:10: In file included from /Users/julienmoreau/code/experiments/ViroARSampleApp/node_modules/react-native/third-party/glog-0.3.4/src/utilities.h:73:

@VikAdvani
Copy link
Contributor

Hi @thylo,
This is react native issue here being tracked here: facebook/react-native#19774

To fix it simply run the following from your project root(where your node_modules directory is in your project):

 cd ./node_modules/react-native/third-party/glog-0.3.4 && ../../scripts/ios-configure-glog.sh

Running the above command on your terminal should fix it.

@thylo
Copy link
Author

thylo commented Dec 14, 2018

@VikAdvani thanks your response. Saddly it still won't build.

ld: framework not found AWSCore clang: error: linker command failed with exit code 1 (use -v to see invocation). If it's a react-native error I'll search that way...

@VikAdvani
Copy link
Contributor

Hi @thylo, I'm unable to reproduce the issue you are experiencing on iOS. This sounds like a possible cocoapods issue. What version of cocoapods are you using? We recommend using version 1.5 or greater. You can find out what version you are by running:
pod --version from the terminal.

If your pod version is under 1.5, I'd recommend upgrading and rerunning the setup-ide script.

Also are you running on a device or a simulator? If you are running on the simulator try a device to see if the issue still occurs.

@ghost
Copy link

ghost commented Jan 1, 2019

I was having this problem and my cocoa pods version is 1.5.3. I fixed it by following
@VikAdvani 's answer
#10 (comment)
and afterwards had an issue I solved with
facebook/react-native#19569 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants