Xcode Framework integration with Xcode Project

I am facing issues regarding integration of framework project to xcode project.

this class is in my Framework project:

public struct GetSensorParam: Equatable {
   
  public let id: String
  public let index: Int16
  public let subIndex: Int8
  public let numberOfByte: Int32
   
   
  public init(id: String, index: Int16, subIndex: Int8, numberOfByte: Int32) {
      self.id = id
      self.index = index
      self.subIndex = subIndex
      self.numberOfByte = numberOfByte
    }
  public static func == (lhs: GetSensorParam, rhs: GetSensorParam) -> Bool {
    return lhs.id == rhs.id
      && lhs.index == rhs.index
      && lhs.subIndex == rhs.subIndex
      && lhs.numberOfByte == rhs.numberOfByte
  }
}

and in Xcode project i am using like :

func valueParams(_ item: DynamicLayoutItem) -> GetSensorParam {
     
GetSensorParam(id: item.id,
       index: item.index,
       subIndex: item.subIndex,
       numberOfByte: getNumberOfBytes(item.dataType))
}



I am getting error in xcode project as :
'GetSensorParam' initializer is inaccessible due to 'internal' protection level


can someone help me on it?? i have tried so hard but not able to resolve the issue.


Also if i am making any change sin framework project like making this struct to a class..
its not reflecting to xcode project.
i have tried relinking to the project.
Xcode Framework integration with Xcode Project
 
 
Q