Closed arelstone closed 7 years ago
It's probably just cache, try deleting the ios/build
folder.
@oblador didn't help anything. Process: deleteed the ios/build folder build successed but gets error below
.........
CodeSign Build/Products/Debug-iphonesimulator/Auctioness.app/PlugIns/AuctionessTests.xctest
cd /Users/carstendaurehoj/Code/Auctioness/ios
export CODESIGN_ALLOCATE=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/carstendaurehoj/.composer/vendor/bin:/Users/carstendaurehoj/bin:/usr/local/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/carstendaurehoj/bin"
Signing Identity: "-"
/usr/bin/codesign --force --sign - --timestamp=none /Users/carstendaurehoj/Code/Auctioness/ios/Build/Products/Debug-iphonesimulator/Auctioness.app/PlugIns/AuctionessTests.xctest
** BUILD SUCCEEDED **
Installing build/Build/Products/Debug-iphonesimulator/Auctioness.app
An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=2):
Failed to install the requested application
An application bundle was not found at the provided path.
Provide a valid path to the desired application bundle.
Print: Entry, ":CFBundleIdentifier", Does Not Exist
Command failed: /usr/libexec/PlistBuddy -c Print:CFBundleIdentifier build/Build/Products/Debug-iphonesimulator/Auctioness.app/Info.plist
Print: Entry, ":CFBundleIdentifier", Does Not Exist
Same issue.
Must be cache. I got the same issue and deleting & building the app again worked for me!
I'm quite certain this is a cache issue. You can try deleting the build
folder, resetting simulator and deleting DerivedData
.
I could solve this issue by removing cached files as @greendad and @oblador mentioned.
I tried to rm -rf /ios/build
as well as rm -rf ~/Library/Developer/Xcode/DerivedData
and neither solution worked for me.
Edit: deleted the Fonts folder and re-imported. I think I'd messed up the step about checking "Create Groups" because it works fine now!
I have this issue which does not present the red screen but replaces icons by interrogations marks.
It happened when I activated localization to
info.plist
files.
NOTE: Before applying native localization I did not have any problem.
I tried resetting caches and builds, linkings I even upgraded react-native and react dependencies:
"dependencies": {
"immutable": "^3.8.1",
"react": "16.0.0-alpha.12",
"react-native": "^0.45.1",
"react-native-animatable": "^1.1.1",
"react-native-touch-id": "^3.0.0",
"react-native-vector-icons": "^4.0.1",
...etc...
but no way to fix it.
info.plist
? Since it seems like there is some new step necessary in that case.same issue
Closing this since it's the well documented cache issue. @MacKentoch please open a new issue if you still have problems with localized Info.plist
, it's not really a bug caused by this library but could be worth improving README for this use case.
@oblador You are right this is far beyond the scope of the library.
Sorry I did not give a feedback.
I guess I just messed myself with localization...
Here is the appropriate solution for my case (so that no one would need to open such an issue)
info.plist
file itself!infoPlist.strings
(name it exactly)Then you can translate the keys of info.plist you desire, for example:
"NSLocationWhenInUseUsageDescription" = "give a description in other languages that will tell here user why application requires location when in use";
I've had the same problem! It was NOT the CACHE here!
react-native link simply did nothing at all. I'm on the most current RN. This used to work two RN versions ago. I can see in git status, that there were no changes. Therefore also the fonts have not been included
So I've added an rnpm "assets" section at package.json,
"rnpm": {
"assets": [
"assets"
]
}
copied the fonts to this folder and called react-native link, which did nothing again.
It did finally work with react-native link assets, despite of complaining about a missing assets folder in node_modules.
Just reporting this, maybe it helps figuring this out.
same issue here, it's not the cache problem. I pod installed this package and gives me this error, and icons won't load.
Thanks! Deleting ios/build
folder works for me. @oblador
Thanks! Deleting ios/build folder works for me. @oblador
Thanks @oblador 👍 deleting ios/build folder works for me either.
rm -rf ios/build and rebuild works for me 👍
None of the suggestions work for me, I'm using react-native-multiple-select which has this in code:
import Icon from 'react-native-vector-icons/MaterialCommunityIcons';
<Icon name={hideSubmitButton ? 'menu-right' : 'menu-down'}/>
Should be OK, right?
The issue is due to cache..after installing react native elements and vector icons ,I followed this;
killall -9 node
npm start
react-native run-ios or run-android
v57.2 has some issues
The issue is due to cache..after installing react native elements and vector icons ,I followed this;
killall -9 node
npm start
react-native run-ios or run-android
v57.2 has some issues
This worked for me too. Thank you.
For some reasons some assets are not automatically linked and needed to be manually linked using
react-native link react-native-gesture-handler
then:
react-native run-ios / react-native run-android
Though auto linking is suggested is later versions of RN, they state that a few packages will still need to be manually linked and react-native-vector-icons
is one of those.
This helped FIX my issue: Stackoverflow Solution Link
This https://aboutreact.com/react-native-vector-icons/ plus what @oblador suggested worked for me.
Thank!
This worked for me.
react-native link react-native-vector-icons
cd ios && pod install && cd ..
rm -rf ios/build
react-native run-ios
This worked for me.
react-native link react-native-vector-icons cd ios && pod install && cd .. rm -rf ios/build react-native run-ios
Thanks, it worked for me too.
I've followed all these instructions, NOT a cache issue for me.
I noticed MaterialCommunityIcons.ttf was in my Resources folder but NOT under Build Phases > Copy Bundle Resources, so did the manual linking instructions. I added the font files manually to Copy Bundle Resources, and then adding the fonts to Info.plist as well.
I tried everything in this thread and @nicolastanski 's solution worked for me! Thanks!
This worked for me too.
react-native link react-native-vector-icons cd ios && pod install && cd .. rm -rf ios/build react-native run-ios
Please add this following lines in your Info.plist file under ios -> you_project_name -> info.plist
<key>UIAppFonts</key>
<array>
<string>FontAwesome.ttf</string>
<string>FontAwesome5_Brands.ttf</string>
<string>FontAwesome5_Regular.ttf</string>
<string>FontAwesome5_Solid.ttf</string>
<string>Foundation.ttf</string>
<string>Ionicons.ttf</string>
<string>MaterialIcons.ttf</string>
<string>MaterialCommunityIcons.ttf</string>
</array>
The package documentation instructs that you need to perform some steps after installation for it to work on iOS:
https://medium.com/@vimniky/how-to-use-vector-icons-in-your-react-native-project-8212ac6a8f06
This will definitely help you if you tried all of the above and still not getting the expected
Please add this following lines in your Info.plist file under ios -> you_project_name -> info.plist
<key>UIAppFonts</key>
<array>
<string>FontAwesome.ttf</string>
<string>FontAwesome5_Brands.ttf</string>
<string>FontAwesome5_Regular.ttf</string>
<string>FontAwesome5_Solid.ttf</string>
<string>Foundation.ttf</string>
<string>Ionicons.ttf</string>
<string>MaterialIcons.ttf</string>
<string>MaterialCommunityIcons.ttf</string>
</array>
This Worked. Thanks @gayathri-perumal
I've had the same problem! It was NOT the CACHE here!
react-native link simply did nothing at all. I'm on the most current RN. This used to work two RN versions ago. I can see in git status, that there were no changes. Therefore also the fonts have not been included
So I've added an rnpm "assets" section at package.json,
"rnpm": { "assets": [ "assets" ] }
copied the fonts to this folder and called react-native link, which did nothing again.
It did finally work with react-native link assets, despite of complaining about a missing assets folder in node_modules.
Just reporting this, maybe it helps figuring this out.
Thank it worked
In my case when I've used use_frameworks!
in my Podfile
, this error arises but none of above solutions worked for me.
Finally, to solve the problem as mentioned in Documentations here, in second last sentence. I had to use Icon.loadFont()
prior to using any Icon (I did it in my index.js for all fonts together).
import MaterialCommunityIcons from "react-native-vector-icons/MaterialCommunityIcons";
if (Platform.OS === 'ios') {
MaterialCommunityIcons.loadFont()
}
This will definitely help you if you tried all of the above and still not getting the expected
Please add this following lines in your Info.plist file under ios -> you_project_name -> info.plist
<key>UIAppFonts</key>
<array>
<string>FontAwesome.ttf</string>
<string>FontAwesome5_Brands.ttf</string>
<string>FontAwesome5_Regular.ttf</string>
<string>FontAwesome5_Solid.ttf</string>
<string>Foundation.ttf</string>
<string>Ionicons.ttf</string>
<string>MaterialIcons.ttf</string>
<string>MaterialCommunityIcons.ttf</string>
</array>
work for me ... thanks man
This will definitely help you if you tried all of the above and still not getting the expected
Please add this following lines in your Info.plist file under ios -> you_project_name -> info.plist
<key>UIAppFonts</key>
<array>
<string>FontAwesome.ttf</string>
<string>FontAwesome5_Brands.ttf</string>
<string>FontAwesome5_Regular.ttf</string>
<string>FontAwesome5_Solid.ttf</string>
<string>Foundation.ttf</string>
<string>Ionicons.ttf</string>
<string>MaterialIcons.ttf</string>
<string>MaterialCommunityIcons.ttf</string>
</array>
thanks
This will definitely help you if you tried all of the above and still not getting the expected
Please add this following lines in your Info.plist file under ios -> you_project_name -> info.plist
<key>UIAppFonts</key>
<array>
<string>FontAwesome.ttf</string>
<string>FontAwesome5_Brands.ttf</string>
<string>FontAwesome5_Regular.ttf</string>
<string>FontAwesome5_Solid.ttf</string>
<string>Foundation.ttf</string>
<string>Ionicons.ttf</string>
<string>MaterialIcons.ttf</string>
<string>MaterialCommunityIcons.ttf</string>
</array>
It's work !!!! you safe my life!! thx so much~~~
I get the Unrecognized font family error if i run react-native run-ios. If i run thru xcode everything works.
I've followed the steps in the troubleshooting area on the readme file and read all PR's regarding this isssue. Still no fix.
Process:
Fails: npm install --save react-native-vector-icons react-native link react-native run-ios
Working: npm install --save react-native-vector-icons react-native link open xcode -> run
Log (when running react-native run-ios):
Thanks in advance