-
-
Notifications
You must be signed in to change notification settings - Fork 79
CocoaPods for MaterialComponents/TextControls fails #392
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
Comments
@dangrima90 did you run |
@farfromrefug Yes ran |
@dangrima90 you can look in the podfile lock to see what version is installing. It should be the latest. |
@dangrima90 cant tell you much more. The pod specs are correct https://github.com/CocoaPods/Specs/blob/master/Specs/0/1/9/MaterialComponents/124.2.0/MaterialComponents.podspec.json and |
@farfromrefug Understood, thanks for the info. So I've analysed the generated podfile and here's all the references to
Could any of these be creating a problem? |
@dangrima90 this is /your issue |
Ehh thought so - We're stuck with NativeScript 7 unfortunately 😞 Not sure if there's a way for us to "override that part". In our app we don't use the tabs themselves. |
Asking as I saw this a few moments ago (NativeScript/nativescript-cli#5061) But I'm not so sure how it can be used. |
@dangrima90 you can create a hook to modify the podfile and remove it. This is what i did in 5.x and 6.x of material components. You should be able to find it in git history |
Alright time to go back in history then 😆 thanks for your help |
@farfromrefug I solved it. Didn't need to use the hooks. nativescript.config.ts import { NativeScriptConfig } from '@nativescript/core';
export default {
id: 'transfers.medirect',
appPath: 'src',
appResourcesPath: 'App_Resources',
android: {
v8Flags: '--expose_gc',
markingMode: 'none'
},
overridePods: 'true' // <----- set overridePods to true
} as NativeScriptConfig; App_Resources/iOS/Podfile
Thanks for your help :) |
@dangrima90 wow did not know about that option !!! |
From what I'm seeing in NativeScript 6 it used to exist but it was a boolean in a JSON file. Now for NativeScript 7 I'm seeing a TypeScript config file and not a JSON one. Now for some reason the type is set to a string - I thought let me try true as a string instead. Just my luck it worked :) |
A bit of a weird issue but I can't seem to figure out what the issue is. When trying to use
@nativescript-community/ui-material-textfield
I can't use version 7 of the package on iOS.I'm always getting the following error:
The screenshot displays the error being shown for
MaterialComponents/TextControls+UnderlinedTextFields
, but each time I try to run a differentMaterialComponents/TextControls
Pod gets listed. Basically it's always one of the following:Which of course it's understandable as these are the dependencies of
@nativescript-community/ui-material-textfield
.I've tried countless things from updating pods, to reinstalling pods, clearing the cache, trying to force the pods version myself, trying different 7.x versions - but no luck whatsoever.
With
@nativescript-community/ui-material-textfield
version 6 I've seen no problems. However I'm at a point where I need to use both@nativescript-community/ui-material-textfield
and@nativescript-community/ui-material-bottomsheet
. Since I need bottom sheet v7, all material components should be using v7 so that the core is using the same version. However I'm stuck as when trying to run on iOS it always fails due toMaterialComponents/TextControls
.I understand that it might be difficult to deduce what the issue is, but any idea what could be the problem here?
The text was updated successfully, but these errors were encountered: