react-native-line: 'RNLine-Swift.h' file not found
Your environment
You can run (react-native -v) to obtain info and paste it below:
- React: 18.2.0
- React Native: 0.71.8
- React Native Line: ^2.2.0
Description
In AppDelegate.mm, I can’t import “RNLine-Swift.h” I moved to top, and the problem is not solved
Screenshots
About this issue
- Original URL
- State: closed
- Created a year ago
- Reactions: 5
- Comments: 42 (3 by maintainers)
@tranquockhanh0506 Yes, absolutely you are right…Thank you very much anyway.
add: use_frameworks! :linkage => :static
in your pod file.
Same issue
Hey @najil-12 ! Sure, this is the file:
It should be almost the same as the one created when starting a new project with
npx react-native ....I see that you’re encountering the same issue as posted in #108. Can you provide your pod installation result?
Hey @purrsong-chong, how are you?
It’s possible that the issue could be related to the installation of pods and the generation of the bridging file for Objective-C and Swift. I recommend trying the following steps:
yarnto ensure that all dependencies are up to date.cd ios.pod installto install the necessary pods for your project.If the problem persists, you can also try cleaning and rebuilding your project within Xcode:
Sometimes, Xcode may not recognize changes immediately, so cleaning and rebuilding the project can help in such cases.
I hope these suggestions help you resolve the issue. If you have any further questions or encounter any additional problems, please let me know!