Seemingly out of nowhere, my app's icon has been replaced by this image I've never seen before. This has only happened on iOS. When I view the AppIcon image in Xcode and the app's target image, it shows the correct icon.
Although I have third-party packages installed, they were already installed prior to this change happening. The app itself seems to still work fine.
My best guess
This may have happened after I archived for the first time since rebuilding it. So maybe Xcode thinks I am trying to replicate the old app with the same package name without the correct certification (although I'm using the same App Store Team). My disk is also very full but can't see why that should cause this.
Similar issues (none)
I haven't been able to find any reference anywhere to something like this happening before - React Native or not. Even the image seems to have been very sparsely used before.
My temporary fix
I was able to temporarily fix this issue by just changing the name of the app in Xcode and then changing it back. However without archiving since, the issue has reappeared a day later.
Update
I've done more digging and found the icon is from a sample framework called Iconicus - which I assume was installed by default by React Native. Any ideas on how it's overriding my icon and whether I'm free to delete those sample frameworks please?
My Pod file:
pod 'React', path: '../node_modules/react-native/', :subspecs => [
'Core',
'RCTActionSheet',
'RCTGeolocation',
'RCTImage',
'RCTLinkingIOS',
'RCTNetwork',
'RCTSettings',
'RCTText',
'RCTVibration',
'RCTWebSocket',
'DevSupport',
]
pod 'yoga', path: '../node_modules/react-native/ReactCommon/yoga'
pod 'rn-fetch-blob',
:path => '../node_modules/rn-fetch-blob'
pod 'Firebase/Core', '~> 5.15.0'
pod 'Firebase/Auth', '~> 5.15.0'
pod 'Firebase/Firestore', '~> 5.15.0'
pod 'Firebase/Storage', '~> 5.15.0'
pod 'Fabric', '~> 1.7.13'
pod 'Crashlytics', '~> 3.10.7'
pod 'NearbyMessages'
pod 'RNTouchThroughView', :path => '../node_modules/react-native-touch-through-view'
pod 'RNSVG', :path => '../node_modules/react-native-svg'
post_install do |installer|
installer.pods_project.targets.each do |target|
# The following is needed to ensure the "archive" step works in XCode. It removes React & Yoga from the Pods project, as it is already included in the main project.
targets_to_ignore = %w(React yoga)
if targets_to_ignore.include? target.name
target.remove_from_project
end
end