I tested serval libraries and found it pretty common to get an error:
- correct: lottie-ios, SnapKit
- got errors: Alamofire, SwiftyJSON, RxSwift
Here's a detail description to reproduce the errors:
- generate a project with a framework target with cocoapods (you can use
pod try XXX
). - set the build settings of framework target: build library for distribution to YES
- build the framework and got the framework file. Delete the the .swiftmodule files in the framework.
- make a new blank iOS demo project, and import the framework we modified last step, and add the
import XXX
in source files - build and got errors