Skip to content

Commit 62a762a

Browse files
authored
feat: add C files linking to .podspec file template (#377)
### Summary This PR adds support for linking **C files** on iOS. When creating module with C++ template, files with `.c` extension were not linked correctly. --------- Co-authored-by: krozniata <>
1 parent e369644 commit 62a762a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/create-react-native-library/templates/native-common/{%- project.identifier %}.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Pod::Spec.new do |s|
1515
s.source = { :git => "<%- repo -%>.git", :tag => "#{s.version}" }
1616

1717
<% if (project.cpp) { -%>
18-
s.source_files = "ios/**/*.{h,m,mm}", "cpp/**/*.{h,cpp}"
18+
s.source_files = "ios/**/*.{h,m,mm}", "cpp/**/*.{hpp,cpp,c,h}"
1919
<% } else if (project.swift) { -%>
2020
s.source_files = "ios/**/*.{h,m,mm,swift}"
2121
<% } else { -%>

0 commit comments

Comments
 (0)