2
我在iOS應用程序中看到了與React-native 0.19.0相同的錯誤here。React Native Podfile子規格未添加到項目中
Error: undefined is not an object (evaluating \'RCTWebSocketManager.connect\')
我有一個現有的項目,並遵循Integrating with Existing Apps文檔中的步驟。現有問題的答案都不適合我。
我Podfile是完全一樣的陣營本地文件中所示的例子:
pod 'React', :path => './node_modules/react-native', :subspecs => [
'Core',
'RCTImage',
'RCTNetwork',
'RCTText',
'RCTWebSocket'
]
一個pod install
後,在我的Xcode項目艙體只包含陣營核心庫,而不是在subspecs列出的庫。
爲了說服自己這不是與我的Podfile中列出的其他依賴衝突,我創建了一個全新的項目,遵循文檔中的步驟,並得到了相同的結果。
對於接下來要嘗試的任何建議非常感謝。