Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install .xcframework #139

Open
lucasbordini opened this issue Aug 17, 2023 · 2 comments
Open

Install .xcframework #139

lucasbordini opened this issue Aug 17, 2023 · 2 comments

Comments

@lucasbordini
Copy link

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.

@tkou15
Copy link

tkou15 commented Jan 4, 2024

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
});

@klcantrell
Copy link

klcantrell commented Mar 12, 2024

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,
})

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants