使用React Native在self.fetch.xhr.onload上网络请求失败

时间:2015-10-02 13:18:23

标签: react-native

更新到OSX El Capitan和XCode 7.0.1后,每当我发送获取请求时,我在调试时会遇到以下错误:

Network request failed at self.fetch.xhr.onload

我现在也在XCode中收到以下警告,这些警告可能相关或不相关:

ld: warning: directory not found for option '-F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.0.sdk/Developer/Library/Frameworks'

.../node_modules/react-native/React/Base/RCTRootView.m:230:17: Method override for the designated initializer of the superclass '-initWithFrame:' not found

.../node_modules/react-native/React/Views/RCTViewManager.m:57:43: Unused parameter 'props'

1 个答案:

答案 0 :(得分:-1)

原来不是ReactNative问题。看起来我无法再访问我的mac上绑定到端口0.0.0.0的本地服务器...不确定那是什么,但现在要解决这个问题。