-
Notifications
You must be signed in to change notification settings - Fork 655
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] Trouble installing iOS in general #76
Comments
@Snorlock put together a video showing everything I did: https://www.youtube.com/watch?v=VtrumM39wEg |
Thats fucking amazing that you made this video! Thanks dude! I looked through it and I have done it all except for the schemas. I tried to just get it running with the default file .env. But as mentioned it's still empty. Did you ever try the default file? I will look at this more closely on monday, and see how introducing schemas works for me. Im currently off work for the weekend. |
No problem. What do you mean - the default file? |
He writes that if you just use a .env file. Then that will be a default file of the whole setup. Then you dont need schemase and stuff. Its in the README |
The weird thing is that I do all these things, firstly iv just used the "main" schema and trying just to get my .env.staging file in and through to the web. Iv verified that the ruby script actually picks up the file and converts to key values and creates the genereatedConfig Object-C class with the right values and everything, but I stille cant get it out to the web for some reason. Works fine on android. |
Ok, I think that iv figuerd out what is the problem. We are running cocoapods and this creates problems for npm link and usage. The file is generated and all through the build and the ruby script, but I guess it's not included proparly. @pedro do you have any input on this? |
I also ran into a similar issue with version 0.3.0. I had another project using 0.1.0 that I know works and was able to solve this issue by downgrading versions. I have not investigated why the problem occurs yet. |
Solved the issue. Problem was caused by spaces in my .env file. Works on 0.3.0 when I correct the spacing. |
I ended up creating my own: https://bitbucket.org/enturas/react-native-config-swift |
Anyway we can merge the Swift version back in here? Cause I'm using Swift to write my bridge and not sure how to use RN Config. |
Think you can use the one on bitbucket pretty straight out. |
Closing now because solutions have been made |
I can't seem to get nothing but an empty config object in my app on iOS. In android it works fine.
I have installed through npm, I have run link, have verified the files for ReactNativeConfig is in my project, by searching for its files. Tried to set up the the info.plist setup, ran pod update, but still, its very empty.
Any suggestions? I have not done anything else
The text was updated successfully, but these errors were encountered: