Swift 3.0.1 support of SwiftyJSON framework - swifty-json

Does SwiftyJSON support Swift version 3.0.1?
The swift-version file states the version 3.0.
Need to know whether it supports swift 3.0.1 or not.

It doesn't work because it has to be compiled with Xcode 8.1, if you use carthage you do carthage update --platform <yourPlatform> --no-use-binaries
For more information look at this thread

Related

Use Carthage with Swift 2.3

I want to add this to my project:
github "hyperoslo/ImagePicker"
I am currently using swift 2.3, however when I build this using Carthage, it builds it in Swift 3, which obviously isn't compatible with my project.
Is there a way to use Carthage to build this dependency in Swift 2.3?
Not directly, but if you look in the build logs you will see an export:
export TOOLCHAINS=com.apple.dt.toolchain.Swift_2_3
If you execute the above in your terminal before calling carthage Swift 2.3 will be used.

xcode 8 beta Alamofire compiler errors after pod update to 3.4.1

I have downloaded a legacy swift app using git and run pod update. After git add -A, I open the workspace using xcode 8 beta then Product -> Clean and build I get 40 swift compiler Alamofire errors. I have not run convert o swift 2.3 or swift 3.
Podfile.lock has version 3.4.1 for Alamofire.
in Podfile I set the version to ios 10.0 and in Alamofire info also set infoDictionary version to 10.0 but it made no difference.
Mostly they are syntax errors like NSURL needs to be renamed URL, etc.
I can't find any answers to this problem with Google.
Xcode 8 compiles against the iOS 10 SDK. This differs slightly from the iOS 9 SDK and thus the errors. You won't be able to use Xcode 8 with Swift 2.2 code.
If you look at the Alamofire branches, https://github.com/Alamofire/Alamofire/branches, you'll see work on 2.3 and 3.0 compatibility.
Also, read this thread for details on how to use those branches: https://github.com/Alamofire/Alamofire/issues/1312.

How can I compile a library with Carthage using the latest beta of Xcode?

I am testing out Swift 3 with Xcode 8 Beta (8S128d), which leads me to a situation where my Carthage-built libraries are not compatible with the source base.
Module file was created by an older version of the compiler; rebuild 'SwiftValidator' and try again.
How can I configure Carthage so that carthage update uses the Beta compiler rathe rthan the standard one?
I moved the Beta into /Applications.
sudo xcode-select -s /Applications/Xcode-beta.app/ sets the Xcode to be used to the beta.
carthage update --platform iOS --no-use-binaries builds the libraries for iOS and prevents Carthage from downloading existing (yet incompatible) precompiled binaries.

Wrong version of swift

How can I run swift 2.1?
I have Xcode 7.0.1 installed but when I run swift in the terminal,
I getting version 2.0.
> swift -v
Apple Swift version 2.0 (swiftlang-700.0.59 clang-700.0.72)
Target: x86_64-apple-darwin14.5.0
/Applications/Xcode.app/Contents/Developer/usr/bin/lldb "--repl=-target x86_64-apple-darwin14.5.0 -enable-objc-interop -sdk
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -color-diagnostics"
Welcome to Apple Swift version 2.0 (700.0.59 700.0.72). Type :help for assistance.
I thought Xcode7 included swift 2.1
See the Wikipedia article on Xcode ยง Toolchain Versions.
In the table, it says that Xcode 7.0 includes Swift 2.0.
The first version of Xcode to include Swift 2.1 is version 7.1.
You will have to update Xcode from the App Store.

Alamofire with iOS 7

I need to support iOS 7. I have Alamofire in my podspec file since it's an internal library for a separate I'm building. When I run pod lib lint, I get the following error:
The platform of the target `Pods` (iOS 7.0) is not compatible with `Alamofire (1.1.4)` which has a minimum requirement of iOS 8.0 - OS X 10.9.
When I try add the library to a regular Podfile of a project that supports iOS 7, I get the same error. Anyone know the issue?
Dynamic Frameworks won't work in iOS 7. Drag the file in manually.
Quote from AlamoFire's README:
Embedded frameworks require a minimum deployment target of iOS 8 or OS X Mavericks.
To use Alamofire with a project targeting iOS 7, you must include the Alamofire.swift source file directly in your project. See the 'Source File' section for instructions.
For Swift 1.2 using the Xcode 6.3 Beta, use the xcode-6.3 branch.

Resources