Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-12772

iOS Dynamic Framework Embedding/Linking

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Cannot Reproduce
    • 7.0.0
    • None
    • cordova-ios
    • None

    Description

      Hi all
      in my plugin project i need to add a dynamic ios framework (DECommons.framework).

      In plugin.xml i added this
      <framework src="src/ios/DECommons.framework" custom="true" />

      but in Xcode project the framework appears only in Linked Frameworks section, but this is not sufficient, i need to add the framework also into Embedded Binaries section.
      Then i tried with this configuration

      <framework src="src/ios/DECommons.framework" custom="true" embed="true"/>

      but in this way the framework in Xcode appears only in Embedded Frameworks and not in Linked (then a compilation error occurs).

      I need an Xcode configuration that requires my framework in Embedded and Linked framework.

      I've already tried all the possible combinations of "custom", "embed" and "link" parameters (although it is not officially exposed) in plugin.xml without any results.

      Obviously I need this to happen automatically when installing the plugin and it does not force the user to open Xcode to correct the project settings.

      Note: Before CLI version 7.0.0 I used a special hook that now no longer works.

      I have already seen on Jira several open tickets on the subject but I have not found any solution. Does anyone know how to help me?

      Cheers
      Marco

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              marcobonati Marco Bonati
              Votes:
              2 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: