question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Icons fail to show on Release Build!

See original GitHub issue

Environment

  • iOS (Release build)
  • react native 0.63.1
  • react native vector icons: latest

Description

In debug/development everything works fine. Icons show as usual. But once I build the app for release/production, the Icons don’t show up. Not even question-mark boxes.

image

(Bottom bar should be Icons)

I have auto-linked the library, but specified only “MaterialCommunityIcons” in my Info.plist, because that’s the only set I use. Do I still have to leave all of them in there?

~Also, I have called Icon.loadFont() at the entry point. (top of App.tsx)~ <-- Not required, as I’m not using use_frameworks! in my Podfile.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:3
  • Comments:22 (9 by maintainers)

github_iconTop GitHub Comments

2reactions
r0stigcommented, Aug 4, 2020

@r0stig do you still have to do those steps in >0.60 with autolinking?

I’m using 0.63.2 and I had to add that line in build.gradle after updating to 7.0.0 for all icons to work.

1reaction
vohoangankhanhcommented, Aug 5, 2020

just add apply from: “…/…/node_modules/react-native-vector-icons/fonts.gradle” in the bottom off android/app/build.gradle ( NOT android/build.gradle ) then sync again the project and icon will show correctly

Read more comments on GitHub >

github_iconTop Results From Across the Web

icons not showing on release build… | Apple Developer Forums
Hello Sir, I am facing issue after upgrade my Xcode 12.x version. Application showing button image, navigation bar icons image and other image...
Read more >
Android Menu icons don't appear in the release build but ...
Android Menu icons don't appear in the release build but display in the debug build - Stack Overflow. Stack Overflow for Teams –...
Read more >
Thread: Release icons not showing - Qt Centre Forum
I have a Qt application... i build it using visual studio 2008... When i get a release build, the applications runs fine,but icons...
Read more >
Flutter App IOS Release Build Error: Missing Required Icon ...
I think your file system has gotten out of sync somehow. If you right click on Assets.xcassets in Android Studio and then click...
Read more >
Analyze your build with the APK Analyzer - Android Developers
Figure 2 shows an error being reported for the selected manifest file. ... are normally in project / app /build/outputs/mappings/release/ .
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found