datatheorem / TrustKit

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

TrustKitDynamic is not building #316

Open snake302 opened 9 months ago

snake302 commented 9 months ago

Hey,

I just installed TrustKit 3.0.3 from Swift Package Manager with Trustkit, TrustKitDynamic and TrustKitStatic.

Screenshot 2023-10-12 at 14 09 43

But when I am trying to build the project I see the TrustKitDynamic error:

No such file or directory: '/Users/myuser/Library/Developer/Xcode/DerivedData/myprojectfolder/Build/Products/Debug-iphoneos/PackageFrameworks/TrustKitDynamic.framework/TrustKitDynamic'

But the framework is there:

Screenshot 2023-10-12 at 14 11 17

I tried to clear all caches, removed app, cleaned build folders, re-launched xcode, and the only one solution is to fix that is remove TrustKitDynamic from Frameworks in project settings. This is little bit confusing, that TrustKitDynamic is installing too, crashing, but not required for TrustKit usage.

Xcode Version 15.0 (15A240d) macOS Ventura 13.5 (22G74) iOS 17.0.3

vakhidbetrakhmadov commented 4 months ago

For me this happens only when building for real device, it doesn't happen when building for simulator.

Though after deleting TrustKitDynamic i was able to successfully build for real device as well:

Screenshot 2024-03-15 at 12 54 47