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

undefined method `__apply_Xcode_12_5_M1_post_install_workaround' for #<Pod::Podfile:0x000000012e038ae8> #2194

Open
omardiaa opened this issue Jan 21, 2024 · 3 comments
Labels
needs review Issue is ready to be reviewed by a maintainer

Comments

@omardiaa
Copy link

Build/Submit details page URL

https://expo.dev/accounts/omar_/projects/Chemistry-School/builds/b38ade78-bc7c-48be-a75d-b24b74eedd75

Summary

I am trying to build the app using eas build -p ios --clear-cache but it fails in "Install Pods" step with the following error:

[!] An error occurred while processing the post-install hook of the Podfile.
undefined method `__apply_Xcode_12_5_M1_post_install_workaround' for #<Pod::Podfile:0x000000012e038ae8>

Managed or bare?

Managed

Environment

expo-env-info 1.2.0 environment info:
System:
OS: Linux 5.15 Ubuntu 20.04.5 LTS (Focal Fossa)
Shell: 5.0.17 - /bin/bash
Binaries:
Node: 20.10.0 - ~/node/bin/node
Yarn: 1.22.21 - ~/node/bin/yarn
npm: 10.2.4 - ~/node/bin/npm
npmPackages:
expo: ^49.0.21 => 49.0.21
react: 18.2.0 => 18.2.0
react-native: 0.73.1 => 0.73.1
npmGlobalPackages:
eas-cli: 5.9.1
Expo Workflow: managed

----------------

✔ Check Expo config for common issues

✔ Check package.json for common issues
✔ Check dependencies for packages that should not be installed directly
✔ Check for common project setup issues
✔ Check npm/ yarn versions
✔ Check Expo config (app.json/ app.config.js) schema
✖ Check that packages match versions required by installed Expo SDK
✔ Check for legacy global CLI installed locally
✖ Check that native modules use compatible support package versions for installed Expo SDK
✔ Check that native modules do not use incompatible support packages

Detailed check results:

Expected package @expo/config-plugins@~7.2.2
Found invalid:
@expo/[email protected]
@expo/[email protected]
(for more info, run: npm why @expo/config-plugins)
Expected package @expo/prebuild-config@~6.2.4
Found invalid:
@expo/[email protected]
(for more info, run: npm why @expo/prebuild-config)
Advice: Upgrade dependencies that are using the invalid package versions.

Some dependencies are incompatible with the installed expo version:
@react-native-async-storage/[email protected] - expected version: 1.18.2
[email protected] - expected version: ~5.4.0
[email protected] - expected version: ~14.2.1
[email protected] - expected version: ~5.3.0
[email protected] - expected version: ~6.0.6
[email protected] - expected version: 0.72.6
[email protected] - expected version: ~2.12.0
[email protected] - expected version: ~3.3.0
[email protected] - expected version: 4.6.3
[email protected] - expected version: ~3.22.0
[email protected] - expected version: 13.2.2
Your project may not work correctly until you install the correct versions of the packages.
Fix with: npx expo install --fix
Found outdated dependencies
Advice: Use 'npx expo install --check' to review and upgrade your dependencies.

One or more checks failed, indicating possible issues with the project.

Error output


/Users/expo/workingdir/build/ios/Podfile:66:in `block (3 levels) in from_ruby'
/Users/expo/.gems/arm64/gems/cocoapods-core-1.12.1/lib/cocoapods-core/podfile.rb:196:in `post_install!'
/Users/expo/.gems/arm64/gems/cocoapods-1.12.1/lib/cocoapods/installer.rb:1013:in `run_podfile_post_install_hook'
/Users/expo/.gems/arm64/gems/cocoapods-1.12.1/lib/cocoapods/installer.rb:1001:in `block in run_podfile_post_install_hooks'
/Users/expo/.gems/arm64/gems/cocoapods-1.12.1/lib/cocoapods/user_interface.rb:149:in `message'
/Users/expo/.gems/arm64/gems/cocoapods-1.12.1/lib/cocoapods/installer.rb:1000:in `run_podfile_post_install_hooks'
/Users/expo/.gems/arm64/gems/cocoapods-1.12.1/lib/cocoapods/installer.rb:337:in `block (2 levels) in create_and_save_projects'
/Users/expo/.gems/arm64/gems/cocoapods-1.12.1/lib/cocoapods/installer/xcode/pods_project_generator/pods_project_writer.rb:61:in `write!'
/Users/expo/.gems/arm64/gems/cocoapods-1.12.1/lib/cocoapods/installer.rb:336:in `block in create_and_save_projects'
/Users/expo/.gems/arm64/gems/cocoapods-1.12.1/lib/cocoapods/user_interface.rb:64:in `section'
/Users/expo/.gems/arm64/gems/cocoapods-1.12.1/lib/cocoapods/installer.rb:315:in `create_and_save_projects'
/Users/expo/.gems/arm64/gems/cocoapods-1.12.1/lib/cocoapods/installer.rb:307:in `generate_pods_project'
/Users/expo/.gems/arm64/gems/cocoapods-1.12.1/lib/cocoapods/installer.rb:183:in `integrate'
/Users/expo/.gems/arm64/gems/cocoapods-1.12.1/lib/cocoapods/installer.rb:170:in `install!'
/Users/expo/.gems/arm64/gems/cocoapods-1.12.1/lib/cocoapods/command/install.rb:52:in `run'
/Users/expo/.gems/arm64/gems/claide-1.1.0/lib/claide/command.rb:334:in `run'
/Users/expo/.gems/arm64/gems/cocoapods-1.12.1/lib/cocoapods/command.rb:52:in `run'
/Users/expo/.gems/arm64/gems/cocoapods-1.12.1/bin/pod:55:in `<top (required)>'
/Users/expo/.gems/arm64/bin/pod:25:in `load'
/Users/expo/.gems/arm64/bin/pod:25:in `<main>'
[!] `<PBXResourcesBuildPhase UUID=`13B07F8E1A680F5B00A75B9A`>` attempted to initialize an object with an unknown UUID. `3389EE6F606F44B4BB710E49` for attribute: `files`. This can be the result of a merge and the unknown UUID is being discarded.
pod install exited with non-zero code: 1

Reproducible demo or steps to reproduce from a blank project

Run eas build -p ios, it fails on "Install Pods" step.

@omardiaa omardiaa added the needs review Issue is ready to be reviewed by a maintainer label Jan 21, 2024
@szdziedzic
Copy link
Member

Hi there 👋!

I think this function was removed in RN 0.73 🤔

SDK 49 is configured to use RN 0.72 by default and that's why it's failing 🤔

What I would suggest here to resolve this issue is to:

  1. Try to resolve all of your expo doctor warnings. It says that [email protected] - expected version: 0.72.6. You can run npx expo install --fix to fix it.
  2. Update to SDK 50 https://expo.dev/changelog/2024/01-18-sdk-50

@ichivers
Copy link

ichivers commented May 10, 2024

Using expo 50.0.0 & react-native 0.73.6. Still get this error when running eas build --platform ios --local

[INSTALL_PODS] [!] An error occurred while processing the post-install hook of the Podfile.
[INSTALL_PODS] undefined method `__apply_Xcode_12_5_M1_post_install_workaround' for an instance of Pod::Podfile

Problem was in app.json I had

"sdkVersion": "46.0.0"

@domenicoprestia
Copy link

try to follow the resolution in this issue, it worked for me
facebook/react-native#42070

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs review Issue is ready to be reviewed by a maintainer
Projects
None yet
Development

No branches or pull requests

4 participants