You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Bharath Hariharan (JIRA)" <ji...@apache.org> on 2016/12/22 00:49:58 UTC
[jira] [Created] (CB-12290) Custom iOS Framework Not Added to
'Embedded Binaries' Section in Xcode
Bharath Hariharan created CB-12290:
--------------------------------------
Summary: 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:
<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.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org