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

pod install breaks AppCenter iOS build. #4510

Closed
bengtan opened this issue Nov 29, 2019 · 1 comment
Closed

pod install breaks AppCenter iOS build. #4510

bengtan opened this issue Nov 29, 2019 · 1 comment

Comments

@bengtan
Copy link
Contributor

bengtan commented Nov 29, 2019

Running pod install picks up some changes related to react-native-config and two (dangling?) symlinks:

ios/Pods/Headers/Private/react-native-config/GeneratedInfoPlistDotEnv.h
ios/Pods/Headers/Public/react-native-config/GeneratedInfoPlistDotEnv.h

which then cause the AppCenter iOS build to fail.

This happened in #4507 and required a work-around in #4509.

See #4509 (comment) for more information and a work-around.

I'm not sure what the exact problem is, but since it's blocking us from doing pod install cleanly, we probably need to look into it before evaluating more dependabot native PRs.

Possibly related:

@bengtan
Copy link
Contributor Author

bengtan commented Dec 4, 2019

Somehow, this stopped happening. Maybe as a result of updating pods in PR #4516? Dunno.

Anyway, I'm gonna leave some notes for historical reference.

Somehow/sometimes, a pod install introduces two react-native-config header files:

  • ios/Pods/Headers/Public/react-native-config/GeneratedInfoPlistDotEnv.h
  • ios/Pods/Headers/Private/react-native-config/GeneratedInfoPlistDotEnv.h

which are symlinks to ../../../../../node_modules/react-native-config/ios/ReactNativeConfig/GeneratedInfoPlistDotEnv.h

The iOS build fails with

  • error: Build input file cannot be found: '.../node_modules/react-native-config/ios/ReactNativeConfig/GeneratedDotEnv.m'

This error occurs with a clean build, but doesn't always occur on a non-clean build.

If building on a non-clean source tree, the file may have been created by a previous build.

I speculate that GeneratedDotEnv.m is a generated file that is generated by node_modules/react-native-config/ios/ReactNativeConfig/BuildDotenvConfig.ruby which I think is an iOS build script.

It is referenced in ios/Podfile.

I speculate that ... somehow having 1 results in 3 not building 2, and then the iOS build fails.


But anyway, since this has apparently gone away/fixed itself, I'm closing.

@bengtan bengtan closed this as completed Dec 4, 2019
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

1 participant