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

Trouble linking project on iOS #18

Open
unixcow opened this issue Jul 27, 2019 · 8 comments
Open

Trouble linking project on iOS #18

unixcow opened this issue Jul 27, 2019 · 8 comments

Comments

@unixcow
Copy link

unixcow commented Jul 27, 2019

So i spent hours trying to figure out why do i get 'React/RCTBridgeModule.h' file not found when trying to build my project after linking react-native-text-size, i tried both manual install and using link. For some reason react-native-text-size can't find required header files, even though Search Header paths seem to point at the right direction $(SRCROOT)/../../react-native/React recursive. Also, Some people suggested unchecking Parallelize Build but i already have that disabled.

react-native Version: 0.59.8
react-native-text-size Version: 3.0.0

Any idea how can resolve this?

@ulazarevic
Copy link

I'm having the same issue. Did you manage to fix it ?

@aMarCruz
Copy link
Owner

@unixcow , @ulazarevic , please try the new version 4.0.0 rc 1.
yarn add react-native-text-size@4.0.0-rc.1
I don't have a Mac but hope it works.

@ulazarevic
Copy link

@aMarCruz

It's still not working. In react-native 0.60 they changed the way of importing libraries into the project.

When I try manual linking I get the same error message as @unixcow.

When I try automatic linking I get the following message:

error React Native CLI uses autolinking for native dependencies, but the following modules are linked manually:

  • react-native-text-size (to unlink run: "react-native unlink react-native-text-size")
    This is likely happening when upgrading React Native from below 0.60 to 0.60 or above. Going forward, you can unlink this dependency via "react-native unlink " and it will be included in your app automatically. If a library isn't compatible with autolinking, disregard this message and notify the library maintainers.
    Read more about autolinking: https://github.com/react-native-community/cli/blob/master/docs/autolinking.md

@aMarCruz
Copy link
Owner

aMarCruz commented Aug 1, 2019

@ulazarevic thanks for your feedback, I will fix this asap.

@unixcow
Copy link
Author

unixcow commented Aug 7, 2019

@ulazarevic here's how i managed to get it working, a bit hacky though

  1. Install npm i react-native-text-size
  2. Go to react-native-text-size folder in node_modules then iOS folder
  3. Find RNTextSize.podspec change s.source_files to *.{h,m}
  4. Add pod 'RNTextSize', :path => '../node_modules/react-native-text-size/ios/RNTextSize.podspec' into your Podfile
  5. Run pod install

@aMarCruz yeah i still have same issue even on latest version

@spale44
Copy link

spale44 commented Aug 8, 2019

Thanks @unixcow! It's working!

@aMarCruz
Copy link
Owner

aMarCruz commented Aug 9, 2019

@unixcow thanks! and sorry for the delay, I am about to finish my current project and will soon launch a functional version.

@mayconmesquita
Copy link

@aMarCruz did you release some version fixing this?

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

5 participants