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

Issue when running pod install #453

Closed
Lump01 opened this issue Aug 14, 2024 · 3 comments
Closed

Issue when running pod install #453

Lump01 opened this issue Aug 14, 2024 · 3 comments

Comments

@Lump01
Copy link

Lump01 commented Aug 14, 2024

I'm getting this error when running pod install and RCT_NEW_ARCH_ENABLED=0 pod install:

[!] Invalid `Podfile` file: 
[!] Invalid `RNLiveMarkdown.podspec` file: undefined method `add_dependency' for Pod:Module.

 #  from $PROJECT_DIR/node_modules/@expensify/react-native-live-markdown/RNLiveMarkdown.podspec:26
 #  -------------------------------------------
 #    if ENV['USE_FRAMEWORKS'] && ENV['RCT_NEW_ARCH_ENABLED']
 >      add_dependency(s, "React-Fabric", :additional_framework_paths => [
 #        "react/renderer/textlayoutmanager/platform/ios",
 #  -------------------------------------------
.

 #  from $PROJECT_DIR/ios/Podfile:12
 #  -------------------------------------------
 >    config = use_native_modules!
 #  
 #  -------------------------------------------

Versions:

"react-native": "0.72.3",
"@expensify/react-native-live-markdown": "0.1.113",
"react": "18.2.0",

The new architecture is not enabled on my project and I also disabled it with the RCT_NEW_ARCH_ENABLED flag in my pod install.

@tomekzaw
Copy link
Collaborator

tomekzaw commented Sep 2, 2024

@Lump01 Thanks for opening the issue!

Are you using react-native-live-markdown in a bare React Native project or with Expo?

@Lump01
Copy link
Author

Lump01 commented Sep 2, 2024

I’m using a bare React Native project.

@tomekzaw
Copy link
Collaborator

tomekzaw commented Sep 3, 2024

@Lump01 I just noticed that you're using RN 0.72.3. Currently, react-native-live-markdown supports only RN 0.74. Some older versions support only RN 0.73 and we're about to merge RN 0.75 support later this week.

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

2 participants