-
Notifications
You must be signed in to change notification settings - Fork 52
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
[??] iOS does not build when using latest XCode #159
Comments
Here is what I generally do:
I think there are some differences, major is installing node_modules in example subdirectory or not. I would like to try some more cases out to better understand issues like this, cannot make any promises right now due to some other priorities. The react-native build system seems to be quite a bit sensitive, argh! |
So after doing a clean install this morning of XCode, and insuring I was using the latest react-native via updating both |
Thanks @chrisgbaker for the confirmation. I would like to do some more testing myself and maybe get this documented before closing. |
I am having the same issue. I have spent a whole day trying to figure out what is it. I will be doing the same as you: reinstalling XCode and see what I can get. |
This issue is now pinned as a bug for further investigation, with help wanted. I cannot promise when I can investigate due to some other commitments and priorities. Thanks guys for the input so far. |
I am having the same issue but sadly don't have any more reproduction details to share. Using xcode 11. I created a module using |
I've figured out a fix! Wix's guide here is where I saw it: https://medium.com/wix-engineering/creating-a-native-module-in-react-native-93bab0123e46 You need to add (I'm not sure the code fix for this library, but this is how to fix it as a user) |
@Tibfib I don't think this fix works anymore as latest RN @brodybits It would be good to upgrade to latest RN version for template, which introduces this bug and preventing from building the app Tried to build other native modules for RN (community one) and all failed in I finally find a solution, had to upgrade some 3rd party libs to use |
Thanks to all for your comments and continued patience. I generally do not support manual installation and would consider this to be a temporary workaround solution.
That is already tracked in a checklist in #93, with some other linked issues. The major blocker is to fix the generated iOS example, as discussed in #99. Unfortunately my mac is still not back from repair. |
I've had these header search path issues with other react-native packages as well such as here apptentive/apptentive-react-native#78. The reason for the breaking is that since RN 0.60 (or 0.61), they changed the paths of the headers in in the react-native repository and affecting also the They used to be under |
Any timeline on a fix or smth? |
Hi everyone, I have encountered the same issue not only here, but in a bunch of different RN libraries also. I needed a template for the library written in TypeScript with a working example, so I created one from scratch, which is successfully working with the latest RN version (0.61.4 atm). To link the iOS project to the example I did two things:
where
I guess this solution will not work below 0.61.2, but in my case, I wanted to support only the latest version. You can check the whole implementation here https://github.com/demchenkoalex/react-native-module-template. |
I will still probably need some more time to sort this out. A couple ideas I have right now:
|
The following may work for you: From the module's folder, run
Now we want to change the scheme from the default selection of I also added this very same solution to this StackOverflow issue about "'React/RCTBridgeModule.h' file not found" messages from XCode. This solution does not involve modifying any files. My |
I have updated this utility to work with React Native 0.61 and have tested the generated example on iOS in the following scenarios:
I am now closing this issue. In case of any further problems a new issue would be much appreciated. |
Steps to Reproduce
create-react-native-module MyModule --generate-example
cd react-native-my-module
npm i
(oryarn
).xcodeproj
file)Expected
Actual
<React/RCTBridgeModule.h>
The odd part about this is that step two listed above worked, and had made several local projects until about 2-3pm today. Now, when a new project is scaffolded, there are zero connected/linked Frameworks, and the build for the module instantly fails. However, Android builds just fine. This was also tried on two different macbook pros, running
10.14.6
On the machine that had not globally installedcreate-react-native-module
until after this issue arose, iOS builds have never worked. This feels too strange given that iOS13 was released today, but I'm not certain it's related, considering I'm not trying to run the example on a device, but simply build the main, generated module. Also, FWIW, the generatedexample
project will build.Let me know if I can provide any more information! And thanks for the work you've done! When this was working this morning, it definitely saved a lot of time in getting a native module spun up.
The text was updated successfully, but these errors were encountered: