0

I have Xcode 9.4 and my framework code running in swift 3.2 and then today I downloaded Xcode 10 beta 4 and updated my framework to swift 4.2

The question is now my framework is not supporting by Xcode 9.4 and it's giving me an error says :

  • Module compiled with Swift 4.2 cannot be imported in Swift 4.1.2:

My question is is it possible to use swift 4.2 compiled framework in Xcode 9.4 ? if it's not why? do I have to change any settings in order to work ?

Any help? thanks in advance..

1
  • Xcode 9.4 not supported swift 4.2 , your framework already compiled using swift 4.2. wait for swift 5 apple will provide ABI support for backward compatibility Commented Aug 8, 2018 at 7:45

1 Answer 1

3

Apple is providing support to ABI in swift 5 but tills that swift is part of the app, not iOS SDK, so you to compile your project again with Xcode 9.4 as swift 4.2 is not the official part of Xcode 9.4. "Till swift 5.0 swift will be part of the app itself not system"

Or just compile the code with swift 4.1.2 and it will run on the Xcode 10 beta without error

Sign up to request clarification or add additional context in comments.

2 Comments

Thanks..But my compiled SDK(swift 4.1.2) is not running in XCode 10 and the error is Module compiled with Swift 4.1.2 cannot be imported in Swift 4.2: any idea?
@tarun API is still under development. Please recompile your module again. You could do like that If you are using cocoa pod than clean your project and reinstall pod If you are using Carthage than re install them

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.