Detaching From Expo - returning error: uninitialized constant Pod::Podfile::EXPO_CPP_HEADER_DIR

I am detaching my Expo project - and trying to progress towards using ExpoKit.

After running “exp detach” I started following the instructions on the Expo guidelines page: Expo Guidelines Page

Following these instructions step by step when I try to do a “pod install” I receive the following error:

Generating Pods project
[!] An error occurred while processing the post-install hook of the Podfile. uninitialized constant Pod::Podfile::EXPO_CPP_HEADER_DIR

2 Likes

if you open the pod file you will see this

# config.build_settings['HEADER_SEARCH_PATHS'] << "${PODS_ROOT}/Headers/Public/#{EXPO_CPP_HEADER_DIR}"

Change it to

# config.build_settings['HEADER_SEARCH_PATHS'] << "${PODS_ROOT}/Headers/Public/${EXPO_CPP_HEADER_DIR}"
3 Likes

I had the same error…
Look for the string in your Podfile and wrap it with single quotes ( ’ )

1 Like

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.