wordpress-mobile / WordPress-iOS-Shared

Shared components used in building the WordPress iOS apps and other library components
GNU General Public License v2.0
18 stars 22 forks source link

Fix cocoapods generate duplicate UUID #327

Closed crazytonyli closed 1 year ago

crazytonyli commented 1 year ago

This PR resolves the "duplicated UUIDs" warning reported by pod install when using the 2.0.0-beta.1 podspec.

The Objective-C target has an include directory (which is SPM's convention) which contains symbolic links to the real header files. All those header files are part of the pods' source_files, which leads the generated Xcode target contains duplicated header files–one is the symlink file and the other is the real file. Hence, CocoaPods reports the "duplicated UUIDs" warning since the UUID is generated from file name.

The fix is simply excluding the include directory, which is meant to be SPM-only anyway, from podspec's source_files.


crazytonyli commented 1 year ago

I'll merge this PR for now, but I can create another PR to remove the beta releases from CHANGELOG.md if needed. 😃