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

Unexpected 'Pods.xcodeproj' is kept shown after 'pod binary prebuild' #56

Closed
3 tasks done
innocarpe opened this issue Jan 18, 2021 · 6 comments
Closed
3 tasks done

Comments

@innocarpe
Copy link

innocarpe commented Jan 18, 2021

Checklist

Issue Description

Command executed

$ pod binary prebuild

What went wrong?

I recently migrated my project's cocoapods-binary from leavez/cocoapods-binary to this, and I found some weird issue after migration. After pod binary prebuild, Unexpected Pods.xcodeproj is seems to be created to my xcworkspace like below.

It says the path is _Prebuild/Pods.xcodeproj but there are only GeneratedFrameworks folder and Manifest.lock file 🤔 (The path of right Pods.xcodeproj is Pods/Pods.xcodeproj as I expected)

Screen Shot 2021-01-18 at 9 22 32 PM Screen Shot 2021-01-18 at 9 22 41 PM

How can I handle this issue not to create this unwanted Pods.xcodeproj? Thanks! :)

Environment

Plugin version

 0.1.11 

Installed CocoaPods plugins

 cocoapods 1.10.1 / cocoapods-binary-cache 
@trinhngocthuyen
Copy link
Contributor

Actually, the Pods.xcodeproj under the _Prebuild is created when prebuilding frameworks. It particularly serves the internal logic to prebuild frameworks (by pod binary prebuild).
The presence of this xcodeproj does not affect the main project at all. That means, your workspace still functions properly as usual... For now, despite it being added to the workspace, you can just ignore it, or delete it from the workspace :)

As for improvements, we'll try to intercept the workspace generation and exclude this xcodeproj.

@innocarpe
Copy link
Author

innocarpe commented Jan 19, 2021

Thanks for the comment.

Yeah it has no bad effect on our workspace as you said. But we're using xcodegen to manage the project and we often execute project-creation script after fetch master branch, means that this Pods.xcodeproj is continuously created even if I remove it 😭)

It'll be glad to exclude the Pods.xcodeproj in the future 😄

@trinhngocthuyen
Copy link
Contributor

The issue has been fixed in e29c42c. Kindly check this out. You probably need to remove the xcworkspace (once) prior to running the CLI again.

kientux added a commit to kientux/cocoapods-binary-cache that referenced this issue Feb 9, 2021
fix grab#56: skip integrating targets for prebuild installer
@innocarpe
Copy link
Author

@trinhngocthuyen Thanks for the patch!! 🙏
Do you have any scheduled next release? We'll updated this library right after the next release 😄

@innocarpe
Copy link
Author

And it works!

@trinhngocthuyen
Copy link
Contributor

Included in 0.1.13

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

No branches or pull requests

2 participants