SwiftKickMobile / SwiftMessages

A very flexible message bar for UIKit and SwiftUI.
MIT License
7.31k stars 744 forks source link

Compile error in Xcode 10.0 #263

Closed Birju-Bhatt closed 5 years ago

Birju-Bhatt commented 5 years ago

I got following compile error in Xcode 10 (swift 4.2).

Could not build Objective-C module 'SwiftMessages'

Also got compatibility error.

UIViewNoIntrinsicMetric' has been renamed to 'UIView.noIntrinsicMetric' 'UIDeviceOrientationDidChange' has been renamed to 'UIDevice.orientationDidChangeNotification' 'UIWindowLevel' has been renamed to 'UIWindow.Level'

And many more error.

Please help me out for above issues.

wtmoose commented 5 years ago

Update to SM 6

Birju-Bhatt commented 5 years ago

Thanks for your immediate reply. But whenever i tried to install SwiftMessages through pod , it always take old version rather than new version which you mentioned

wtmoose commented 5 years ago

I suggest that you either read through the CocoaPods documentation or ask how to update a pod on StackOverflow.

Birju-Bhatt commented 5 years ago

Hi wtmoose , I know how to update pod but what i am saying is if i write pod 'SwiftMessages' then generally it takes latest version. But instead of that it takes Installing SwiftMessages (4.1.4). So my question is how can i update to latest version i.e. 6.0.1 through the pod because whenever i am trying to update for the same then it will give me error like below. I wrote like this pod 'SwiftMessages', '~> 6.0.1'

[!] CocoaPods could not find compatible versions for pod "SwiftMessages": In Podfile: SwiftMessages (~> 6.0.1)

wtmoose commented 5 years ago

Wow

NSMyself commented 5 years ago

@Birju-Bhatt check your Podfile.lock

Birju-Bhatt commented 5 years ago

@NSMyself I got the solution. I just change below line in my pod file platform :ios, '9.0' - Before platform :ios, '10.0' - After

I changed it from 9.0 to 10.0 and it works fine.