-
Notifications
You must be signed in to change notification settings - Fork 3
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
Build failure (ios) when trying to use purchases-kmp:ui #275
Comments
Hi, thanks for reporting this! A few questions to try to get to the bottom of this:
|
Hi I am having the same issue, tried adding what was suggested on that other issue with no luck. My background is mainly Android so it could be something silly. Here is a snipped of my build gradle incase its something obvious.
|
Part of the solution is to remove the PurchasesHybridCommonUI/PurchasesHybridCommon pods from build.gradle.kts. This is because it's already declared in the other Gradle dependencies and it seems to be causing conflicts. May have to do a Gradle clean as well, I don't remember the exact sequence that cleared it up. |
If I don't include the pods I get a linker error. I have put together a demo project that shows the error, signs do point to something in the RenvenueCat UI pod as I have had no issues with any of the firebase pods. |
I’m on mobile so I can’t look at that just yet. The other thing I did, is
remove the pods from the Podfile as well iirc. It’s definitely something to
do with the RevenueCatUI pod.
…On Sat, Dec 21, 2024 at 1:30 PM Stuart Campbell ***@***.***> wrote:
If I don't include the pods I get a linker error.
I have put together a demo project that shows the error, signs do point to
something in the RenvenueCat UI pod as I have had no issues with any of the
firebase pods.
RevenueCatTest.zip
<https://github.com/user-attachments/files/18219544/RevenueCatTest.zip>
—
Reply to this email directly, view it on GitHub
<#275 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA67XRWGNF6QZFCA4FOBQ7D2GWXUFAVCNFSM6AAAAABTJZ43KWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNJYGE4TMOJWGA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Tested again this morning and that test project is now building, digging further its the combanation of firebase pods and revenue cat that causes this issue. What I can't get my head around its its not a specific firebase library that breaks it instead its having multiple ones.
This doesn't build but commenting out any of the firebase libs fixes it and it doesn't seem to matter which one. Not conviced at this point its not just something messed up my local machine. |
@Stuart-campbell What do you have defined as |
@JayShortway thanks for your reply. Full sample project is attached above in that zip so you can test yourself to verify its not just my mac. Versions are ->
Error from Android studio but the same happens directly in xcode ->
Thanks |
@Stuart-campbell Thanks for providing that info. I can reproduce the issue with your test project. I'm not sure what's going on yet, still investigating. As a workaround for now, you might try removing the Some more questions to get the full picture:
|
@Stuart-campbell Okay so here are the results of the investigation done together with @MarkVillacampa. We found that this case is unique to the scenario where the Kotlin Multiplatform (" You can safely delete the target 'iosApp' do
use_frameworks!
platform :ios, '16.0'
pod 'shared', :path => '../shared', :platforms => :ios
# Add the following post_install script:
post_install do |installer|
installer.pods_project.targets.each do |target|
if target.name == 'shared'
target.build_configurations.each do |config|
config.build_settings.delete('ASSETCATALOG_COMPILER_APPICON_NAME')
end
end
end
end
end We'll be updating our (recently open-sourced) public documentation as well. Let me know if you have any more questions. Thanks a lot for reporting and providing the reproducer project! 🙏 |
That works thanks a lot for your help. |
the Contribution Guidelines
for existing Github issues
Describe the bug
Currently, can't get past the compile phase on iOS when trying to use the UI assets. This is probably an installation issue, because from what I see, the official docs are vague for the Paywall implementations.
I'm using Cocoapods, this is my configuration:
I'm not sure if I should include both
PurchasesHybridCommonUI
andPurchasesHybridCommon
?Gradle coordinates:
have context, eg. stackoverflow, etc.)
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: