First of all, apologize for this really really late response.
We have landed Swift3 support in master branch, also Swift2.3 support in swift2 branch.
Update your Podfile
pod 'SwiftyJSON', '3.0.0'
Also, at the time of writing, CocoaPods 1.1 is still not released.
So in order to get it working with Xcode8, we need the rc version
gem install cocoapods -v 1.1.0.rc.2
Or, if you can't upgrade your cocoapods, try this solution from RxSwift
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['SWIFT_VERSION'] = '3.0'
config.build_settings['MACOSX_DEPLOYMENT_TARGET'] = '10.10'
end
end
end
github "SwiftyJSON/SwiftyJSON" "3.0.0"
Update your Podfile
pod 'SwiftyJSON', '2.4.0'
github "SwiftyJSON/SwiftyJSON" "swift2"
Please file new issues or comment if you're still having issues upgrading
Unfortunately, all the previous notification and mentioning to the authors had somehow fall through the cracks.
Even through Swift3 support was something hanging in our mind, but we all thought that the other guy would had done it already.
like a old Chinese saying
三个和尚没水喝 / too many cooks spoil the broth
None of us actually go ahead and get this through.
We are very sorry for this.
Starting from now, I'll be more involved in this project, responding to issues, PRs and pushing out new roadmaps.
Thank you all for being involved here, especially for sending out those swift3 swift2.3 PRs.
We look through most of them, and most of them were alike, so we picked the most recent one from jeneumeier.
Cheers
@zhigang1992
why don't you set this in your podspec?
s.pod_target_xcconfig = {
'SWIFT_VERSION' => '3.0',
}
No need to force people changing their podfiles with post_instal. So simple.
@kas-kad I've worked around this for now by forking the repo and specifying my own repo in the Podfile.
Hope that helps for now.
@oliverfoggin yeah, I mean there are several ways to workaround the problem manually, but it can be solved once and forever without any need to explain people how to do it by themselves
@kas-kad I think it's a really good idea. Let's add it. 🍻
Seems like @fishcharlie already have a PR for it.
https://github.com/SwiftyJSON/SwiftyJSON/pull/673
merging away.
not working for me; Xcode still tells me SwiftyJSON is not compatible with Swift3
@gadget00 you need to install the prerelease version of cocoa pods.
Suso gem install cocoapods --pre
Actually, release version 1.1 should do it. Pre is on 1.2 beta now.
swift 3.0.1 xcode 8.1
Updating pod 'SwiftyJSON', '3.0.0' is working for me. Really thanks!
Most helpful comment
@zhigang1992
why don't you set this in your podspec?
No need to force people changing their podfiles with
post_instal. So simple.