Git Product home page Git Product logo

Comments (25)

pgonzalez avatar pgonzalez commented on May 19, 2024 59

`Found Xcode workspace App.xcworkspace
Launching iPhone 6 (9.2)...
Building using "xcodebuild -workspace App.xcworkspace -scheme App -destination id=B06E3C4E-5759-43F1-8C98-534E7D017C68 -derivedDataPath build"
User defaults from command line:
IDEDerivedDataPathOverride = < App Directory >/ios/build

=== BUILD TARGET RCTImage OF PROJECT RCTImage WITH CONFIGURATION Debug ===

Check dependencies

=== BUILD TARGET RNFetchBlob OF PROJECT RNFetchBlob WITH CONFIGURATION Debug ===
Check dependencies
warning: no rule to process file '< App Directory >/node_modules/react-native-fetch-blob/ios/RNFetchBlob/RNFetchBlob.h' of type sourcecode.c.h for architecture x86_64
iOS deployment target '9.3' for architecture 'x86_64' and variant 'normal' is greater than the maximum value '9.2.99' for the Simulator - iOS 9.2 SDK.

CompileC < App Directory >/ios/build/Build/Intermediates/RNFetchBlob.build/Debug-iphonesimulator/RNFetchBlob.build/Objects-normal/x86_64/RNFetchBlobNetwork.o RNFetchBlobNetwork.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
cd < App Directory >/node_modules/react-native-fetch-blob/ios
export LANG=en_US.US-ASCII
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Library/Frameworks/Python.framework/Versions/3.5/bin:/usr/local/bin:< User Directory >/Library/Android/sdk/tools:< User Directory >/Library/Android/sdk/platform-tools:< User Directory >/.nvm/versions/node/v5.10.1/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch x86_64 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=gnu99 -fobjc-arc -fmodules -gmodules -fmodules-cache-path=< App Directory >/ios/build/ModuleCache -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=< App Directory >/ios/build/ModuleCache/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror=non-modular-include-in-framework-module -Wno-trigraphs -fpascal-strings -O0 -fno-common -Wno-missing-field-initializers -Wno-missing-prototypes -Werror=return-type -Wunreachable-code -Wno-implicit-atomic-properties -Werror=deprecated-objc-isa-usage -Werror=objc-root-class -Wno-arc-repeated-use-of-weak -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wconditional-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wno-deprecated-implementations -DDEBUG=1 -DOBJC_OLD_DISPATCH_PROTOTYPES=0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -mios-simulator-version-min=9.3 -g -Wno-sign-conversion -fobjc-abi-version=2 -fobjc-legacy-dispatch -iquote < App Directory >/ios/build/Build/Intermediates/RNFetchBlob.build/Debug-iphonesimulator/RNFetchBlob.build/RNFetchBlob-generated-files.hmap -I< App Directory >/ios/build/Build/Intermediates/RNFetchBlob.build/Debug-iphonesimulator/RNFetchBlob.build/RNFetchBlob-own-target-headers.hmap -I< App Directory >/ios/build/Build/Intermediates/RNFetchBlob.build/Debug-iphonesimulator/RNFetchBlob.build/RNFetchBlob-all-target-headers.hmap -iquote < App Directory >/ios/build/Build/Intermediates/RNFetchBlob.build/Debug-iphonesimulator/RNFetchBlob.build/RNFetchBlob-project-headers.hmap -I< App Directory >/ios/build/Build/Products/Debug-iphonesimulator/include -I< App Directory >/node_modules/react-native-fetch-blob/ios/Libraries -I< App Directory >/node_modules/react-native-fetch-blob/ios/../node_modules/react-native/React -I../../React -I../../React/dist -I../../React/lib -I../../react-native/React -I../../react-native/React/Base -I../../react-native/React/Executors -I../../react-native/React/Layout -I../../react-native/React/Modules -I../../react-native/React/Profiler -I../../react-native/React/Views -I< App Directory >/node_modules/react-native-fetch-blob/ios/../../node_modules/react-native/React -I< App Directory >/node_modules/react-native-fetch-blob/ios/../../node_modules/react-native-fetch-blob/ios/RNFetchBlob -I< App Directory >/node_modules/react-native-fetch-blob/ios/../../RNFetchBlobTest/node_modules/react-native -I< App Directory >/ios/build/Build/Intermediates/RNFetchBlob.build/Debug-iphonesimulator/RNFetchBlob.build/DerivedSources/x86_64 -I< App Directory >/ios/build/Build/Intermediates/RNFetchBlob.build/Debug-iphonesimulator/RNFetchBlob.build/DerivedSources -F< App Directory >/ios/build/Build/Products/Debug-iphonesimulator -MMD -MT dependencies -MF < App Directory >/ios/build/Build/Intermediates/RNFetchBlob.build/Debug-iphonesimulator/RNFetchBlob.build/Objects-normal/x86_64/RNFetchBlobNetwork.d --serialize-diagnostics < App Directory >/ios/build/Build/Intermediates/RNFetchBlob.build/Debug-iphonesimulator/RNFetchBlob.build/Objects-normal/x86_64/RNFetchBlobNetwork.dia -c < App Directory >/node_modules/react-native-fetch-blob/ios/RNFetchBlobNetwork.m -o < App Directory >/ios/build/Build/Intermediates/RNFetchBlob.build/Debug-iphonesimulator/RNFetchBlob.build/Objects-normal/x86_64/RNFetchBlobNetwork.o
In file included from < App Directory >/node_modules/react-native-fetch-blob/ios/RNFetchBlobNetwork.m:14:
< App Directory >/node_modules/react-native-fetch-blob/ios/RNFetchBlobFS.h:29:38: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
@Property (nonatomic) NSOutputStream * outStream;
^
< App Directory >/node_modules/react-native-fetch-blob/ios/RNFetchBlobFS.h:63:23: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]

  • (void)write:(NSData *) chunk;
    ^
    < App Directory >/node_modules/react-native-fetch-blob/ios/RNFetchBlobFS.h:64:36: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
  • (void)writeEncodeChunk:(NSString *) chunk;
    ^
    < App Directory >/node_modules/react-native-fetch-blob/ios/RNFetchBlobFS.h:65:32: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
  • (void)readWithPath:(NSString *)path useEncoding:(NSString *)encoding bufferSize:(int) bufferSize;
    ^
    < App Directory >/node_modules/react-native-fetch-blob/ios/RNFetchBlobFS.h:65:61: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
  • (void)readWithPath:(NSString *)path useEncoding:(NSString *)encoding bufferSize:(int) bufferSize;
    ^
    < App Directory >/node_modules/react-native-fetch-blob/ios/RNFetchBlobNetwork.m:32:13: error: ARC forbids synthesizing a property of an Objective-C object with unspecified ownership or storage attribute
    @synthesize callback;
    ^
    In file included from < App Directory >/node_modules/react-native-fetch-blob/ios/RNFetchBlobNetwork.m:15:
    < App Directory >/node_modules/react-native-fetch-blob/ios/RNFetchBlobNetwork.h:24:56: note: property declared here
    @Property (nullable, nonatomic) RCTResponseSenderBlock callback;
    ^
    < App Directory >/node_modules/react-native-fetch-blob/ios/RNFetchBlobNetwork.m:35:13: error: ARC forbids synthesizing a property of an Objective-C object with unspecified ownership or storage attribute
    @synthesize fileTaskCompletionHandler;
    ^
    In file included from < App Directory >/node_modules/react-native-fetch-blob/ios/RNFetchBlobNetwork.m:15:
    < App Directory >/node_modules/react-native-fetch-blob/ios/RNFetchBlobNetwork.h:28:50: note: property declared here
    @Property (nullable, nonatomic) CompletionHander fileTaskCompletionHandler;
    ^
    < App Directory >/node_modules/react-native-fetch-blob/ios/RNFetchBlobNetwork.m:36:13: error: ARC forbids synthesizing a property of an Objective-C object with unspecified ownership or storage attribute
    @synthesize dataTaskCompletionHandler;
    ^
    In file included from < App Directory >/node_modules/react-native-fetch-blob/ios/RNFetchBlobNetwork.m:15:
    < App Directory >/node_modules/react-native-fetch-blob/ios/RNFetchBlobNetwork.h:29:58: note: property declared here
    @Property (nullable, nonatomic) DataTaskCompletionHander dataTaskCompletionHandler;
    ^
    < App Directory >/node_modules/react-native-fetch-blob/ios/RNFetchBlobNetwork.m:64:19: warning: local declaration of 'taskId' hides instance variable [-Wshadow-ivar]
    self.taskId = taskId;
    ^
    < App Directory >/node_modules/react-native-fetch-blob/ios/RNFetchBlobNetwork.m:66:21: warning: local declaration of 'callback' hides instance variable [-Wshadow-ivar]
    self.callback = callback;
    ^
    < App Directory >/node_modules/react-native-fetch-blob/ios/RNFetchBlobNetwork.m:70:20: warning: local declaration of 'options' hides instance variable [-Wshadow-ivar]
    self.options = options;
    ^
    < App Directory >/node_modules/react-native-fetch-blob/ios/RNFetchBlobNetwork.m:77:9: warning: local declaration of 'options' hides instance variable [-Wshadow-ivar]
    if([options valueForKey:CONFIG_TRUSTY] != nil)
    ^
    < App Directory >/node_modules/react-native-fetch-blob/ios/RNFetchBlobNetwork.m:92:16: warning: local declaration of 'error' hides instance variable [-Wshadow-ivar]
    if(error != nil) {
    ^
    < App Directory >/node_modules/react-native-fetch-blob/ios/RNFetchBlobNetwork.m:93:17: warning: local declaration of 'callback' hides instance variable [-Wshadow-ivar]
    callback(@[[error localizedDescription]]);
    ^
    < App Directory >/node_modules/react-native-fetch-blob/ios/RNFetchBlobNetwork.m:93:29: warning: local declaration of 'error' hides instance variable [-Wshadow-ivar]
    callback(@[[error localizedDescription]]);
    ^
    < App Directory >/node_modules/react-native-fetch-blob/ios/RNFetchBlobNetwork.m:101:17: warning: local declaration of 'callback' hides instance variable [-Wshadow-ivar]
    callback(@[[taskErr localizedDescription]]);
    ^
    < App Directory >/node_modules/react-native-fetch-blob/ios/RNFetchBlobNetwork.m:104:13: warning: local declaration of 'callback' hides instance variable [-Wshadow-ivar]
    callback(@[[NSNull null], path]);
    ^
    < App Directory >/node_modules/react-native-fetch-blob/ios/RNFetchBlobNetwork.m:113:16: warning: local declaration of 'error' hides instance variable [-Wshadow-ivar]
    if(error != nil) {
    ^
    < App Directory >/node_modules/react-native-fetch-blob/ios/RNFetchBlobNetwork.m:114:17: warning: local declaration of 'callback' hides instance variable [-Wshadow-ivar]
    callback(@[[error localizedDescription]]);
    ^
    < App Directory >/node_modules/react-native-fetch-blob/ios/RNFetchBlobNetwork.m:114:29: warning: local declaration of 'error' hides instance variable [-Wshadow-ivar]
    callback(@[[error localizedDescription]]);
    ^
    < App Directory >/node_modules/react-native-fetch-blob/ios/RNFetchBlobNetwork.m:123:17: warning: local declaration of 'callback' hides instance variable [-Wshadow-ivar]
    callback(@[[taskErr localizedDescription]]);
    ^
    < App Directory >/node_modules/react-native-fetch-blob/ios/RNFetchBlobNetwork.m:126:13: warning: local declaration of 'callback' hides instance variable [-Wshadow-ivar]
    callback(@[[NSNull null], tmpPath]);
    ^
    < App Directory >/node_modules/react-native-fetch-blob/ios/RNFetchBlobNetwork.m:119:61: warning: capturing 'self' strongly in this block is likely to lead to a retain cycle [-Warc-retain-cycles]
    NSString * tmpPath = [RNFetchBlobFS getTempPath:self.taskId withExtension:[self.options valueForKey:CONFIG_FILE_EXT]];
    ^~~~
    < App Directory >/node_modules/react-native-fetch-blob/ios/RNFetchBlobNetwork.m:112:9: note: block will be retained by the captured object
    self.fileTaskCompletionHandler = ^(NSURL * _Nullable location, NSURLResponse * _Nullable response, NSError * _Nullable error) {
    ^~~~
    < App Directory >/node_modules/react-native-fetch-blob/ios/RNFetchBlobNetwork.m:134:16: warning: local declaration of 'error' hides instance variable [-Wshadow-ivar]
    if(error != nil) {
    ^
    < App Directory >/node_modules/react-native-fetch-blob/ios/RNFetchBlobNetwork.m:135:17: warning: local declaration of 'callback' hides instance variable [-Wshadow-ivar]
    callback(@[[error localizedDescription]]);
    ^
    < App Directory >/node_modules/react-native-fetch-blob/ios/RNFetchBlobNetwork.m:135:29: warning: local declaration of 'error' hides instance variable [-Wshadow-ivar]
    callback(@[[error localizedDescription]]);
    ^
    < App Directory >/node_modules/react-native-fetch-blob/ios/RNFetchBlobNetwork.m:139:17: warning: local declaration of 'callback' hides instance variable [-Wshadow-ivar]
    callback(@[[NSNull null], [resp base64EncodedStringWithOptions:0]]);
    ^
    < App Directory >/node_modules/react-native-fetch-blob/ios/RNFetchBlobNetwork.m:73:16: warning: unused variable 'ext' [-Wunused-variable]
    NSString * ext = [self.options valueForKey:CONFIG_FILE_EXT];
    ^
    < App Directory >/node_modules/react-native-fetch-blob/ios/RNFetchBlobNetwork.m:159:21: warning: implicit conversion loses integer precision: 'long long' to 'int' [-Wshorten-64-to-32]
    expectedBytes = [response expectedContentLength];
    ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    < App Directory >/node_modules/react-native-fetch-blob/ios/RNFetchBlobNetwork.m:167:13: warning: incompatible pointer to integer conversion initializing 'Boolean' (aka 'unsigned char') with an expression of type 'id _Nullable' [-Wint-conversion]
    Boolean fileCache = [self.options valueForKey:CONFIG_USE_TEMP];
    ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    < App Directory >/node_modules/react-native-fetch-blob/ios/RNFetchBlobNetwork.m:170:33: warning: comparison between pointer and integer ('int' and 'void *')
    if(path == nil && fileCache == nil) {
    ~~~~~~~~~ ^ ~~~
    < App Directory >/node_modules/react-native-fetch-blob/ios/RNFetchBlobNetwork.m:185:12: warning: local declaration of 'error' hides instance variable [-Wshadow-ivar]
    NSLog([error localizedDescription]);
    ^
    < App Directory >/node_modules/react-native-fetch-blob/ios/RNFetchBlobNetwork.m:185:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
    NSLog([error localizedDescription]);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
    < App Directory >/node_modules/react-native-fetch-blob/ios/RNFetchBlobNetwork.m:186:18: warning: local declaration of 'error' hides instance variable [-Wshadow-ivar]
    self.error = error;
    ^
    < App Directory >/node_modules/react-native-fetch-blob/ios/RNFetchBlobNetwork.m:192:21: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'int' [-Wshorten-64-to-32]
    expectedBytes = totalBytesExpectedToWrite;
    ~ ^~~~~~~~~~~~~~~~~~~~~~~~~
    < App Directory >/node_modules/react-native-fetch-blob/ios/RNFetchBlobNetwork.m:24:17: warning: method definition for 'sendRequest' not found [-Wincomplete-implementation]
    @implementation RNFetchBlobNetwork
    ^
    In file included from < App Directory >/node_modules/react-native-fetch-blob/ios/RNFetchBlobNetwork.m:15:
    < App Directory >/node_modules/react-native-fetch-blob/ios/RNFetchBlobNetwork.h:34:1: note: method 'sendRequest' declared here
  • (void) sendRequest;
    ^
    33 warnings and 3 errors generated.

CompileC < App Directory >/ios/build/Build/Intermediates/RNFetchBlob.build/Debug-iphonesimulator/RNFetchBlob.build/Objects-normal/x86_64/RNFetchBlobFS.o RNFetchBlobFS.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
cd < App Directory >/node_modules/react-native-fetch-blob/ios
export LANG=en_US.US-ASCII
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Library/Frameworks/Python.framework/Versions/3.5/bin:/usr/local/bin:< User Directory >/Library/Android/sdk/tools:< User Directory >/Library/Android/sdk/platform-tools:< User Directory >/.nvm/versions/node/v5.10.1/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch x86_64 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=gnu99 -fobjc-arc -fmodules -gmodules -fmodules-cache-path=< App Directory >/ios/build/ModuleCache -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=< App Directory >/ios/build/ModuleCache/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror=non-modular-include-in-framework-module -Wno-trigraphs -fpascal-strings -O0 -fno-common -Wno-missing-field-initializers -Wno-missing-prototypes -Werror=return-type -Wunreachable-code -Wno-implicit-atomic-properties -Werror=deprecated-objc-isa-usage -Werror=objc-root-class -Wno-arc-repeated-use-of-weak -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wconditional-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wno-deprecated-implementations -DDEBUG=1 -DOBJC_OLD_DISPATCH_PROTOTYPES=0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -mios-simulator-version-min=9.3 -g -Wno-sign-conversion -fobjc-abi-version=2 -fobjc-legacy-dispatch -iquote < App Directory >/ios/build/Build/Intermediates/RNFetchBlob.build/Debug-iphonesimulator/RNFetchBlob.build/RNFetchBlob-generated-files.hmap -I< App Directory >/ios/build/Build/Intermediates/RNFetchBlob.build/Debug-iphonesimulator/RNFetchBlob.build/RNFetchBlob-own-target-headers.hmap -I< App Directory >/ios/build/Build/Intermediates/RNFetchBlob.build/Debug-iphonesimulator/RNFetchBlob.build/RNFetchBlob-all-target-headers.hmap -iquote < App Directory >/ios/build/Build/Intermediates/RNFetchBlob.build/Debug-iphonesimulator/RNFetchBlob.build/RNFetchBlob-project-headers.hmap -I< App Directory >/ios/build/Build/Products/Debug-iphonesimulator/include -I< App Directory >/node_modules/react-native-fetch-blob/ios/Libraries -I< App Directory >/node_modules/react-native-fetch-blob/ios/../node_modules/react-native/React -I../../React -I../../React/dist -I../../React/lib -I../../react-native/React -I../../react-native/React/Base -I../../react-native/React/Executors -I../../react-native/React/Layout -I../../react-native/React/Modules -I../../react-native/React/Profiler -I../../react-native/React/Views -I< App Directory >/node_modules/react-native-fetch-blob/ios/../../node_modules/react-native/React -I< App Directory >/node_modules/react-native-fetch-blob/ios/../../node_modules/react-native-fetch-blob/ios/RNFetchBlob -I< App Directory >/node_modules/react-native-fetch-blob/ios/../../RNFetchBlobTest/node_modules/react-native -I< App Directory >/ios/build/Build/Intermediates/RNFetchBlob.build/Debug-iphonesimulator/RNFetchBlob.build/DerivedSources/x86_64 -I< App Directory >/ios/build/Build/Intermediates/RNFetchBlob.build/Debug-iphonesimulator/RNFetchBlob.build/DerivedSources -F< App Directory >/ios/build/Build/Products/Debug-iphonesimulator -MMD -MT dependencies -MF < App Directory >/ios/build/Build/Intermediates/RNFetchBlob.build/Debug-iphonesimulator/RNFetchBlob.build/Objects-normal/x86_64/RNFetchBlobFS.d --serialize-diagnostics < App Directory >/ios/build/Build/Intermediates/RNFetchBlob.build/Debug-iphonesimulator/RNFetchBlob.build/Objects-normal/x86_64/RNFetchBlobFS.dia -c < App Directory >/node_modules/react-native-fetch-blob/ios/RNFetchBlobFS.m -o < App Directory >/ios/build/Build/Intermediates/RNFetchBlob.build/Debug-iphonesimulator/RNFetchBlob.build/Objects-normal/x86_64/RNFetchBlobFS.o
In file included from < App Directory >/node_modules/react-native-fetch-blob/ios/RNFetchBlobFS.m:15:
< App Directory >/node_modules/react-native-fetch-blob/ios/RNFetchBlobFS.h:29:38: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
@Property (nonatomic) NSOutputStream * outStream;
^
< App Directory >/node_modules/react-native-fetch-blob/ios/RNFetchBlobFS.h:63:23: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]

  • (void)write:(NSData *) chunk;
    ^
    < App Directory >/node_modules/react-native-fetch-blob/ios/RNFetchBlobFS.h:64:36: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
  • (void)writeEncodeChunk:(NSString *) chunk;
    ^
    < App Directory >/node_modules/react-native-fetch-blob/ios/RNFetchBlobFS.h:65:32: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
  • (void)readWithPath:(NSString *)path useEncoding:(NSString *)encoding bufferSize:(int) bufferSize;
    ^
    < App Directory >/node_modules/react-native-fetch-blob/ios/RNFetchBlobFS.h:65:61: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
  • (void)readWithPath:(NSString _)path useEncoding:(NSString *)encoding bufferSize:(int) bufferSize;
    ^
    < App Directory >/node_modules/react-native-fetch-blob/ios/RNFetchBlobFS.h:18:28: error: existing instance variable 'callback' for property 'callback' with unsafe_unretained attribute must be __unsafe_unretained
    RCTResponseSenderBlock callback;
    ^
    < App Directory >/node_modules/react-native-fetch-blob/ios/RNFetchBlobFS.h:31:46: note: property declared here
    @Property (nonatomic) RCTResponseSenderBlock callback;
    ^
    < App Directory >/node_modules/react-native-fetch-blob/ios/RNFetchBlobFS.m:32:13: note: property synthesized here
    @synthesize callback;
    ^
    < App Directory >/node_modules/react-native-fetch-blob/ios/RNFetchBlobFS.m:26:1: warning: autosynthesized property 'bridge' will use synthesized instance variable '_bridge', not existing instance variable 'bridge' [-Wobjc-autosynthesis-property-ivar-name-match]
    @implementation RNFetchBlobFS
    ^
    In file included from < App Directory >/node_modules/react-native-fetch-blob/ios/RNFetchBlobFS.m:15:
    < App Directory >/node_modules/react-native-fetch-blob/ios/RNFetchBlobFS.h:32:35: note: property declared here
    @Property (nonatomic) RCTBridge * bridge;
    ^
    < App Directory >/node_modules/react-native-fetch-blob/ios/RNFetchBlobFS.h:19:17: note: instance variable is declared here
    RCTBridge * bridge;
    ^
    < App Directory >/node_modules/react-native-fetch-blob/ios/RNFetchBlobFS.m:26:1: warning: autosynthesized property 'streamId' will use synthesized instance variable 'streamId', not existing instance variable 'streamId' [-Wobjc-autosynthesis-property-ivar-name-match]
    @implementation RNFetchBlobFS
    ^
    In file included from < App Directory >/node_modules/react-native-fetch-blob/ios/RNFetchBlobFS.m:15:
    < App Directory >/node_modules/react-native-fetch-blob/ios/RNFetchBlobFS.h:37:34: note: property declared here
    @Property (nonatomic) NSString * streamId;
    ^
    < App Directory >/node_modules/react-native-fetch-blob/ios/RNFetchBlobFS.h:26:16: note: instance variable is declared here
    NSString * streamId;
    ^
    < App Directory >/node_modules/react-native-fetch-blob/ios/RNFetchBlobFS.m:43:12: warning: incompatible pointer types returning 'NSMutableDictionary *' from a function with result type 'NSArray *' [-Wincompatible-pointer-types]
    return fileStreams;
    ^~~~~~~~~~~
    < App Directory >/node_modules/react-native-fetch-blob/ios/RNFetchBlobFS.m:105:65: warning: incompatible pointer types sending 'NSError *__autoreleasing *
    ' to parameter of type 'NSError * _Nullable __autoreleasing * _Nullable'; remove & [-Wincompatible-pointer-types]
    NSDictionary * info = [fm attributesOfItemAtPath:path error:&error];
    ^~~~~~
    In module 'Foundation' imported from ../../react-native/React/Views/RCTAnimationType.h:10:
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSFileManager.h:159:102: note: passing argument to parameter 'error' here
  • (nullable NSDictionary<NSString *, id> )attributesOfItemAtPath:(NSString *)path error:(NSError *)error NS_AVAILABLE(10_5, 2_0);
    ^
    < App Directory >/node_modules/react-native-fetch-blob/ios/RNFetchBlobFS.m:106:57: warning: format specifies type 'int' but the argument has type 'unsigned long long' [-Wformat]
    NSString * size = [NSString stringWithFormat:@"%d", [info fileSize]];
    ~~ ^~~~~~~~~~~~~~~
    %llu
    < App Directory >/node_modules/react-native-fetch-blob/ios/RNFetchBlobFS.m:109:111: warning: incompatible pointer types sending 'NSError __autoreleasing *' to parameter of type 'NSError * _Nullable __autoreleasing * _Nullable'; remove & [-Wincompatible-pointer-types]
    [[NSURL fileURLWithPath:path] getResourceValue:&lastModified forKey:NSURLContentModificationDateKey error:&error];
    ^~~~~~
    In module 'Foundation' imported from ../../react-native/React/Views/RCTAnimationType.h:10:
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSURL.h:163:119: note: passing argument to parameter 'error' here
  • (BOOL)getResourceValue:(out id __nullable * __nonnull)value forKey:(NSString )key error:(out NSError * __nullable)error NS_AVAILABLE(10_6, 4_0);
    ^
    < App Directory >/node_modules/react-native-fetch-blob/ios/RNFetchBlobFS.m:114:66: warning: format specifies type 'int' but the argument has type 'NSTimeInterval' (aka 'double') [-Wformat]
    @"lastModified" : [NSString stringWithFormat:@"%d", [lastModified timeIntervalSince1970]],
    ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    %f
    < App Directory >/node_modules/react-native-fetch-blob/ios/RNFetchBlobFS.m:99:26: warning: unused variable 'stat' [-Wunused-variable]
    NSMutableDictionary *stat = [[NSMutableDictionary alloc] init];
    ^
    < App Directory >/node_modules/react-native-fetch-blob/ios/RNFetchBlobFS.m:130:21: warning: local declaration of 'callback' hides instance variable [-Wshadow-ivar]
    self.callback = callback;
    ^
    < App Directory >/node_modules/react-native-fetch-blob/ios/RNFetchBlobFS.m:154:21: warning: incompatible pointer types initializing 'NSMutableData *' with an expression of type 'NSData *' [-Wincompatible-pointer-types]
    NSMutableData * decodedData = [NSData alloc];
    ^ ~~~~~~~~~~~~~~
    In module 'ObjectiveC' imported from ../../react-native/React/Base/RCTJavaScriptExecutor.h:10:
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/usr/include/objc/NSObject.h:68:1: note: class method 'alloc' is assumed to return an instance of its receiver type ('NSData *')
  • (instancetype)alloc OBJC_SWIFT_UNAVAILABLE("use object initializers instead");
    ^
    < App Directory >/node_modules/react-native-fetch-blob/ios/RNFetchBlobFS.m:156:65: warning: incompatible pointer types sending 'NSString *' to parameter of type 'NSData * _Nonnull' [-Wincompatible-pointer-types]
    decodedData = [[NSData alloc] initWithBase64EncodedData:chunk options:0];
    ^~~~~
    In module 'Foundation' imported from ../../react-native/React/Views/RCTAnimationType.h:10:
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSData.h:137:62: note: passing argument to parameter 'base64Data' here
  • (nullable instancetype)initWithBase64EncodedData:(NSData *)base64Data options:(NSDataBase64DecodingOptions)options NS_AVAILABLE(10_9, 7_0);
    ^
    < App Directory >/node_modules/react-native-fetch-blob/ios/RNFetchBlobFS.m:156:21: warning: incompatible pointer types assigning to 'NSMutableData *' from 'NSData * _Nullable' [-Wincompatible-pointer-types]
    decodedData = [[NSData alloc] initWithBase64EncodedData:chunk options:0];
    ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    In module 'Foundation' imported from ../../react-native/React/Views/RCTAnimationType.h:10:
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSData.h:137:1: note: instance method 'initWithBase64EncodedData:options:' is assumed to return an instance of its receiver type ('NSData * _Nullable')
  • (nullable instancetype)initWithBase64EncodedData:(NSData *)base64Data options:(NSDataBase64DecodingOptions)options NS_AVAILABLE(10_9, 7_0);
    ^
    < App Directory >/node_modules/react-native-fetch-blob/ios/RNFetchBlobFS.m:159:21: warning: incompatible pointer types assigning to 'NSMutableData *' from 'NSData * _Nullable' [-Wincompatible-pointer-types]
    decodedData = [chunk dataUsingEncoding:NSUTF8StringEncoding];
    ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    < App Directory >/node_modules/react-native-fetch-blob/ios/RNFetchBlobFS.m:162:21: warning: incompatible pointer types assigning to 'NSMutableData *' from 'NSData * _Nullable' [-Wincompatible-pointer-types]
    decodedData = [chunk dataUsingEncoding:NSASCIIStringEncoding];
    ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    < App Directory >/node_modules/react-native-fetch-blob/ios/RNFetchBlobFS.m:201:63: warning: local declaration of 'path' hides instance variable [-Wshadow-ivar]
    self.inStream = [[NSInputStream alloc] initWithFileAtPath:path];
    ^
    < App Directory >/node_modules/react-native-fetch-blob/ios/RNFetchBlobFS.m:203:21: warning: local declaration of 'encoding' hides instance variable [-Wshadow-ivar]
    self.encoding = encoding;
    ^
    < App Directory >/node_modules/react-native-fetch-blob/ios/RNFetchBlobFS.m:204:17: warning: local declaration of 'path' hides instance variable [-Wshadow-ivar]
    self.path = path;
    ^
    < App Directory >/node_modules/react-native-fetch-blob/ios/RNFetchBlobFS.m:205:23: warning: local declaration of 'bufferSize' hides instance variable [-Wshadow-ivar]
    self.bufferSize = bufferSize;
    ^
    < App Directory >/node_modules/react-native-fetch-blob/ios/RNFetchBlobFS.m:289:39: warning: initializing 'uint8_t *' (aka 'unsigned char *') with an expression of type 'const void *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
    uint8_t * byteFromArray = chunkData.bytes;
    ^ ~~~~~~~~~~~~~~~
    < App Directory >/node_modules/react-native-fetch-blob/ios/RNFetchBlobFS.m:292:86: warning: values of type 'NSInteger' should not be used as format arguments; add an explicit cast to 'long' instead [-Wformat]
    asciiStr = [asciiStr stringByAppendingFormat:@"%d,", val];
    ~~ ^~~
    %ld (long)
    < App Directory >/node_modules/react-native-fetch-blob/ios/RNFetchBlobFS.m:294:85: warning: values of type 'NSInteger' should not be used as format arguments; add an explicit cast to 'long' instead [-Wformat]
    asciiStr = [asciiStr stringByAppendingFormat:@"%d", val];
    ~~ ^~~
    %ld (long)
    < App Directory >/node_modules/react-native-fetch-blob/ios/RNFetchBlobFS.m:289:39: warning: unused variable 'byteFromArray' [-Wunused-variable]
    uint8_t * byteFromArray = chunkData.bytes;
    ^
    < App Directory >/node_modules/react-native-fetch-blob/ios/RNFetchBlobFS.m:249:12: warning: enumeration values 'NSStreamEventNone', 'NSStreamEventOpenCompleted', and 'NSStreamEventEndEncountered' not handled in switch [-Wswitch]
    switch(eventCode) {
    ^
    < App Directory >/node_modules/react-native-fetch-blob/ios/RNFetchBlobFS.m:270:19: warning: implicit conversion loses integer precision: 'NSInteger' (aka 'long') to 'unsigned int' [-Wshorten-64-to-32]
    len = [(NSInputStream *)stream read:buf maxLength:chunkSize];
    ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    < App Directory >/node_modules/react-native-fetch-blob/ios/RNFetchBlobFS.m:26:17: warning: method definition for 'openWithDestination' not found [-Wincomplete-implementation]
    @implementation RNFetchBlobFS
    ^
    In file included from < App Directory >/node_modules/react-native-fetch-blob/ios/RNFetchBlobFS.m:15:
    < App Directory >/node_modules/react-native-fetch-blob/ios/RNFetchBlobFS.h:58:1: note: method 'openWithDestination' declared here
  • (void) openWithDestination;
    ^
    < App Directory >/node_modules/react-native-fetch-blob/ios/RNFetchBlobFS.m:26:17: warning: method definition for 'openWithId' not found [-Wincomplete-implementation]
    @implementation RNFetchBlobFS
    ^
    In file included from < App Directory >/node_modules/react-native-fetch-blob/ios/RNFetchBlobFS.m:15:
    < App Directory >/node_modules/react-native-fetch-blob/ios/RNFetchBlobFS.h:59:1: note: method 'openWithId' declared here
  • (void) openWithId;
    ^
    31 warnings and 1 error generated.

CompileC < App Directory >/ios/build/Build/Intermediates/RNFetchBlob.build/Debug-iphonesimulator/RNFetchBlob.build/Objects-normal/x86_64/RNFetchBlob-9A9FEEDF0B0FF149.o RNFetchBlob/RNFetchBlob.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
cd < App Directory >/node_modules/react-native-fetch-blob/ios
export LANG=en_US.US-ASCII
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Library/Frameworks/Python.framework/Versions/3.5/bin:/usr/local/bin:< User Directory >/Library/Android/sdk/tools:< User Directory >/Library/Android/sdk/platform-tools:< User Directory >/.nvm/versions/node/v5.10.1/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch x86_64 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=gnu99 -fobjc-arc -fmodules -gmodules -fmodules-cache-path=< App Directory >/ios/build/ModuleCache -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=< App Directory >/ios/build/ModuleCache/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror=non-modular-include-in-framework-module -Wno-trigraphs -fpascal-strings -O0 -fno-common -Wno-missing-field-initializers -Wno-missing-prototypes -Werror=return-type -Wunreachable-code -Wno-implicit-atomic-properties -Werror=deprecated-objc-isa-usage -Werror=objc-root-class -Wno-arc-repeated-use-of-weak -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wconditional-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wno-deprecated-implementations -DDEBUG=1 -DOBJC_OLD_DISPATCH_PROTOTYPES=0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -mios-simulator-version-min=9.3 -g -Wno-sign-conversion -fobjc-abi-version=2 -fobjc-legacy-dispatch -iquote < App Directory >/ios/build/Build/Intermediates/RNFetchBlob.build/Debug-iphonesimulator/RNFetchBlob.build/RNFetchBlob-generated-files.hmap -I< App Directory >/ios/build/Build/Intermediates/RNFetchBlob.build/Debug-iphonesimulator/RNFetchBlob.build/RNFetchBlob-own-target-headers.hmap -I< App Directory >/ios/build/Build/Intermediates/RNFetchBlob.build/Debug-iphonesimulator/RNFetchBlob.build/RNFetchBlob-all-target-headers.hmap -iquote < App Directory >/ios/build/Build/Intermediates/RNFetchBlob.build/Debug-iphonesimulator/RNFetchBlob.build/RNFetchBlob-project-headers.hmap -I< App Directory >/ios/build/Build/Products/Debug-iphonesimulator/include -I< App Directory >/node_modules/react-native-fetch-blob/ios/Libraries -I< App Directory >/node_modules/react-native-fetch-blob/ios/../node_modules/react-native/React -I../../React -I../../React/dist -I../../React/lib -I../../react-native/React -I../../react-native/React/Base -I../../react-native/React/Executors -I../../react-native/React/Layout -I../../react-native/React/Modules -I../../react-native/React/Profiler -I../../react-native/React/Views -I< App Directory >/node_modules/react-native-fetch-blob/ios/../../node_modules/react-native/React -I< App Directory >/node_modules/react-native-fetch-blob/ios/../../node_modules/react-native-fetch-blob/ios/RNFetchBlob -I< App Directory >/node_modules/react-native-fetch-blob/ios/../../RNFetchBlobTest/node_modules/react-native -I< App Directory >/ios/build/Build/Intermediates/RNFetchBlob.build/Debug-iphonesimulator/RNFetchBlob.build/DerivedSources/x86_64 -I< App Directory >/ios/build/Build/Intermediates/RNFetchBlob.build/Debug-iphonesimulator/RNFetchBlob.build/DerivedSources -F< App Directory >/ios/build/Build/Products/Debug-iphonesimulator -MMD -MT dependencies -MF < App Directory >/ios/build/Build/Intermediates/RNFetchBlob.build/Debug-iphonesimulator/RNFetchBlob.build/Objects-normal/x86_64/RNFetchBlob-9A9FEEDF0B0FF149.d --serialize-diagnostics < App Directory >/ios/build/Build/Intermediates/RNFetchBlob.build/Debug-iphonesimulator/RNFetchBlob.build/Objects-normal/x86_64/RNFetchBlob-9A9FEEDF0B0FF149.dia -c < App Directory >/node_modules/react-native-fetch-blob/ios/RNFetchBlob/RNFetchBlob.m -o < App Directory >/ios/build/Build/Intermediates/RNFetchBlob.build/Debug-iphonesimulator/RNFetchBlob.build/Objects-normal/x86_64/RNFetchBlob-9A9FEEDF0B0FF149.o
In file included from < App Directory >/node_modules/react-native-fetch-blob/ios/RNFetchBlob/RNFetchBlob.m:12:
< App Directory >/node_modules/react-native-fetch-blob/ios/RNFetchBlobFS.h:29:38: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
@Property (nonatomic) NSOutputStream * outStream;
^
< App Directory >/node_modules/react-native-fetch-blob/ios/RNFetchBlobFS.h:63:23: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]

  • (void)write:(NSData *) chunk;
    ^
    < App Directory >/node_modules/react-native-fetch-blob/ios/RNFetchBlobFS.h:64:36: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
  • (void)writeEncodeChunk:(NSString *) chunk;
    ^
    < App Directory >/node_modules/react-native-fetch-blob/ios/RNFetchBlobFS.h:65:32: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
  • (void)readWithPath:(NSString *)path useEncoding:(NSString *)encoding bufferSize:(int) bufferSize;
    ^
    < App Directory >/node_modules/react-native-fetch-blob/ios/RNFetchBlobFS.h:65:61: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
  • (void)readWithPath:(NSString *)path useEncoding:(NSString *)encoding bufferSize:(int) bufferSize;
    ^
    < App Directory >/node_modules/react-native-fetch-blob/ios/RNFetchBlob/RNFetchBlob.m:64:34: warning: 'stringByAddingPercentEscapesUsingEncoding:' is deprecated: first deprecated in iOS 9.0 - Use -stringByAddingPercentEncodingWithAllowedCharacters: instead, which always uses the recommended UTF-8 encoding, and which encodes for a specific URL component or subcomponent since each URL component or subcomponent has different rules for what characters are valid. [-Wdeprecated-declarations]
    NSString * encodedUrl = [url stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
    ^
    In module 'Foundation' imported from ../../react-native/React/Base/RCTBridgeModule.h:10:
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSURL.h:528:1: note: 'stringByAddingPercentEscapesUsingEncoding:' has been explicitly marked deprecated here
  • (nullable NSString *)stringByAddingPercentEscapesUsingEncoding:(NSStringEncoding)enc NS_DEPRECATED(10_0, 10_11, 2_0, 9_0, "Use -stringByAddingPercentEncodingWithAllowedCharacters: instead, which always uses the recommended UTF-8 encoding, and which encodes for a specific URL component or subcomponent since each URL component or subcomponent has different rules for what characters are valid.");
    ^
    < App Directory >/node_modules/react-native-fetch-blob/ios/RNFetchBlob/RNFetchBlob.m:77:72: warning: format specifies type 'int' but the argument has type 'NSNumber *' [-Wformat]
    NSString * boundary = [NSString stringWithFormat:@"RNFetchBlob%d", timeStampObj];
    ~~ ^~~~~~~~~~~~
    %@
    < App Directory >/node_modules/react-native-fetch-blob/ios/RNFetchBlob/RNFetchBlob.m:88:70: warning: comparison of distinct pointer types ('NSString *' and 'NSNull * _Nonnull') [-Wcompare-distinct-pointer-types]
    if([field valueForKey:@"filename"] == nil || content == [NSNull null]) {
    ~~~~~~~ ^ ~~~~~~~~~~~~~
    < App Directory >/node_modules/react-native-fetch-blob/ios/RNFetchBlob/RNFetchBlob.m:100:38: warning: incompatible pointer types assigning to 'NSMutableData *' from 'NSData * _Nullable' [-Wincompatible-pointer-types]
    blobData = [[NSData alloc] initWithContentsOfFile:orgPath];
    ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    In module 'Foundation' imported from ../../react-native/React/Base/RCTBridgeModule.h:10:
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSData.h:118:1: note: instance method 'initWithContentsOfFile:' is assumed to return an instance of its receiver type ('NSData * _Nullable')
  • (nullable instancetype)initWithContentsOfFile:(NSString *)path;
    ^
    < App Directory >/node_modules/react-native-fetch-blob/ios/RNFetchBlob/RNFetchBlob.m:103:38: warning: incompatible pointer types assigning to 'NSMutableData *' from 'NSData * _Nullable' [-Wincompatible-pointer-types]
    blobData = [[NSData alloc] initWithBase64EncodedString:content options:0];
    ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    In module 'Foundation' imported from ../../react-native/React/Base/RCTBridgeModule.h:10:
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSData.h:129:1: note: instance method 'initWithBase64EncodedString:options:' is assumed to return an instance of its receiver type ('NSData * _Nullable')
  • (nullable instancetype)initWithBase64EncodedString:(NSString *)base64String options:(NSDataBase64DecodingOptions)options NS_AVAILABLE(10_9, 7_0);
    ^
    < App Directory >/node_modules/react-native-fetch-blob/ios/RNFetchBlob/RNFetchBlob.m:119:65: warning: values of type 'NSUInteger' should not be used as format arguments; add an explicit cast to 'unsigned long' instead [-Wformat]
    [mheaders setValue:[NSString stringWithFormat:@"%d",[postData length]] forKey:@"Content-Length"];
    ~~ ^~~~~~~~~~~~~~~~~
    %lu (unsigned long)
    < App Directory >/node_modules/react-native-fetch-blob/ios/RNFetchBlob/RNFetchBlob.m:120:75: warning: data argument not used by format string [-Wformat-extra-args]
    [mheaders setValue:[NSString stringWithFormat:@"100-continue",[postData length]] forKey:@"Expect"];
    ~~~~~~~~~~~~~~~ ^
    < App Directory >/node_modules/react-native-fetch-blob/ios/RNFetchBlob/RNFetchBlob.m:144:34: warning: 'stringByAddingPercentEscapesUsingEncoding:' is deprecated: first deprecated in iOS 9.0 - Use -stringByAddingPercentEncodingWithAllowedCharacters: instead, which always uses the recommended UTF-8 encoding, and which encodes for a specific URL component or subcomponent since each URL component or subcomponent has different rules for what characters are valid. [-Wdeprecated-declarations]
    NSString * encodedUrl = [url stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
    ^
    In module 'Foundation' imported from ../../react-native/React/Base/RCTBridgeModule.h:10:
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSURL.h:528:1: note: 'stringByAddingPercentEscapesUsingEncoding:' has been explicitly marked deprecated here
  • (nullable NSString *)stringByAddingPercentEscapesUsingEncoding:(NSStringEncoding)enc NS_DEPRECATED(10_0, 10_11, 2_0, 9_0, "Use -stringByAddingPercentEncodingWithAllowedCharacters: instead, which always uses the recommended UTF-8 encoding, and which encodes for a specific URL component or subcomponent since each URL component or subcomponent has different rules for what characters are valid.");
    ^
    < App Directory >/node_modules/react-native-fetch-blob/ios/RNFetchBlob/RNFetchBlob.m:166:30: warning: incompatible pointer types assigning to 'NSMutableData *' from 'NSData * _Nullable' [-Wincompatible-pointer-types]
    blobData = [[NSData alloc] initWithBase64EncodedString:body options:0];
    ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    In module 'Foundation' imported from ../../react-native/React/Base/RCTBridgeModule.h:10:
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSData.h:129:1: note: instance method 'initWithBase64EncodedString:options:' is assumed to return an instance of its receiver type ('NSData * _Nullable')
  • (nullable instancetype)initWithBase64EncodedString:(NSString *)base64String options:(NSDataBase64DecodingOptions)options NS_AVAILABLE(10_9, 7_0);
    ^
    < App Directory >/node_modules/react-native-fetch-blob/ios/RNFetchBlob/RNFetchBlob.m:193:65: warning: incompatible pointer types sending 'NSString *' to parameter of type 'NSData * _Nonnull' [-Wincompatible-pointer-types]
    fileContent = [[NSData alloc] initWithBase64EncodedData:data options:0];
    ^~~~
    In module 'Foundation' imported from ../../react-native/React/Base/RCTBridgeModule.h:10:
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSData.h:137:62: note: passing argument to parameter 'base64Data' here
  • (nullable instancetype)initWithBase64EncodedData:(NSData *)base64Data options:(NSDataBase64DecodingOptions)options NS_AVAILABLE(10_9, 7_0);
    ^
    < App Directory >/node_modules/react-native-fetch-blob/ios/RNFetchBlob/RNFetchBlob.m:203:84: warning: more '%' conversions than data arguments [-Wformat]
    callback(@[[NSString stringWithFormat:@"failed to create new file at path %@ please ensure the folder exists"]]);
    ~^
    < App Directory >/node_modules/react-native-fetch-blob/ios/RNFetchBlob/RNFetchBlob.m:223:84: warning: more '%' conversions than data arguments [-Wformat]
    callback(@[[NSString stringWithFormat:@"failed to create new file at path %@ please ensure the folder exists"]]);
    ~^
    < App Directory >/node_modules/react-native-fetch-blob/ios/RNFetchBlob/RNFetchBlob.m:238:19: warning: comparison between pointer and integer ('int' and 'void *')
    if(bufferSize == nil) {
    < App Directory >/node_modules/react-native-fetch-blob/ios/RNFetchBlob/RNFetchBlob.m:286:16: warning: unused variable 'tmpPath' [-Wunused-variable]
    NSString \* tmpPath = nil;
            ^
    < App Directory >/node_modules/react-native-fetch-blob/ios/RNFetchBlob/RNFetchBlob.m:296:16: warning: unused variable 'tmpPath' [-Wunused-variable]
    NSString \* tmpPath = nil;
            ^
    
    

=== BUILD TARGET RCTGeolocation OF PROJECT RCTGeolocation WITH CONFIGURATION Debug ===

Check dependencies

=== BUILD TARGET React OF PROJECT React WITH CONFIGURATION Debug ===
Check dependencies

=== BUILD TARGET RCTSettings OF PROJECT RCTSettings WITH CONFIGURATION Debug ===

Check dependencies

=== BUILD TARGET IQKeyboardManager OF PROJECT Pods WITH CONFIGURATION Debug ===

Check dependencies

=== BUILD TARGET RCTLinking OF PROJECT RCTLinking WITH CONFIGURATION Debug ===

Check dependencies

=== BUILD TARGET RCTNetwork OF PROJECT RCTNetwork WITH CONFIGURATION Debug ===

Check dependencies

=== BUILD TARGET Pods-App OF PROJECT Pods WITH CONFIGURATION Debug ===

Check dependencies

=== BUILD TARGET RCTActionSheet OF PROJECT RCTActionSheet WITH CONFIGURATION Debug ===

Check dependencies

=== BUILD TARGET RCTText OF PROJECT RCTText WITH CONFIGURATION Debug ===

Check dependencies

=== BUILD TARGET RCTPushNotification OF PROJECT RCTPushNotification WITH CONFIGURATION Debug ===

Check dependencies

=== BUILD TARGET RCTVibration OF PROJECT RCTVibration WITH CONFIGURATION Debug ===

Check dependencies

=== BUILD TARGET RCTWebSocket OF PROJECT RCTWebSocket WITH CONFIGURATION Debug ===

Check dependencies

=== BUILD TARGET Pods-AppTests OF PROJECT Pods WITH CONFIGURATION Debug ===

Check dependencies

Installing build/Build/Products/Debug-iphonesimulator/App.app
Launching com.Company.App
com.Company.App: 2089
`

