emqx / CocoaMQTT

MQTT 5.0 client library for iOS and macOS written in Swift
https://www.emqx.com/en
Other
1.59k stars 418 forks source link

Error in docs? #415

Open gallaugher opened 2 years ago

gallaugher commented 2 years ago

Pod install lists this as the install line: pod 'CocoaMQTT, '~> 2.0.2'' Is there a typo in this? It seems to produce:

[!] Invalid Podfile file: syntax error, unexpected '~', expecting end pod 'CocoaMQTT, '~> 2.0.2'' ^ /Users/gallaugh/Desktop/mil-mascaras-main/Podfile:7: unexpected fraction part after numeric literal pod 'CocoaMQTT, '~> 2.0.2'' ^~~.

leeway1208 commented 2 years ago

hi @gallaugher . Thank you for raising this issue .This is the correct syntax:


platform :ios,'10.0'
target 'yourproject' do
use_frameworks!
pod 'CocoaMQTT', '~> 2.0.2'

end

I will update the README.md to stop the misunderstanding.