expo: [!] Invalid `Podfile` file: `${' is not allowed as a global variable name - installing pods after detach

Environment

Environment:
  OS: macOS High Sierra 10.13.5
  Node: 10.2.1
  Yarn: 1.5.1
  npm: 6.1.0
  Watchman: 4.9.0
  Xcode: Xcode 9.4.1 Build version 9F2000
  Android Studio: 3.1 AI-173.4697961

Packages: (wanted => installed)
  expo: ^28.0.0 => 28.0.0
  react: 16.3.1 => 16.3.1
  react-native: https://github.com/expo/react-native/archive/sdk-28.0.0.tar.gz => 0.55.4

Diagnostics report:
  https://exp-xde-diagnostics.s3.amazonaws.com/headsuphealth-1ba00eba-7bbf-4641-bca8-1449b4a51b28.tar.gz

Installing pods after detaching

Steps to Reproduce

exp detach
cd ios
pod install

Expected Behavior

Pods are installed

Actual Behavior

MacBook-Pro:heads-up-health Julian$ cd ios
MacBook-Pro:ios Julian$ pod install

[!] Invalid `Podfile` file: `${' is not allowed as a global variable name
/Users/Julian/.../ios/Podfile:14: syntax error, unexpected end-of-input, expecting keyword_end.

 #  from /Users/Julian/.../ios/Podfile:14
 #  -------------------------------------------
 #      :inhibit_warnings => true
 >  ${PODFILE_UNVERSIONED_EXPO_MODULES_DEPENDENCIES}
 #
 #  -------------------------------------------
MacBook-Pro:ios Julian$

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 16 (7 by maintainers)

Most upvoted comments

@terribleben It seems there is a recursion for exp 55.0.5. I am having the exact same issue. The steps to reproduce is the same mentioned above :

Environment

Environment:
  OS: macOS Sierra 10.12.6
  Node: 8.9.1
  Yarn: 1.7.0
  npm: 6.1.0
  Watchman: Not Found
  Xcode: Xcode 9.2 Build version 9C40b
  Android Studio: Not Found

Packages: (wanted => installed)
  expo: ^29.0.0 => 29.0.0
  react: 16.3.1 => 16.3.1
  react-native: https://github.com/expo/react-native/archive/sdk-29.0.0.tar.gz => 0.55.4

Diagnostics report:
  https://exp-xde-diagnostics.s3.amazonaws.com/lichenglu-84abd732-f990-4023-a344-b618f7b6c571.tar.gz

Actual Behavior

[!] Invalid `Podfile` file: `${' is not allowed as a global variable name
/Users/cl38824/developer/yespirit/yespirit-app/ios/Podfile:14: syntax error, unexpected end-of-input, expecting keyword_end.

 #  from /Users/cl38824/developer/yespirit/yespirit-app/ios/Podfile:14
 #  -------------------------------------------
 #      :inhibit_warnings => true
 >  ${PODFILE_UNVERSIONED_EXPO_MODULES_DEPENDENCIES}
 #
 #  -------------------------------------------

It was my first time trying to detach.

Sorry for the confusion everyone, can you try this?

Use exp 56.0.0 or newer, then exp detach again

If you check the contents of ios/Podfile, it should not contain the string ${PODFILE_UNVERSIONED_EXPO_MODULES_DEPENDENCIES}.

@quinlanj I’ve updated exp, but I’m still seeing the same error. Thank you for looking into this.

I am also getting the same on iOS and getting Project with path ':expoview' could not be found in project ':app'. in Android Project.

Did you guys find any solution?

My bad, a clean and build fixed that issue. Problem solved, thanks!