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

fix: ensure gradle knows pods are installed #533

Merged
merged 3 commits into from
Nov 12, 2024

Conversation

boringcactus
Copy link
Member

@boringcactus boringcactus commented Nov 8, 2024

Summary

Ticket: none

Builds on main are failing right now, and from the error message I think this is why.

Testing

When I get the same error message locally, this is how I fix it, but I have no idea if it'll fix the non-test Xcode Cloud targets until we merge this (unless we want to temporarily add archive or analyze to the PR workflow).

@boringcactus boringcactus requested a review from a team as a code owner November 8, 2024 23:43
@@ -63,6 +63,7 @@ retry ./gradlew :shared:generateDummyFramework
cd "${CI_PRIMARY_REPOSITORY_PATH}/iosApp"
retry bundle exec pod install
cd ..
retry ./gradlew :shared:podInstallSyntheticIos
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, this seems to be failing because it can't find the pod install

Execution failed for task ':shared:podInstallSyntheticIos'.

>         ERROR: CocoaPods executable not found in your PATH.

          Please make sure CocoaPods is installed on your system.

Which is strange, since you can see the pod install complete directly above it. Could XCC be messing with the path somehow? Or could the dependency license changes have messed up gradle's path?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When we install CocoaPods via Bundler, it's not actually on the PATH, and bundle exec rewrites the PATH to include all the gems it manages. It might be sufficient to put the Gradle task inside bundle exec, though.

@boringcactus boringcactus merged commit b7f6432 into main Nov 12, 2024
7 checks passed
@boringcactus boringcactus deleted the mth-xcode-pods-reinstall branch November 12, 2024 18:24
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

Successfully merging this pull request may close these issues.

2 participants