apache / cordova-plugman

Apache Cordova Plugman
https://cordova.apache.org/
Apache License 2.0
399 stars 151 forks source link

unnecessary to add 'frameworks' to source files #11

Closed athibaud closed 10 years ago

athibaud commented 11 years ago

adding static libs to source files will add these to the build section. which is unnecessary and results in a warning in xcode:

warning: no rule to process file 'path/to/lib.a' of type archive.ar for architecture __arch

agrieve commented 10 years ago

@athibaud - was this fixed? Or is this still something that we should add in? @imhotep - do you know?

athibaud commented 10 years ago

@agrieve from a quick glance to the code it doesn't seem like it was fixed. can't check more thoroughly right now.

agrieve commented 10 years ago

@athibaud Getting back to this - would like to write a test for it. How can I reproduce the error?

imhotep commented 10 years ago

@agrieve I might be mistaken but I don't think this would produce any errors. It's just for organizational esthetics and only applies to static libraries. @shazron might be able to confirm.

athibaud commented 10 years ago

@imhotep indeed this does not produce an error just a warning though i would argue fixing this is not just for organisational aesthetics but correctness. minor anyhow.

@agrieve as mentioned in the PR simply adding a static library to the dependencies should cause the warning, something like:

<platform name="iOS">
  ...
  <source-file src="path/to/static/lib.a" />
  ...
</platform>
shazron commented 10 years ago

Correct - no error, but not correct nonetheless. It was a minor issue during the time. Ideally static libs should not be considered "source files" but have another mechanism to be added to the project (since <framework> does not copy the static lib to the project, we need <source-file> to do this)

agrieve commented 10 years ago

Okay, sounds good! I've created a JIRA issue for it: https://issues.apache.org/jira/browse/CB-6025

And have merged it in.

Please close the pull request.