SwiftyJSON supported on Xcode 8 and iOS 10?

I recently upgraded the Swift iOS app from Xcode7 to Xcode8 and the deployment platform from iOS 9.3 to iOS 10 . My application started to break down with the following errors:

The module file was created by an older version of the compiler: rebuild "SwiftyJSON" and try again.

I figured out and found this link to SO. The module file was created by an older version of the compiler . Then follow the instructions and delete the data and rebuild it using the carthage update --no-use-binaries command. But the application still does not create and complains about the error message mentioned above.

Is SwiftyJSON Xcode 8 and iOS 10 supported?

+5
source share
5 answers

SwiftyJSON now supports Swift 3 .

pod 'SwiftyJSON', '3.0.0'

+3
source

At the time of writing: no.

But there is a swift3 fork fork that works with GM seeds.

https://github.com/acegreen/SwiftyJSON

+5
source

pod 'SwiftyJSON', git: ' https://github.com/BaiduHiDeviOS/SwiftyJSON.git ', branch: 'swift3'

After that, you will get many errors, please delete the folder with the derived data. And build it. Everything works perfectly

0
source

pod 'SwiftyJSON', git: ' https://github.com/BaiduHiDeviOS/SwiftyJSON.git ', branch: 'swift3'

0
source

I fixed this by deleting the named file, for example. / Users / me / Library / Developer / Xcode / DerivedData / ProjectName -aprzyqkcjkpzgaedatcseafvznfq / Build / Products / Debug-iphonesimulator / Alamofire.framework / Modules / Alamofire.swiftmodule / x86_64.swiftmodule

It is not clear that I am on the right track because the file was not restored, but at the moment I seem to have missed the problem, and to the usual Swift3 conversion errors in my own code.

0
source

All Articles