mirror of
https://github.com/MessageKit/MessageKit.git
synced 2026-02-06 19:03:19 +00:00
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:
@@ -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`:
|
||||
|
||||
Reference in New Issue
Block a user