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

[iOS] Trouble installing iOS in general #76

Closed
vongohren opened this issue Jan 19, 2017 · 12 comments
Closed

[iOS] Trouble installing iOS in general #76

vongohren opened this issue Jan 19, 2017 · 12 comments

Comments

@vongohren
Copy link

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

@dwilt
Copy link

dwilt commented Jan 19, 2017

@Snorlock put together a video showing everything I did: https://www.youtube.com/watch?v=VtrumM39wEg

@vongohren
Copy link
Author

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.

@dwilt
Copy link

dwilt commented Jan 22, 2017

No problem. What do you mean - the default file?

@vongohren
Copy link
Author

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

@vongohren
Copy link
Author

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.

@vongohren
Copy link
Author

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?

@coreyar
Copy link

coreyar commented Feb 27, 2017

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.

@coreyar
Copy link

coreyar commented Feb 27, 2017

Solved the issue. Problem was caused by spaces in my .env file. Works on 0.3.0 when I correct the spacing.

@vongohren
Copy link
Author

I ended up creating my own: https://bitbucket.org/enturas/react-native-config-swift

@hiaw
Copy link

hiaw commented Aug 11, 2017

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.

@vongohren
Copy link
Author

Think you can use the one on bitbucket pretty straight out.
But we ended up writing ourselves from swift to C# because it was tooo many problems with updating when having swift in the bottom

@vongohren
Copy link
Author

Closing now because solutions have been made

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

4 participants