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..

Vadim Kotov
  • 8,084
  • 8
  • 48
  • 62
tp2376
  • 690
  • 1
  • 7
  • 23
  • 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 – Muhammad Shauket Aug 08 '18 at 07:45

1 Answers1

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

Ajay Singh Mehra
  • 1,313
  • 9
  • 19
  • 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? – tp2376 Sep 18 '18 at 17:40
  • @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 – Ajay Singh Mehra Sep 20 '18 at 10:50