Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mixed language static frameworks #7519

Merged
merged 1 commit into from
Mar 20, 2018
Merged

Mixed language static frameworks #7519

merged 1 commit into from
Mar 20, 2018

Conversation

paulb777
Copy link
Member

@paulb777 paulb777 commented Mar 16, 2018

closes #7213
closes #7307

Support static frameworks with a mix of Objective C and Swift

It turns out that solving this problem simplifies the static framework implementation. Instead of building a static library and moving files around to create a static framework, we now build a standard Xcode framework, but just force its library to be static - so Xcode will do all the file organization work.

I've verified that this fixes the mixed language examples from #7213, #7307 and #7413.

@dnkoutso
Copy link
Contributor

This is AWESOME

@dnkoutso
Copy link
Contributor

@paulb777 all existing cases internally to you work?

@paulb777
Copy link
Member Author

Yes, our internal cases - most of which are at https://github.com/firebase/firebase-ios-sdk - work with this after working around #7518

@dnkoutso dnkoutso added this to the 1.5.0 milestone Mar 16, 2018
CHANGELOG.md Outdated
@@ -8,6 +8,10 @@ To install release candidates run `[sudo] gem install cocoapods --pre`

##### Enhancements

* Mixed Objective C and Swift Static Frameworks
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit of nits two spaces after each entry

Copy link
Member

@segiddins segiddins left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm wondering if a couple of other changes are necessary:

  • AggregateTarget#resource_paths_by_config
  • the info plist generation
  • integration specs?

CHANGELOG.md Outdated
@@ -8,6 +8,10 @@ To install release candidates run `[sudo] gem install cocoapods --pre`

##### Enhancements

* Mixed Objective C and Swift Static Frameworks
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add support for mixed Objective-C and Swift static frameworks.

@@ -50,9 +50,6 @@ def install!
create_info_plist_file(target.info_plist_path, native_target, target.version, target.platform)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do you also want to remove the manual plist generation step?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, this unless should be here - since the static frameworks are linked at build time, a plist is not needed.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

makes sense, it was there before static frameworks were a thing.

@dnkoutso
Copy link
Contributor

the info plist generation

This needs to stay as it was there before static frameworks.

Also needs rebase.

@orta
Copy link
Member

orta commented Mar 20, 2018

Very cool 👍

@segiddins segiddins merged commit 2fe815c into CocoaPods:master Mar 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants