Update the README.md for using swift 3

If the project still use swift 3. The config in `MessageKit.podspec` will not work.

```
s.pod_target_xcconfig = {
      "SWIFT_VERSION" => "4.0",
}
```

Add the extra `post_install` in Podfile will fix this issue.
This commit is contained in:
Azure Chen
2017-10-17 16:07:46 -05:00
committed by GitHub
parent 7a6d39bd99
commit 341ece5cae
+18
View File
@@ -35,6 +35,24 @@ See [VISION.md](https://github.com/MessageKit/MessageKit/blob/master/VISION.md)
pod 'MessageKit'
````
If your project is still using Swift 3. Add the following code in your Podfile.
````ruby
target 'TARGET_NAME' do
pod 'MessageKit'
...
post_install do |installer|
installer.pods_project.targets.each do |target|
if target.name == 'MessageKit'
target.build_configurations.each do |config|
config.build_settings['SWIFT_VERSION'] = '4.0'
end
end
end
end
end
````
### [Carthage](https://github.com/Carthage/Carthage)
To integrate MessageKit using Carthage, add the following to your `Cartfile`: