Hi,
I’m having trouble building my iOS swift library since the update to 2019.3. With 2019.2 everything still works.
The problem seems to be that the properties that I set for the Xcode project like so do not get set properly in the Xcode project in 2019.3.
var targetGuid = proj.TargetGuidByName(PBXProject.GetUnityTargetName());
//// Configure build settings
proj.SetBuildProperty(targetGuid, "ENABLE_BITCODE", "NO");
proj.SetBuildProperty(targetGuid, "SWIFT_OBJC_BRIDGING_HEADER", "Libraries/UnitySwift/UnitySwift-Bridging-Header.h");
proj.SetBuildProperty(targetGuid, "SWIFT_OBJC_INTERFACE_HEADER_NAME", "unityswift-Swift.h");
proj.AddBuildProperty(targetGuid, "LD_RUNPATH_SEARCH_PATHS", "@executable_path/Frameworks");
proj.SetBuildProperty(targetGuid, "SWIFT_VERSION", "5.0");
If I replace
var targetGuid = proj.TargetGuidByName(PBXProject.GetUnityTargetName());
with
var targetGuid = proj.GetUnityMainTargetGuid();
all properties in XCode get set as user defined variables in 2019.3 while in 2019.2 they get set properly as config for the swift compiler.
If I set it as
var targetGuid = proj.GetUnityMainTargetGuid();
the properties do get properly set for the swift compiler but I get an error saying “using bridging in headers with framework targets is unsupported”
Any suggestions how to fix that?
Thx in advance!