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

Embedded binaries not correctly added to Xcode project



    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: cordova@7.0.0
    • Fix Version/s: None
    • Component/s: cordova-ios
    • Labels:
    • Environment:

      Mac OS High Sierra, cordova-cli@7.0.1, cordova-ios@4.4.0, Xcode 9


      In Cordova 7.0.0, a feature was added to allow plugins to specify that frameworks should be added to the Embedded Binaries section of an Xcode project file (see https://issues.apache.org/jira/browse/CB-11233).

      This feature should have been great, but it doesn't work as expected. If you add a dynamic framework to Embedded Binaries using Xcode, it will also add the library to the "Linked Frameworks and Libraries" section. Relying on Cordova to do this, however, only places the framework in Embedded Binaries, and skips the "Linked Frameworks" section.

      I distribute a Cordova plugin, and in my case, this resulted in my framework not working properly.

      A workaround exists, which is to list the framework twice in the plugin file: once with "custom=true embed=true" and once without. This then forces Cordova to add the framework to both sections, but it is messy and shouldn't be necessary.

      For evidence of how this should work, please see this description: http://code.hootsuite.com/an-introduction-to-creating-and-distributing-embedded-frameworks-in-ios/ under "Consuming the Framework". Please note I'm not affiliated with Hootsuite - just using their document as an example.


          Issue Links



              • Assignee:
                surajpindoria Suraj Pindoria
                craigrouse Craig Rouse
              • Votes:
                0 Vote for this issue
                2 Start watching this issue


                • Created: