Skip to content

Commit 03e8121

Browse files
committed
fix: fix incorrect references in pbxproj. closes #398
1 parent c40dc3b commit 03e8121

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

packages/create-react-native-library/templates/native-common/ios/{%- project.name %}.xcodeproj/project.pbxproj

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@
88

99
/* Begin PBXBuildFile section */
1010
<% if (project.cpp) { -%>
11-
5E46D8CD2428F78900513E24 /* example.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 5E46D8CB2428F78900513E24 /* example.cpp */; };
11+
5E46D8CD2428F78900513E24 /* <%- project.identifier -%>.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 5E46D8CB2428F78900513E24 /* <%- project.identifier -%>.cpp */; };
1212
5E555C0D2413F4C50049A1A2 /* <%- project.name -%>.mm in Sources */ = {isa = PBXBuildFile; fileRef = B3E7B5891CC2AC0600A0062D /* <%- project.name -%>.mm */; };
1313
<% } else if (project.swift) { -%>
14-
5E555C0D2413F4C50049A1A2 /* <%- project.name -%>.m in Sources */ = {isa = PBXBuildFile; fileRef = B3E7B5891CC2AC0600A0062D /* <%- project.name -%>.m */; };
14+
5E555C0D2413F4C50049A1A2 /* <%- project.name -%>.mm in Sources */ = {isa = PBXBuildFile; fileRef = B3E7B5891CC2AC0600A0062D /* <%- project.name -%>.mm */; };
1515
F4FF95D7245B92E800C19C63 /* <%- project.name -%>.swift in Sources */ = {isa = PBXBuildFile; fileRef = F4FF95D6245B92E800C19C63 /* <%- project.name -%>.swift */; };
1616
<% } else { -%>
17-
5E555C0D2413F4C50049A1A2 /* <%- project.name -%>.m in Sources */ = {isa = PBXBuildFile; fileRef = B3E7B5891CC2AC0600A0062D /* <%- project.name -%>.m */; };
17+
5E555C0D2413F4C50049A1A2 /* <%- project.name -%>.mm in Sources */ = {isa = PBXBuildFile; fileRef = B3E7B5891CC2AC0600A0062D /* <%- project.name -%>.mm */; };
1818
<% } -%>
1919
/* End PBXBuildFile section */
2020

@@ -33,16 +33,16 @@
3333
/* Begin PBXFileReference section */
3434
134814201AA4EA6300B7C361 /* lib<%- project.name -%>.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = lib<%- project.name -%>.a; sourceTree = BUILT_PRODUCTS_DIR; };
3535
<% if (project.cpp) { -%>
36-
5E46D8CB2428F78900513E24 /* example.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = example.cpp; path = ../cpp/example.cpp; sourceTree = "<group>"; };
37-
5E46D8CC2428F78900513E24 /* example.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = example.h; path = ../cpp/example.h; sourceTree = "<group>"; };
36+
5E46D8CB2428F78900513E24 /* <%- project.identifier -%>.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = <%- project.identifier -%>.cpp; path = ../cpp/<%- project.identifier -%>.cpp; sourceTree = "<group>"; };
37+
5E46D8CC2428F78900513E24 /* <%- project.identifier -%>.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = <%- project.identifier -%>.h; path = ../cpp/<%- project.identifier -%>.h; sourceTree = "<group>"; };
3838
B3E7B5891CC2AC0600A0062D /* <%- project.name -%>.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = <%- project.name -%>.mm; sourceTree = "<group>"; };
3939
<% } else if (project.swift) { -%>
40-
B3E7B5891CC2AC0600A0062D /* <%- project.name -%>.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = <%- project.name -%>.m; sourceTree = "<group>"; };
40+
B3E7B5891CC2AC0600A0062D /* <%- project.name -%>.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = <%- project.name -%>.mm; sourceTree = "<group>"; };
4141
F4FF95D5245B92E700C19C63 /* <%- project.name -%>-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "<%- project.name -%>-Bridging-Header.h"; sourceTree = "<group>"; };
4242
F4FF95D6245B92E800C19C63 /* <%- project.name -%>.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = <%- project.name -%>.swift; sourceTree = "<group>"; };
4343
<% } else { -%>
4444
B3E7B5881CC2AC0600A0062D /* <%- project.name -%>.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = <%- project.name -%>.h; sourceTree = "<group>"; };
45-
B3E7B5891CC2AC0600A0062D /* <%- project.name -%>.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = <%- project.name -%>.m; sourceTree = "<group>"; };
45+
B3E7B5891CC2AC0600A0062D /* <%- project.name -%>.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = <%- project.name -%>.mm; sourceTree = "<group>"; };
4646
<% } -%>
4747
/* End PBXFileReference section */
4848

@@ -69,16 +69,16 @@
6969
isa = PBXGroup;
7070
children = (
7171
<% if (project.cpp) { -%>
72-
5E46D8CB2428F78900513E24 /* example.cpp */,
73-
5E46D8CC2428F78900513E24 /* example.h */,
72+
5E46D8CB2428F78900513E24 /* <%- project.identifier -%>.cpp */,
73+
5E46D8CC2428F78900513E24 /* <%- project.identifier -%>.h */,
7474
B3E7B5891CC2AC0600A0062D /* <%- project.name -%>.mm */,
7575
<% } else if (project.swift) { -%>
7676
F4FF95D6245B92E800C19C63 /* <%- project.name -%>.swift */,
77-
B3E7B5891CC2AC0600A0062D /* <%- project.name -%>.m */,
77+
B3E7B5891CC2AC0600A0062D /* <%- project.name -%>.mm */,
7878
F4FF95D5245B92E700C19C63 /* <%- project.name -%>-Bridging-Header.h */,
7979
<% } else { -%>
8080
B3E7B5881CC2AC0600A0062D /* <%- project.name -%>.h */,
81-
B3E7B5891CC2AC0600A0062D /* <%- project.name -%>.m */,
81+
B3E7B5891CC2AC0600A0062D /* <%- project.name -%>.mm */,
8282
<% } -%>
8383
134814211AA4EA7D00B7C361 /* Products */,
8484
);
@@ -142,13 +142,13 @@
142142
buildActionMask = 2147483647;
143143
files = (
144144
<% if (project.cpp) { -%>
145-
5E46D8CD2428F78900513E24 /* example.cpp in Sources */,
145+
5E46D8CD2428F78900513E24 /* <%- project.identifier -%>.cpp in Sources */,
146146
5E555C0D2413F4C50049A1A2 /* <%- project.name -%>.mm in Sources */,
147147
<% } else if (project.swift) { -%>
148148
F4FF95D7245B92E800C19C63 /* <%- project.name -%>.swift in Sources */,
149-
B3E7B58A1CC2AC0600A0062D /* <%- project.name -%>.m in Sources */,
149+
B3E7B58A1CC2AC0600A0062D /* <%- project.name -%>.mm in Sources */,
150150
<% } else { -%>
151-
B3E7B58A1CC2AC0600A0062D /* <%- project.name -%>.m in Sources */,
151+
B3E7B58A1CC2AC0600A0062D /* <%- project.name -%>.mm in Sources */,
152152
<% } -%>
153153
);
154154
runOnlyForDeploymentPostprocessing = 0;

0 commit comments

Comments
 (0)