from react-native-fetch-blob.

alvaromb avatar alvaromb commented on May 19, 2024 23

I got rid of this error just rebuilding the project.

from react-native-fetch-blob.

wkh237 avatar wkh237 commented on May 19, 2024 18

@pgonzalez , I'm still looking into the problem, I've tried creating a new project and install the package, but I could not reproduce the error. If you're developing on IOS, please check the following settings.

Make sure the module is loaded in your .xcodeproj (should be located in ios/APPNAME/APPNAME.xcodeproj)

2016-06-24 12 41 00

Make sure the module has been linked, check General -> Linked Frameworks and Libraries

2016-06-24 12 42 51

Recompile the .xcodeproj

from react-native-fetch-blob.

martianmartian avatar martianmartian commented on May 19, 2024 13

newbies? read this post. https://blog.nativebase.io/adding-third-party-native-modules-using-react-native-cbcb9e3786ba

from react-native-fetch-blob.

vuyani-k avatar vuyani-k commented on May 19, 2024 8

For me, using react-native link didnt work, until i tried rnpm link. Which loaded the react-native-fetch-blob project in my ios project. then it worked.

from react-native-fetch-blob.

adriantombu avatar adriantombu commented on May 19, 2024 6

@AlisonWonderlandApps I just got into this error after installing the package and simply refreshing my app on the iOs simulator. Closing everything and running react-native run-ios again solved my problem :)

