SwiftKickMobile / SwiftMessages

A very flexible message bar for UIKit and SwiftUI.
MIT License
7.24k stars 741 forks source link

Cannot build on physical device but can on a simulator. #542

Closed jbird84 closed 4 months ago

jbird84 commented 4 months ago

After I added SwiftMessages via SPM I get an error building the project with a physical device but not a simulator. If I remove SwiftMessages I can build without issues.

my error looks like this: clang: error: no such file or directory: '/Users/kinneykare/Library/Developer/Xcode/DerivedData/DiscGolfSearch-eurehbjwbwemfobtfdloeozkefkc/Build/Products/Debug-iphoneos/PackageFrameworks/SwiftMessages-Dynamic.framework/SwiftMessages-Dynamic'

jbird84 commented 4 months ago

The issue was due to adding both SwiftMessages and SwiftMessages-Dynamic. I solved this by removing SwiftMessages-Dynamic from the project, clean build, and reset package caching. Hope this helps someone else. Not sure what the -Dynamic is.