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/02/26 20:26:18 UTC

[jira] [Comment Edited] (CB-9772) Can't install .tbd dynamic libraries as plugin deps

    [ https://issues.apache.org/jira/browse/CB-9772?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15169606#comment-15169606 ] 

Shazron Abdullah edited comment on CB-9772 at 2/26/16 7:25 PM:
---------------------------------------------------------------

Even though the references are not added properly, it still will link properly (at least for system frameworks and libraries). This is because of the CLANG_ENABLE_MODULES and CLANG_MODULES_AUTOLINK Build Settings in the default template in cordova-ios-4.x, which sets both of those settings to true.

So, even if you didn't add the framework in Build Phases, if your code had:
#import "zlib.h"
#import <UIKit/UIKit.h>

Xcode will automagically convert that to @import statements and link them in.
See: http://www.raywenderlich.com/49850/whats-new-in-objective-c-and-foundation-in-ios-7



was (Author: shazron):
Even though the references are not added properly, it still will link properly (at least for system frameworks and libraries. This is because of the CLANG_ENABLE_MODULES and CLANG_MODULES_AUTOLINK Build Settings in the default template in cordova-ios-4.x, which sets both of those settings to true.

So, even if you didn't add the framework in Build Phases, if your code had:
#import "zlib.h"
#import <UIKit/UIKit.h>

Xcode will automagically convert that to @import statements and link them in.
See: http://www.raywenderlich.com/49850/whats-new-in-objective-c-and-foundation-in-ios-7


> Can't install .tbd dynamic libraries as plugin deps
> ---------------------------------------------------
>
>                 Key: CB-9772
>                 URL: https://issues.apache.org/jira/browse/CB-9772
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>         Environment: iOS
>            Reporter: Adriano Di Giovanni
>            Assignee: Shazron Abdullah
>              Labels: PlatformAPI, cordova-ios-4.1.0
>
> .dylib are now .tbd in iOS 9.
> I wrote a custom plugin in order to integrate Parse SDK into my Cordova app. The plugin used libsqlite3.dylib and libz.dylib so I've updated it to work with iOS 9. Thus, I changed related lines in plugin.xml from
> <framework src="libsqlite3.dylib" />
> <framework src="libz.dylib" />
> to
> <framework src="libsqlite3.tbd" />
> <framework src="libz.tbd" />
> Installation completes successfully but frameworks aren't linked correctly 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