cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shazron Abdullah (JIRA)" <>
Subject [jira] [Commented] (CB-4635) Binary source frameworks import with errors when they start with a lowercase letter
Date Wed, 08 Jan 2014 00:03:54 GMT


Shazron Abdullah commented on CB-4635:

My plugin TestFlight uses "libTestFlight.a" (lowercase l) with no problems however:

> Binary source frameworks import with errors when they start with a lowercase letter 
> ------------------------------------------------------------------------------------
>                 Key: CB-4635
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS, Plugman
>    Affects Versions: 3.0.0
>         Environment: Mac OS 10.7.5, Xcode Version 4.6.3 (4H1503), plugman version 0.10.0,
phonegap version 3.0.0-0.14.0. 
>            Reporter: Andrew Tremblay
>            Assignee: Shazron Abdullah
>            Priority: Minor
> The [AppBlade SDK Phonegap Plugin|]
uses libAppBladeUniversal.a as a binary file, which can be added to the Libraries of a native
iOS target with no problems. From the plugin documentation, following the example, the proper
way to declare the plugin in the plugin.xml would be  
>  {code:xml} 
>     <source-file src="src/ios/libAppBladeUniversal.a" framework="true"/>
>  {code} 
> and the proper way to import the plugin would be 
> plugman install --platform ios --plugin AppBlade-PhoneGap-Plugin-Directory/ --project
> However, doing so caused the following linker errors when building in Xcode:
>     ld: warning: directory not found for option '-L/Users/andrewtremblay/Development/Local
Tests/PhoneGap Plugin Tests/Hello-AppBlade/platforms/ios/Hello-AppBlade/Plugins/com.appblade.cordova.plugin'
>     *ld: library not found for -lAppBladeUniversal*
> The "lib" was getting dropped somewhere and the framework flag was being pseudo-ignored
(it was being added as both a compile source and a linked library in the build target). 
>  I reverted the plugin, capitalized the library (both the file and the declaration in
the xml), and reran the command. It fixed the error.
>  {code:xml} 
> <source-file src="src/ios/LibAppBladeUniversal.a" framework="true"/>
>  {code} 
> I'm fine with that fix for now, but given that it's legal for an iOS developer to name
their own binaries in lowercase (and case sensitivity in filesystems is a whole other can
of worms), this should probably be considered a bug and investigated further.

This message was sent by Atlassian JIRA

View raw message