Swift extensions could not be found in Framework

Originator:abdullahselek
Number:rdar://30165092 Date Originated:
Status:Open Resolved:
Product:Developer Tools Product Version:Xcode 8.2.1, Swift 3
Classification: Reproducible:Always
 
Swift extensions which gets parameters in a dynamic framework creates crash, the error is

dyld: Symbol not found error.

I have a Swift framework has a dependency to other Swift framework which has extensions. 

this one works properly as expected.

extension GraphQLMap: JSONEncodable {
  public var jsonValue: JSONValue {
    return jsonObject
  }
}

but this creates an error.

extension GraphQLMap: ExpressibleByDictionaryLiteral {
  public init(dictionaryLiteral elements: (String, JSONEncodable?)...) {
    var jsonObject = JSONObject(minimumCapacity: elements.count)
    for case let (key, value) in elements {
      jsonObject[key] = value?.jsonValue ?? NSNull()
    }
    self.init(jsonObject: jsonObject)
  }
}

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!