Is there a compiled IOS Audiokit framework I can download that's compiled for the latest Xcode using Swift 5 compiler? I'm unable to build my project until I can update my old framework. Tried building from the master folder but not getting anywhere with that. A new IOS download would be great. Thanks
You can use our staging pod, with instructions here: https://github.com/AudioKit/Specs
The currently pushed pod (version 4.7.b1 - must be specified explicitly) was built with Xcode 10.2 and Swift 5. We should have a new official release very soon.
UPDATE: v4.7 is officially out with Swift 5 compiled binaries.
Related
There are many questions similar to this, but they are mostly talking about this in the context of using cocoapods/carthage. I am not using either and have imported all my frameworks manually.
I am using Xcode 10.1. I just update one of my frameworks to their latest version (we need a feature only available on this version), and am now getting this error message. I also have Xcode 10.2, but the project has 3 other frameworks compiled in Swift 4.2.1 already, and when trying to build with Xcode 10.2 those throw the analogous error (module compiled with swift 4.2.1 cannot be imported by swift 5.0).
Most answers to this question revolve around setting the Swift language version to 4.2.1 for each target. However, since I am not using cocoa pods, I do not see any option in Xcode to change the swift language version of this individual framework. Any ideas? Thanks
This error kept showing for me on Xcode version 10.3, even though I had my Swift version in the project set to 4.2. I tried deleting the DerivedData and everything, but to no avail. I installed Xcode 10.1, and it worked perfectly without any issues.
I recently had to update to Xcode 10.2 since my iPhone automatically updated to iOS 12.2 and I have to use it for some in-app purchase testing.
The project uses Swift 4.2 and Realm.
I knew I had to update Realm so here is what I did...
Downloaded realm-swift-3.14.1
In Xcode, I replaced the frameworks with the latest from the download in my case the ones inside folder, swift-10.2.
"In the past the Realm folders used to be labeled as the Swift version now they are labeled per the Xcode version"
Compiled and then I got the following error.
Module compiled with Swift 4.2 cannot be imported by the Swift 5.0 compiler: /Users/userName/MyApp/RealmSwift.framework/Modules/RealmSwift.swiftmodule/i386.swiftmodule
What am I missing?
What do I need to do to be able to use my Swift 4.2 project inside Xcode 10.2 and RealmSwift?
Is RealmSwift ready for Xcode 10.2?
On Xcode, click on your xcodeproj file.
Then on the left bar, choose the target.
Now click to the build setting tab and look for the Swift language version.
Here you can change the swift version to select the 4.2 again.
That error should only show if you were using a version built in older versions of Xcode (for instance, if you using Realm from swift-10.1 directory). Try to remove any Realm frameworks you have from the project, clean the project, delete project's derived data directory, restart Xcode and then make sure to add both Realm and RealmSwift from the swift-10.2 directory.
I want to use Hero framework. I don't get any pod command from their documentation. I have used pod "Hero". It's worked but after installing and downloading pod when try to open project it says
Xcode 9 does not support building or migrating Swift 2.x targets"
How can i solve this?
You can find the pod installation section in their documentation here.
If the process not work you try to read more...
This error means that XCode 9 does not offer any solution to migrate from Swift 2 to 4.
In fact into Build Setting you can switch from Swift 3.2 or 4.
You can try to open the project with XCode 8 firstly (that support Swift 2) and then after converting the library to Swift 3, reopen the project with XCode 9.
I'm using Xcode 7.3 but my project is in Swift 2.1. I don't want to update my codes right now. So how can I choose or download older version of Swift compiler? Many thanks in advance!
The following example is tested on Xcode 8.3 with swift 3.1
If you are using Xcode 8 you can download toolchains with needed Swift versions
1) Open this link:
https://swift.org/download/#releases
2) Download Toolchain with swift version that you need. For example I have 3.1 version of swift and downloaded swift 3.0.2
3) Open .pkg file and install it.
4) Open Xcode and select in menu:
Xcode -> Toolchains -> Select Swift Version you need.
That is all folks
Originally I posted this is a comment, but I should have just posted it as an answer:
If you're writing an app for the App Store, you can only use a release (non-beta) version of Xcode (see “Submitting Apps to the App Store using Xcode”) and the toolchain supplied with that version of Xcode (see “Using Downloads / Apple Platforms”). So you can either use Xcode 7.2 and continue using Swift 2.1, or you can use Xcode 7.3 and update your code to Swift 2.2.
You can have multiple versions of Xcode installed. You can keep Xcode 7.2 installed and use it for your non-updated Swift 2.1 projects, and use Xcode 7.3 on new projects. Note that you'll have to manually open each project in the appropriate version of Xcode. You can download old versions of Xcode here.
If you're not going to put your app in the App Store, then maybe you could extract the Swift 2.1 toolchain from the Xcode 7.2 bundle and turn it into a .xctoolchain for use with Xcode 7.3, but you're really in unexplored, unsupported territory if you go that route.
If you're following the answers involving a .xctoolchain combined with Xcode 9 beta you'll encounter an error similar to this:
<unknown>:0: error: unknown argument: '-index-store-path' Command /Library/Developer/Toolchains/swift-3.1.1-RELEASE.xctoolchain/usr/bin/swiftc failed with exit code 1
The reason is that Apple has added a new feature/argument, which hasn't made its way to open source Swift yet. You can get around this issue by launching Xcode from the command line with the feature disabled like this:
/path/to/Xcode-beta.app/Contents/MacOS/Xcode -IDEIndexEnableBoltIndex NO
Thanks to the Swift team
Xcode 9 - Xcode 10
Select your target, then in your Build Settings, search for "swift language" and then you will find Swift Language Version.
i have the latest XCode 4.5.2 with all the iOS6 framework installed.
But i want to create projects available for iOS 5, 5.1 and 6.
I have added MapKit Framework but i can only choose iOS 6 frameworks.
Is there a place to download old frameworks to make application available to everyone ?
or may this iOS 6 Framework works on 5.0 projects ?
Thanks
Change your deployment target to 5.0. Make sure to weak reference the Frameworks that are relevant only for iOS 6.0, if there are any.
Go to cocoapods.org it's a script that will download and install external frameworks to your project. You can even set the version of iOS you are using.