Yubico / yubikit-ios

Yubico Mobile iOS SDK - YubiKit
Apache License 2.0
195 stars 43 forks source link

Exclude Swift package manager header links from CocoaPods #72

Closed torokzsolt closed 2 years ago

torokzsolt commented 3 years ago

Having a symlink for every header file causes CocoaPods to generate a project that has duplicated entry for each header file. Installing the current version of YubiKit using CocoaPods will result in a warning starting with:

[!] [Xcodeproj] Generated duplicate UUIDs:
PBXFileReference -- Pods.xcodeproj/mainGroup/children/
.....

On top of that Xcode will also display a lot of warnings complaining about duplicated entries for Header files. After some investigation I realized that this is because there's a folder called SPMHeaderLinks that contains a symbolic link for every header file. Marking that folder as excluded in YubiKit.podspec seems to solve the duplication issue.

WWSellers commented 2 years ago

I should have said this some time back: Thanks @torokzsolt. This helped my project nicely.