from react-native-fetch-blob.

Lmzd avatar Lmzd commented on May 19, 2024 3

I had the same issue
Didn't work with react-native link but worked with react-native link react-native-fetch-blob.
clean the xcode project and rebuild with react-native run-ios
hope this will helpful

from react-native-fetch-blob.

rfviolato avatar rfviolato commented on May 19, 2024 2

First I ran the following commands:

  • react-native link react-native-fetch-blob
  • rnpm link

Even restarting the simulator, the bundler and clearing cache it did not work.

After that, I have opened the project in Xcode and did the following:

Added the rn-fetch-blob .xcodeproj to the Libraries folder

screen shot 2018-08-28 at 19 18 19

Alien Catalog is the name of my project

screen shot 2018-08-28 at 19 20 52

Add libRNFetchBlob.a to the list under "Link Binary With Libraries"

Click on your project name on the top-left corner in the files sidebar, then under the main panel there will be several tabs, click on "Build Phases", then expand the "Link Binary With Libraries" pane and click the "+" (plus) button:
screen shot 2018-08-28 at 19 24 06

  • A new window will appear with a search field on top, search for "libRNFetchBlob.a", then select it and click "Add".
  • Restart simulator and bundle and try again, it should work fine now.

😧😰

As I'm developing an iOS-only app, I only bothered making it work there, so no clue if it works on Android.

