-
Notifications
You must be signed in to change notification settings - Fork 1.6k
[iOS] Cannot read property 'DocumentDir' of undefined #30
Comments
@pgonzalez , did you run |
@wkh237 yes, I did and I still have this error |
@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) Make sure the module has been linked, check General -> Linked Frameworks and Libraries Recompile the |
when I add to Linked Frameworks and Libraries, I get The following build commands failed: |
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 ! |
`Found Xcode workspace App.xcworkspace === BUILD TARGET RCTImage OF PROJECT RCTImage WITH CONFIGURATION Debug === Check dependencies === BUILD TARGET RNFetchBlob OF PROJECT RNFetchBlob WITH CONFIGURATION Debug === 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
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
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
=== BUILD TARGET RCTGeolocation OF PROJECT RCTGeolocation WITH CONFIGURATION Debug === Check dependencies === BUILD TARGET React OF PROJECT React WITH CONFIGURATION Debug === === 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 |
react-native-cli: 0.2.0 |
Thanks @pgonzalez , this is helpful ! I'm think I know where the problem is : ) |
@pgonzalez , what your the version of your Xcode? It might be a problem with Xcode version, please check #31 . |
I've published a new version |
I got rid of this error just rebuilding the project. |
Was there a solution to this? |
@AlisonWonderlandApps I just got into this error after installing the package and simply refreshing my app on the iOs simulator. Closing everything and running |
newbies? read this post. https://blog.nativebase.io/adding-third-party-native-modules-using-react-native-cbcb9e3786ba |
I had the same issue |
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. |
Hello i have solved this issue---- when you install the 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 |
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 |
Any pointers on what to do when this error occurrs when running tests? |
@schumannd Same. Did you find solution? |
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 |
I'm already using Found solution here Added
And tests are passed successfully.
|
After having the same issues, I managed to install
I think the important part that I was missing even previously is to run Here's my
Hope this helps! |
fixed by running |
Hi!
I have an issue when I tried to integrate this module in my code. This error appears at start launch in the simulator/device.
Do you know what can I do?
The text was updated successfully, but these errors were encountered: