I have a project with library in it. If I select library as a build target it builds successfully. If I select project as a target I have linker error Undefined symbols for architecture x86_64:
and list of undefined symbols.
What is strange – all that symbols are standard things like "_OBJC_CLASS_$_SwiftObject"
, "Foundation.URLRequest.httpBody.setter : Foundation.Data?"
, "Swift.String.init(Swift.Substring) -> Swift.String"
.
This errors disappears when I'm removing SawtoothProtobuf.pb.swift
file from build. However when building only lib project which contains this file everything builds successfull.