Versions:

{
"react-native": "0.56.0",
"rn-fetch-blob": "github:joltup/rn-fetch-blob#master" // @0.10.8
}

I hope this helps someone with the same problem.
And to the maintainers: thanks for the lib, it is great :)

from react-native-fetch-blob.

pgonzalez avatar pgonzalez commented on May 19, 2024 1

@wkh237 yes, I did and I still have this error

from react-native-fetch-blob.

beenadevi1 avatar beenadevi1 commented on May 19, 2024 1

Hello i have solved this issue---- when you install the react-native-fetch-blob and link with iOS, it only provide limited lib on native side.

you can to open project from iOS in Xcode then remove the library of RNFetchBlob.xcodeproj from library folder and then again add by right click on library folder from node modules-->react-native-fetch-blob--->iOS folder --->add project RNFetchBlob.xcodeproj then all required file will be there and make sure add lib on build phases also libRNFetchBlob.a

it works for me.

Thanks

from react-native-fetch-blob.

wkh237 avatar wkh237 commented on May 19, 2024

@pgonzalez , did you run rnpm link after npm install --save react-native-fetch-blob ? it looks like native module not linked.

from react-native-fetch-blob.

pgonzalez avatar pgonzalez commented on May 19, 2024

when I add to Linked Frameworks and Libraries, I get
** BUILD FAILED **

