unimonkiez / react-native-asset

Linking and unlinking of assets 🔥
302 stars 52 forks source link

Fails when ios project was never built (on Windows) #29

Open pke opened 4 years ago

pke commented 4 years ago

This is related to https://github.com/react-native-community/cli/issues/1173

$ npx react-native-asset
info Linking otf assets to iOS project 
WARN ERRGROUP Group 'Resources' does not exist in your Xcode project. We have created it automatically for you.
Cannot read property 'UIAppFonts' of null

Maybe this tool could print out a better error message?

unimonkiez commented 4 years ago

It seems like something with the linking, try this

pke commented 4 years ago

It seems like something with the linking, try this

No, this does not solve it. The problem is described in https://github.com/react-native-community/cli/issues/1173

I do NOT HAVE an ios project in my app.

unimonkiez commented 4 years ago

I haven't noticed the title the first time I read the issue.
So we need to add the ability to ignore android / ios projects when they are not present.
Seems like an easy PR, if you want to do it.

pke commented 4 years ago

Sure will do, when I find the time to dig into the source code.