NSInvalidArgumentException on iOS, React 0.40
See original GitHub issueHi, I’m getting this issue thrown. Is this occurring for anyone else?
Setup:
“react”: “15.4.2”,
“react-native”: “^0.40.0”,
“react-native-progress”: “^3.2.0”,
Error:
[__NSArrayI length]: unrecognized selector sent to instance 0x131a20af0
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSArrayI length]: unrecognized selector sent to instance 0x131a20af0'
Code;
- (instancetype) initWithPathString:(NSString *)d
{
if (self = [super init]) {
NSRegularExpression* decimalRegularExpression = [[NSRegularExpression alloc] initWithPattern:@"(\\.\\d+)(?=\\-?\\.)" options:0 error:nil];
_originD = d;
// ERROR ON THE LINE BELOW //
_d = [decimalRegularExpression stringByReplacingMatchesInString:d options:0 range:NSMakeRange(0, [d length]) withTemplate:@"$1\,"];
// ERROR ON THE LINE ABOVE //
_pathRegularExpression = [[NSRegularExpression alloc] initWithPattern:@"[a-df-z]|[\\-+]?(?:[\\d.]e[\\-+]?|[^\\s\\-+,a-z])+" options:NSRegularExpressionCaseInsensitive error:nil];
}
return self;
}
Issue Analytics
- State:
- Created 7 years ago
- Reactions:2
- Comments:14 (3 by maintainers)
Top Results From Across the Web
React Native IOS: "Terminating app due to uncaught ...
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'executeFetchRequest:error: A fetch request must have an entity.
Read more >NSCFString objectForKeyedSubscript unrecognized selector ...
When I run it, it crashes and gives this error: NSCFString objectForKeyedSubscript unrecognized selector sent to instance. I want to show ...
Read more >[Solved]-React Native on M1 Air fails to build for iOS
In my podfile I updated my use_flipper to use_flipper!('Flipper' => '0.75.1', 'Flipper-Folly' => '2.5.1', 'Flipper-RSocket' => '1.3.1').
Read more >react-native-in-app-utils - npm
A react-native wrapper for handling in-app purchases in iOS. Breaking Change. Due to a major breaking change in RN 0.40+, use version 5...
Read more >unrecognized selector sent to instance 0x1dae7dbf8
I am a React native developer I don't have knowledge on IOS app development. ... app due to uncaught exception 'NSInvalidArgumentException', ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It turns out the issue is when I use width={‘100%’}, I had missed the documentation, when I looked back again and set the width value to null, it is working again.
I’m having the exact same issue, but with https://github.com/bgryszko/react-native-circular-progress
Not sure if it’s a ReactNativeART related issue, but it definitely only started to appear after upgrading to RN 0.40