The following build commands failed:
CompileC < AppProjectDir >/ios/build/Build/Intermediates/RNFetchBlob.build/Debug-iphonesimulator/RNFetchBlob.build/Objects-normal/x86_64/RNFetchBlobFS.o RNFetchBlobFS.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler

from react-native-fetch-blob.

wkh237 avatar wkh237 commented on May 19, 2024

Okay, looks like something went wrong when linking native modules, it would be nice if you could provide me a more complete build log and RN version of the project, I believe it would be helpful !

from react-native-fetch-blob.

pgonzalez avatar pgonzalez commented on May 19, 2024

react-native-cli: 0.2.0
react-native: 0.27.2

from react-native-fetch-blob.

wkh237 avatar wkh237 commented on May 19, 2024

Thanks @pgonzalez , this is helpful ! I'm think I know where the problem is : )

from react-native-fetch-blob.

wkh237 avatar wkh237 commented on May 19, 2024

@pgonzalez , what your the version of your Xcode? It might be a problem with Xcode version, please check #31 .

from react-native-fetch-blob.

wkh237 avatar wkh237 commented on May 19, 2024

I've published a new version v0.5.6 which removed these problematic code, I think it should be able to solve this problem: )

from react-native-fetch-blob.

DeveloperAlly avatar DeveloperAlly commented on May 19, 2024

Was there a solution to this?

from react-native-fetch-blob.

ajurav1 avatar ajurav1 commented on May 19, 2024

Hello i have solved this issue---- when you install the react-native-fetch-blob and link with iOS, it only provide limited lib on native side.

you can to open project from iOS in Xcode then remove the library of RNFetchBlob.xcodeproj from library folder and then again add by right click on library folder from node modules-->react-native-fetch-blob--->iOS folder --->add project RNFetchBlob.xcodeproj then all required file will be there and make sure add lib on build phases also libRNFetchBlob.a

it works for me.

Thanks

from react-native-fetch-blob.

schumannd avatar schumannd commented on May 19, 2024

Any pointers on what to do when this error occurrs when running tests?

from react-native-fetch-blob.

indapublic avatar indapublic commented on May 19, 2024

@schumannd Same. Did you find solution?

from react-native-fetch-blob.

schumannd avatar schumannd commented on May 19, 2024

Nope, I switched to using an older version of the package. I will start another try to update to RN 57 and newest rn-fetch-blob soon

from react-native-fetch-blob.

indapublic avatar indapublic commented on May 19, 2024

@schumannd

I'm already using rn-fetch-blob and had errors during tests.

Found solution here

Added __mocks__/rn-fetch-blob.js file with

const existsMock = jest.fn();
existsMock.mockReturnValueOnce({ then: jest.fn() });

export default {
  DocumentDir: () => {},
  ImageCache: {
    get: {
      clear: () => {},
    },
  },
  fs: {
    exists: existsMock,
    dirs: {
      MainBundleDir: () => {},
      CacheDir: () => {},
      DocumentDir: () => {},
    },
  },
};

And tests are passed successfully.

"rn-fetch-blob": "^0.10.13"

from react-native-fetch-blob.

sstano avatar sstano commented on May 19, 2024

After having the same issues, I managed to install react-native-fetch-blob and get rid of the Cannot read property 'DocumentDir of undefined' by:

  1. Following the installation steps (I used npm to install the module).
  2. Linking the package manually

I think the important part that I was missing even previously is to run pod install for iOS.
For Android, the reason it didn't work for me previously might be related to the fact that I'm using react-native-navigation in my project, which means my MainApplication.java is different to the default one (?). This time I just made sure I have the library initialized in getPackages() method and it just worked.

Here's my MainApplication.java for the reference (notice that it extends Navigation Application. It's content is a mixture of the default MainApplication and the one from React Native Navigation installation guide):

public class MainApplication extends NavigationApplication {

  @Override
  protected ReactGateway createReactGateway() {
    ReactNativeHost host = new NavigationReactNativeHost(this, isDebug(), createAdditionalReactPackages()) {
      @Override
      protected String getJSMainModuleName() {
        return "index";
      }
    };
    return new ReactGateway(this, isDebug(), host);
  }

  @Override
  public boolean isDebug() {
    return BuildConfig.DEBUG;
  }

  protected List<ReactPackage> getPackages() {
    // Add additional packages you require here
    // No need to add RnnPackage and MainReactPackage
    return Arrays.<ReactPackage>asList(
      new MapsPackage(),
      new RNFetchBlobPackage() 
    );
  }

  @Override
  public List<ReactPackage> createAdditionalReactPackages() {
    return getPackages();
  }

  @Override
  public void onCreate() {
    super.onCreate();
    Fabric.with(this, new Crashlytics());
    SoLoader.init(this, /* native exopackage */ false);
  }

}

Hope this helps!

from react-native-fetch-blob.

MikaelStenstrand avatar MikaelStenstrand commented on May 19, 2024

fixed by running react-native link and react-native run-ios

from react-native-fetch-blob.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.