From 25e048ba3a0545b0cdde3534f01177f31656f50a Mon Sep 17 00:00:00 2001 From: Andrew Nicolaou Date: Thu, 15 Sep 2016 14:43:38 -0700 Subject: [PATCH] Add .mm to RCTNetwork subspec Summary: Without this, `Libraries/Network/RCTNetworking.mm` is not matched, causing a "Native module cannot be null" error when integrating into an existing Swift iOS project. I've tested this fix with an iOS Swift project following the "Integration With Existing Apps" [1] tutorial and the error does not appear. [1] https://facebook.github.io/react-native/docs/integration-with-existing-apps.html Closes https://github.com/facebook/react-native/pull/9904 Differential Revision: D3873011 fbshipit-source-id: d69395190d3865aa1fc87966a37981b53beea115 --- React.podspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/React.podspec b/React.podspec index 77b01c46a..70e3f1a9d 100644 --- a/React.podspec +++ b/React.podspec @@ -81,7 +81,7 @@ Pod::Spec.new do |s| s.subspec 'RCTNetwork' do |ss| ss.dependency 'React/Core' - ss.source_files = "Libraries/Network/*.{h,m}" + ss.source_files = "Libraries/Network/*.{h,m,mm}" ss.preserve_paths = "Libraries/Network/*.js" end