pod install Analyzing dependencies Downloading dependencies Installing Realm (3.15.0) Installing RealmSwift (3.15.0) [!] The following Swift pods cannot yet be integrated as static libraries: The Swift pod `RealmSwift` depends upon `Realm`, which does not define modules. To opt into those targets generating module maps (which is necessary to import them from Swift when building as static libraries), you may set `use_modular_headers!` globally in your Podfile, or specify `:modular_headers => true` for particular dependencies. [!] Smart quotes were detected and ignored in your Podfile. To avoid issues in the future, you should not use TextEdit for editing it. If you are not using TextEdit, you should turn off smart quotes in your editor of choice.
在podfile 中添加 use_frameworks!然后pod install 即可。