-
Notifications
You must be signed in to change notification settings - Fork 56
Open
Description
Hi!
We got 109 warnings after integrating YubiKit 4.7.0 with Swift Package Manager to a new Xcode project:
umbrella header for module 'YubiKit' does not include header 'YKFU2FSignResponse+Private.h'
umbrella header for module 'YubiKit' does not include header 'YKFSessionError+Private.h'
umbrella header for module 'YubiKit' does not include header 'YKFTLVRecord.h'
...
Steps to reproduce:
- Create a new iOS application project in Xcode 16.4
- Select the project file (above the target), click on "Package Dependencies"
- Click the + button
- Paste the following URL:
https://github.com/Yubico/yubikit-ios - Click on "Add Package" and confirm to add YubiKit to the application target
- Open a Swift file and
import YubiKit - Configure signing with your development team
- Select
Xcode > Product > Clean Build Folder... - Build the application
Issue: 109 build time warnings are generated
Things that I tried:
- Adding the required capabilities for Lightning connector and NFC
- Adding a Bridging header with
#import <YubiKit.h> - Setting
-ObjCflag at Other Linker Flags - Setting
-Xcc -Wno-incomplete-umbrellaflag atOther Swift Flags
Demo project:
YubiKitSPMWarnings.zip
Working solution:
Every header present in SPM's publicHeadersPath (in our case it's set to SPMHeaderLinks) had to be imported in the umbrella header (in this case YubiKit.h as it matches the name of the package).
In the SPMHeaderLinks folder we have 179 soft links to header files, but in YubiKit.h we only have 62 imports.
Adding all 179 header file imports to the YubiKit.h umbrella header would resolve these Xcode warnings.
Can you please have a look on this please?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels