Skip to content

Couple of fixes for xcode12 support #418

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

Merged
merged 5 commits into from
Sep 25, 2020

Conversation

ollitapa
Copy link
Contributor

Hi, sorry if I'm a bit too eager to get SPM-support for this project, but seemed like this branch missed some finishing touches. I had to fix the Bundle search function to match what the SPM generates to Bundle.module, because it was not finding the correct bundle on my app. Hopefully this supports CocoaPods/Carthage too, but I did not test it.

else {
return bundle

let bundleName = "SwiftMessages_SwiftMessages"
Copy link
Member

Choose a reason for hiding this comment

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

This isn't the right bundle name for CocoaPods, so it won't work as-is

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok, I was skeptical of that too 😅 I'll try if I can modify the original a little less to get the correct bundle in SPM case.

@wtmoose
Copy link
Member

wtmoose commented Sep 25, 2020

How about the adjustment I pushed? I tried to streamline the implementation a bit with a nested loop. And I returned a fallback value that matches the original implementation.

There's a separate issue with CocoaPods, but I can handle that after merging this into the feature branch.

@ollitapa
Copy link
Contributor Author

Looks good! I can confirm it still works on my project. 👍

@wtmoose
Copy link
Member

wtmoose commented Sep 25, 2020

Great! Gonna merge this in and try to get a release out. Thanks for helping out

@wtmoose wtmoose merged commit 5acae56 into SwiftKickMobile:work/xcode12 Sep 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants