itinance / itinance/react-native-fs
iOS pod "error: too many arguments to block call, expected 1, have 3"
- Dominant language
- C++
- Stars
- 5k
- Forks
- 1k
- PR merge metrics
- No merged PRs in 30d
Description
Using `"version": "2.0.1-rc.2"` from package.json, I'm getting this when I'm building from xcode:
```
/path/to/my/project/node_modules/react-native-fs/RNFSManager.m:103:30: error: too many arguments to block call, expected 1, have 3
return reject(@"ENOENT", [NSString stringWithFormat:@"ENOENT: no such file or directory, open '%@'", filepath], nil);
~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/path/to/my/project/node_modules/react-native-fs/RNFSManager.m:123:32: error: too many arguments to block call, expected 1, have 3
return reject(@"ENOENT", [NSString stringWithFormat:@"ENOENT: no such file or directory, open '%@'", filepath], nil);
~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/path/to/my/project/node_modules/react-native-fs/RNFSManager.m:137:42: warning: incompatible pointer types sending 'NSException *' to parameter of type 'NSError *' [-Wincompatible-pointer-types]
return [self reject:reject withError:e];
^
/path/to/my/project/node_modules/react-native-fs/RNFSManager.m:431:67: note: passing argument to parameter 'error' here
- (void)reject:(RCTPromiseRejectBlock)reject withError:(NSError *)error
^
/path/to/my/project/node_modules/react-native-fs/RNFSManager.m:149:30: error: too many arguments to block call, expected 1, have 3
return reject(@"ENOENT", [NSString stringWithFormat:@"ENOENT: no such file or directory, open '%@'", filepath], nil);
~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/path/to/my/project/node_modules/react-native-fs/RNFSManager.m:197:30: error: too many arguments to block call, expected 1, have 3
return reject(@"ENOENT", [NSString stringWithFormat:@"ENOENT: no such file or directory, open '%@'", filepath], nil);
~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/path/to/my/project/node_modules/react-native-fs/RNFSManager.m:209:30: error: too many arguments to block call, expected 1, have 3
return reject(@"EISDIR", @"EISDIR: illegal operation on a directory, read", nil);
~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/path/to/my/project/node_modules/react-native-fs/RNFSManager.m:434:26: error: too many arguments to block call, expected 1, have 3
reject(codeWithDomain, error.localizedDescription, error);
~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning and 6 errors generated.
```
Then, I can't use this library.
Also, I'm having the weird dependency of "react 0.11.0" (#116) installing from cocoapods...
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.