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
Generating Pods project -> [!] An error occurred while processing the post-install hook of the Podfile. #3747
Comments
@intelliot as detailed in the CHANGELOG (https://github.com/CocoaPods/CocoaPods/releases/tag/0.38.0.beta.1), the object passed to the Podfile post-install hook has changed. |
How can I fix this error? I couldn't find any mention of |
you probably just want to change |
Cool - that fixed the first error - but now even cocoapods 0.38.0.beta.1 gives me this error:
|
run |
👍 |
@segiddins @mrackwitz is there a reason the Right now I'm testing 0.38.0.beta1 before making my team upgrade, but I have to maintain a separate Podfile because of this change. |
@Benuuu: The reason for that is that we made a major conceptual change in how we provide access for advanced users to hook into the installation process, as documented in #3648. We could get rid of the whole proxy layer, which was out of sync, and is now even more with the changed introduced in the last minor release. It would have cost a lot effort to provide that in a backwards-compatible manner. Sorry for you personally for the inconvenience at this place. Sometimes we need to make hard decision and get rid of "debt" to continue moving forward. Good that you were able to find a workaround solution for now. I wanted to write a section for the release blog post on how to migrate and map prior used calls to the new API to make it easier, seems like in this special case it would been helpful to have that earlier in place. |
Don't know if this is the right thing to do, but after using the beta, I had to add this to my Gemfile in order to get the previous version of CocoaPods to work again:
|
I had same problem upgrading to 0.38.0.beta.2 My hook:
It now failed with error:
I have a quick glance on the xcodeproj API, build_settings should still work as before? |
@siuying that's an issue with |
@segiddins Thanks, will do. |
@segiddins |
@changpianji change where you call the |
@siuying Have you resolved the issue you last posted? I am getting the same error. |
@stevelaw the issue is tracked at CocoaPods/Xcodeproj#286, I'm currently pinned at older version |
@changpianji For those still not sure what to do (not being familiar with Ruby, cocoapods or Xcode), change the This worked for me. |
Update the post_install hook example to `installer.pods_project` from `installer.project` due to the breaking syntax change in CocoaPods 0.38. See CocoaPods/CocoaPods#3747 for further discussion.
sudo xcode-select -r fixed the issue |
Changing to pods_project fixes, but then I get build_configurations failure. cocoapods is totally broken right now, kind of sad. |
@intelliot l have changed project to pods_project.pod install again,find [!] Failed to find 'Pods-MasonryTestsLoader-Masonry' target.how should l do? |
@lituanhui77 I'm not encountering this issue any longer, and don't know what you should do. Maybe try creating a new issue. |
My problem was when I installed a new version of Xcode, and when I did |
I keep getting this error, everything was working fine, suddenly this started showing up on pod install.
|
Post install hook is running within your |
With the stable version of cocoapods, I get a different error:
The text was updated successfully, but these errors were encountered: