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

Multiple commands produce Assets.car #270

Closed
ileitch opened this issue Feb 28, 2020 · 7 comments
Closed

Multiple commands produce Assets.car #270

ileitch opened this issue Feb 28, 2020 · 7 comments

Comments

@ileitch
Copy link

ileitch commented Feb 28, 2020

6.2.0 uses resource in the podspec, which means this version cannot be used in projects that use static libraries due to a name conflict.

The cocoapods documentation strongly recommends using resource_bunldes instead to avoid this.

@tapashmajumder
Copy link
Contributor

@ileitch Can you please try using Swift Package Manager to import IterableSDK to your project? That should solve the problem with static libraries.

File -> Swift Packages -> https://github.com/Iterable/swift-sdk.git

@ileitch
Copy link
Author

ileitch commented Feb 28, 2020

I’m afraid that’s not possible, our project is completely dependent on CocoaPods currently.

@tapashmajumder
Copy link
Contributor

tapashmajumder commented Feb 28, 2020

Unless I am missing something, you can still continue to use cocoapods for other dependencies.

Just for IterableSDK you can try Swift package manager. It should probably take less than a minute to check it.
Remove IterableSDK from your Podfile and add SPM dependency like mentioned above.

@ileitch
Copy link
Author

ileitch commented Feb 28, 2020

Sorry, I wasn't clear in my last message. The point I was trying to make is that simply introducing SPM into our workflow isn't a 1 minute thing. We've multiple teams using this project, a pretty complex CI setup and an automated release process. Supporting two package managers isn't really a viable solution for us at this time.

Is there a reason that Iterable can't use a resource bundle like other pods?

@tapashmajumder
Copy link
Contributor

Thanks! I understand what you are saying now. It will take us some time to validate the solution that you are suggesting. We need to make sure that this change won't break other users who are not using our Pod as a static library.

@owattenmaker
Copy link

The workaround I found was in Xcode File->Workspace Settings and changing build system to Legacy Build System. Ideally this would be fixed as described above, but if you need to push a feature out the door then it will at least get the build passing.

@roninopf
Copy link
Contributor

roninopf commented Mar 3, 2020

Hi @ileitch, thanks for writing in. We've put a fix for this in 6.2.2. Please feel free to open a new issue if one arises.

@roninopf roninopf closed this as completed Mar 3, 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

No branches or pull requests

4 participants