cordova-node-xcode icon indicating copy to clipboard operation
cordova-node-xcode copied to clipboard

Install .xcframework

Open lucasbordini opened this issue 1 year ago • 2 comments

Hello everyone

I saw that we have a function to add a .framework, but there's a way to add a .xcframework ? I tried with the same function but this don't worked :/

Any help would be appreciated.

lucasbordini avatar Aug 17 '23 21:08 lucasbordini

Hello,

I was able to add this method. I set the sign option to true.

I hope this helps.

xcodeProj.addFramework(frameworkPath, {
      customFramework: true,
      embed: true,
      link: true,
      sign: true
});

tkou15 avatar Jan 04 '24 06:01 tkou15

Here's some sample code for what worked for me. I needed to embed and sign a third party framework. Without the line that adds the PBXCopyFilesBuildPhase, the embed part was being skipped.

xcodeProject.addBuildPhase([], 'PBXCopyFilesBuildPhase', 'Embed Frameworks', null, 'frameworks')
xcodeProject.addFramework(frameworkPath, {
  target: target.uuid,
  customFramework: true,
  embed: true,
  link: true,
  sign: true,
})

klcantrell avatar Mar 12 '24 12:03 klcantrell