eduedix / react-native-networking

react-native module to download and upload files
MIT License
106 stars 22 forks source link

Installation probleme causes build failure #6

Closed unmec closed 9 years ago

unmec commented 9 years ago

Thanks for this module.

When I try to integrate following the installation guide, I receive the following error in xcode when building the project:

error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: can't locate file for: -lPods-AFNetworking error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: file: -lPods-AFNetworking is not an object file (not allowed in a library) error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: can't locate file for: -lPods error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: file: -lPods is not an object file (not allowed in a library)

I tried to add _$(inherited)_ to _Other Linker Flags_ of RNNetworkingManager but it still fails. Any help please? Thanks!

eduedix commented 9 years ago

are you sure you have installed the AFNetworking package? please do: cd node_modules/react-native-networking && pod install

unmec commented 9 years ago

Yes, I did pod install and all installation processes as explained in the readme. I am using pod 0.39.

Google search suggests adding _$(inherited)_ to _Other Linker Flags_ but build still fails even I do so. :(

eduedix commented 9 years ago

I have reproduced this error, will try to fix it soon. I think this has something to do with cocoapods.

unmec commented 9 years ago

Agreed, I think cocoapods is the reason too. Glad to hear! Many thanks in advance :)

eduedix commented 9 years ago

@macelii : it seems cocoapods is buggy these days: https://github.com/CocoaPods/CocoaPods/pull/3677 . I am not sure how to fix this problem though.

eduedix commented 9 years ago

@macelii : temporary solution: https://github.com/CocoaPods/CocoaPods/issues/4427#issuecomment-150389523

consider your project's name is SomeTest and follow the steps explained.

eduedix commented 9 years ago

https://github.com/eduedix/react-native-networking/blob/master/README.md has been updated accordingly.