Crash with new arch enabled
Platform
- [x] iOS
- [ ] Android
Description Application crash with new arch enabled
TypeError: Cannot read property 'getIcon' of null
Device (please complete the following information):
- Device: iPhone 12 Pro
- OS: iOS 18.2
Versions
- react-native: 0.76.5
- react-native-change-icon: 5.0.0
This should fix it - https://github.com/skb1129/react-native-change-icon/pull/115
Any progress on this?
The patch fixes the crash for me, but changing the icon is not working on ios for me
@skb1129 Any progress on this ? both changeIcon and getIcon not working
On XCode from Pods > Development Pods > react-native-change-icon open file ChangeIcon.h. Remove all content and add this
#import <UIKit/UIKit.h>
#import <React/RCTBridgeModule.h>
@interface ChangeIcon : NSObject <RCTBridgeModule, UIApplicationDelegate>
@end
On XCode from
Pods > Development Pods > react-native-change-iconopen fileChangeIcon.h. Remove all content and add this#import <UIKit/UIKit.h> #import <React/RCTBridgeModule.h> @interface ChangeIcon : NSObject <RCTBridgeModule, UIApplicationDelegate> @end
Thanks for the solution, it's working fine locally. Should I add the Pods to .gitignore? Is there a way to avoid pushing the Pods for release ipa?
On XCode from
Pods > Development Pods > react-native-change-iconopen fileChangeIcon.h. Remove all content and add this#import <UIKit/UIKit.h> #import <React/RCTBridgeModule.h> @interface ChangeIcon : NSObject <RCTBridgeModule, UIApplicationDelegate> @endThanks for the solution, it's working fine locally. Should I add the Pods to .gitignore? Is there a way to avoid pushing the Pods for release ipa?
any solution ?