You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Shazron Abdullah (JIRA)" <ji...@apache.org> on 2016/10/14 17:03:20 UTC
[jira] [Commented] (CB-11893) CocoaPods support: Provide a way to
add use_frameworks! on the Podfile
[ https://issues.apache.org/jira/browse/CB-11893?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15575875#comment-15575875 ]
Shazron Abdullah commented on CB-11893:
---------------------------------------
The problem with the "use_frameworks!" flag is once it is on, *all* libraries have to be dynamic frameworks. CocoaPods won't add this mixed mode feature: https://github.com/CocoaPods/CocoaPods/issues/3839
This is obviously a problem if a CocoaPod is not something you control.
The workaround is described here:
1. https://github.com/CocoaPods/CocoaPods/issues/3701
2. https://github.com/Adobe-Marketing-Cloud/mobile-services/issues/89
In essence, you create a dummy source file in a podspec that gets turned into a dynamic framework, and it has a dependency to the static library as "vendored_libraries"
The other workaround is here: http://samwize.com/2016/05/05/integrating-static-library-with-cocoapods-use_frameworks/
> CocoaPods support: Provide a way to add use_frameworks! on the Podfile
> ----------------------------------------------------------------------
>
> Key: CB-11893
> URL: https://issues.apache.org/jira/browse/CB-11893
> Project: Apache Cordova
> Issue Type: New Feature
> Components: iOS
> Reporter: jcesarmobile
> Fix For: cordova-ios@4.4.0
>
>
> If the library you want to use on the plugin uses Swift or you want to use dynamic frameworks you have to add use_frameworks! on the Podfile
> I don't think there is a way of adding it right now.
> We should provide a way of adding it
--
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