AddFileToEmbedFrameworks(PBXProject, string, string, string)
Adds a framework to a target's Embed Frameworks build phase.
Read time 1 minuteLast updated 13 days ago
Definition
- Type: Method
- Namespace: UnityEditor.iOS.Xcode.Extensions
- Assembly: UnityEditor.iOS.Extensions.Xcode
public static void AddFileToEmbedFrameworks(this PBXProject proj, string targetGuid, string fileGuid, string linkToTargetGuid = null)
Parameters
The projects extension method receiver.
The GUID of the destination target, as returned by PBXProject.TargetGuidByName(string)).
The file GUID from PBXProject.AddFile or PBXProject.AddFolderReference.
Optional. The GUID of the target that links against this framework. Defaults to .
targetGuidRemarks
Adds the file to an Embed Frameworks copy phase on the . The embed phase copies the framework into the app bundle. Associates the build file with so that the target links the framework. Sets to on the link target. Enables code signing and header removal on copy. If the file is already in the phase, this method does nothing. Note: On iOS, use a different when you embed the framework in the app but link it from an extension. iOS doesn't allow you to embed a framework inside another framework. On macOS, omit so the same target embeds and links.
targetGuidlinkToTargetGuidLD_RUNPATH_SEARCH_PATHSexecutable_path/FrameworkslinkToTargetGuidlinkToTargetGuid