datatheorem / TrustKit

Easy SSL pinning validation and reporting for iOS, macOS, tvOS and watchOS.
MIT License
2.01k stars 362 forks source link

Fix framework to package /Modules files when built #230

Closed thedavidharris closed 3 years ago

thedavidharris commented 4 years ago

Public headers were added to the xcodeproj file in a way that a modulemap was no longer being generated, and therefore no swiftmodule (or swiftinterface) file could be created. This adds them as explicit public headers instead of a folder copy.

Addresses https://github.com/datatheorem/TrustKit/issues/222

nabla-c0d3 commented 4 years ago

The problem has been that it's difficult to get to a setup that works for the three different package managers we support:

1) Swift Package Manager 2) Carthage 3) CocoaPods

When we added 1) it broke 2) and 3) (#220 #214). We fixed 3) which then broke 1). We fixed it too but now 2) is still broken. This is not validated in the test suite so I am worried that merging this will just break one of them again.

adamkaplan commented 4 years ago

Ouch. That sounds super painful. Maybe the contributor can separate CI tests for Carthage and SPM

thedavidharris commented 4 years ago

I didn't want to do anything drastic but what I would generally suggest:

I wouldn't worry about specific tests around all the package managers to be an issue unless there are going to be significant changes to the project structure.

nabla-c0d3 commented 3 years ago

Thanks!