Could not build obective-c module error for Swift Code

Setup:

PLATFORM AND VERSION: iOS Development environment: Xcode Version 16.0 (16A242d), macOS 14.6.1 Run-time configuration: iOS 15-18 tried with same error.

When building the app despite the fact it's pure Swift code getting error:

CaPark.swift file is here:

import Foundation

class CarPark: Identifiable, Decodable {
    
    var carParkId: String
    var address: String
    var totalLots: String
    var lotsAvailable: String?
    var lotType:String
    var lat: Double
    var lng: Double
    var couponEps: String
    var agency: String
}

Issue seems like started after xcode update to version mentioned above. What i've tried:

  1. Clean ups
  2. Reinstallation of Xcoce
  3. Rollback to previous versions of Xcode
  4. Start clean project from VCS

App is published and multiple versions were uploaded to AppStore, this problem is new and came out of nowhere.

Let me know if additional info is required. Thank you!

What happens if you turn on the module verifier, as described by Identifying and addressing framework module issues? There is something unusual in your project that is triggering this, and so beyond using the module verifier, I would begin scrutinizing your app's configuration heavily, such as looking at how dependencies are declared and integrated into your app if you are using something other than Swift Package Manager.

— Ed Ford,  DTS Engineer

Could not build obective-c module error for Swift Code
 
 
Q