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

Excludes include directory aliases #432

Merged
merged 1 commit into from
Sep 30, 2020
Merged

Conversation

ashfurrow
Copy link
Contributor

We've been using this dependency at Artsy for a few months with CocoaPods, via react-native-image-crop-picker, and have ran into problems with duplicate UUIDs and build warnings related to duplicated header files. I found #424 which seemed to describe the problem we were having and I think I have a solution.

The Objective-C/TOCropViewController/include directory seems to include a bunch of aliased header files, and a module map. These header files point to actual files, but they get included in the generated Pods Xcode project twice (once for the original header, and once for the alias). This means that the deterministically-generated UUID will be duplicated (it's the same file) and the headers get included twice in the Xcode project. It seems these aliases are important for SPM so the easiest way to solve the problem is have CocoaPods ignore them.

My solution is to exclude those header aliases, while still including the module map, using the exclude_files in the podspec. I've tested this out locally and this fixes both the pod install warnings and build time Xcode warnings.

Let me know if I can clarify anything at all, and thank you for the really cool project 🙏

Fixes #424.

@TimOliver
Copy link
Owner

Hey Ash! Long time no see!

Oh wow! Artsy is using this library!? That's fantastic to hear! Thank you! I'm so happy it was useful for you folks!

Awesome! Thanks so much for that! Admittedly SPM support for this library isn't fantastic, so I wouldn't be surprised if more of these issues were still in there.

That all looks good to me! Thanks again! If there's anything I can do to help with this library for Artsy's needs, please let me know!

Take care!

@TimOliver TimOliver merged commit 4b0745e into TimOliver:master Sep 30, 2020
fengjixuchui added a commit to fengjixuchui/TOCropViewController that referenced this pull request Sep 30, 2020
Merge pull request TimOliver#432 from ashfurrow/master
@ashfurrow
Copy link
Contributor Author

@TimOliver Yeah you too! I was happy to see your GitHub handle when I looked up this repo 😄

The only other thing I'd like to ask is, could I trouble you to make a new release of this library with the change? That would solve the problems for users in #424 as well as ivpusic/react-native-image-crop-picker#1397 🙇

I hope you're well, and take care!

@TimOliver
Copy link
Owner

@ashfurrow Haha thanks! Yeah I'm doing well. I hope you've been safe in NY all this time!

No worries! All done! Version 2.5.5 should be finished deploying at this point. Please let me know if you find any issues with it.

Thanks Ash! You take care too! Hope we can catch up again soon! :)

@ashfurrow
Copy link
Contributor Author

Just tested and it works for me! Thanks again Tom Tim!

@oleghnidets
Copy link

Hi guys,

Still doesn't work on Xcode 12.1 and the latest library 2.5.5 :(
Thanks for you contributions!

@ehmjaysee
Copy link

Also getting this error here.

pod version 1.10.0
Xcode version 12.1

enikeevrinat added a commit to enikeevrinat/clevertap-ios-sdk that referenced this pull request Jul 7, 2023
I have tested this out locally and this fixes the pod install warnings.
Inspired by @ashfurrow solution TimOliver/TOCropViewController#432.
Fixes CleverTap/clevertap-ios-sdk/CleverTap#271
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.

"Generated duplicate UUIDs:" when installing via cocoapods
4 participants