cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shazron Abdullah (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CB-12290) Custom iOS Framework Not Added to 'Embedded Binaries' Section in Xcode
Date Mon, 27 Feb 2017 21:20:45 GMT

     [ https://issues.apache.org/jira/browse/CB-12290?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Shazron Abdullah updated CB-12290:
----------------------------------
    Description: 
My Cordova plugin includes a few custom framework binaries. I am trying to add them to the
plugin as described here - https://cordova.apache.org/docs/en/latest/plugin_ref/spec.html#framework.

For example:
{code}
<framework src="src/ios/frameworks/SalesforceSDKCore.framework" custom="true" />
{code}

I then use the Cordova CLI (6.4.0) to generate a Cordova app and add my plugin. The framework
is added correctly to the dependencies in the project and is linked correctly as well. As
a result, compilation works fine. However, when I run the app, it complains with the following
error message:
{code}
dyld: Library not loaded: @rpath/SalesforceAnalytics.framework/SalesforceAnalytics
  Referenced from: /Users/bhariharan/Library/Developer/CoreSimulator/Devices/7FE0CFC8-CFFD-432B-A4BF-66E552B7D1A8/data/Containers/Bundle/Application/E2D414CF-541B-4440-9FD1-EA65414DAAA8/Test8.app/Test8
  Reason: image not found
{code}

Basically, the issue is that the custom frameworks I added in plugin.xml are not added to
the 'Embedded Binaries' section, and I can't seem to find a way to do that via plugin.xml.

A custom framework inclusion should automatically be added to the 'Embedded Binaries' section
of the generated app in Xcode.

  was:
My Cordova plugin includes a few custom framework binaries. I am trying to add them to the
plugin as described here - https://cordova.apache.org/docs/en/latest/plugin_ref/spec.html#framework.

For example:
<framework src="src/ios/frameworks/SalesforceSDKCore.framework" custom="true" />

I then use the Cordova CLI (6.4.0) to generate a Cordova app and add my plugin. The framework
is added correctly to the dependencies in the project and is linked correctly as well. As
a result, compilation works fine. However, when I run the app, it complains with the following
error message:

dyld: Library not loaded: @rpath/SalesforceAnalytics.framework/SalesforceAnalytics
  Referenced from: /Users/bhariharan/Library/Developer/CoreSimulator/Devices/7FE0CFC8-CFFD-432B-A4BF-66E552B7D1A8/data/Containers/Bundle/Application/E2D414CF-541B-4440-9FD1-EA65414DAAA8/Test8.app/Test8
  Reason: image not found

Basically, the issue is that the custom frameworks I added in plugin.xml are not added to
the 'Embedded Binaries' section, and I can't seem to find a way to do that via plugin.xml.

A custom framework inclusion should automatically be added to the 'Embedded Binaries' section
of the generated app in Xcode.


> Custom iOS Framework Not Added to 'Embedded Binaries' Section in Xcode
> ----------------------------------------------------------------------
>
>                 Key: CB-12290
>                 URL: https://issues.apache.org/jira/browse/CB-12290
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: CLI, iOS, Plugins
>    Affects Versions: 4.3.0
>            Reporter: Bharath Hariharan
>            Priority: Critical
>
> My Cordova plugin includes a few custom framework binaries. I am trying to add them to
the plugin as described here - https://cordova.apache.org/docs/en/latest/plugin_ref/spec.html#framework.
> For example:
> {code}
> <framework src="src/ios/frameworks/SalesforceSDKCore.framework" custom="true" />
> {code}
> I then use the Cordova CLI (6.4.0) to generate a Cordova app and add my plugin. The framework
is added correctly to the dependencies in the project and is linked correctly as well. As
a result, compilation works fine. However, when I run the app, it complains with the following
error message:
> {code}
> dyld: Library not loaded: @rpath/SalesforceAnalytics.framework/SalesforceAnalytics
>   Referenced from: /Users/bhariharan/Library/Developer/CoreSimulator/Devices/7FE0CFC8-CFFD-432B-A4BF-66E552B7D1A8/data/Containers/Bundle/Application/E2D414CF-541B-4440-9FD1-EA65414DAAA8/Test8.app/Test8
>   Reason: image not found
> {code}
> Basically, the issue is that the custom frameworks I added in plugin.xml are not added
to the 'Embedded Binaries' section, and I can't seem to find a way to do that via plugin.xml.
> A custom framework inclusion should automatically be added to the 'Embedded Binaries'
section of the generated app in Xcode.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Mime
View raw message