Skip to content

Commit 94245e5

Browse files
committed
XCBuildConfiguration array field replace ok
1 parent 19879f9 commit 94245e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/pbxProject.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -633,7 +633,7 @@ pbxProject.prototype.hasFile = function (filePath) {
633633
function propReplace(obj, prop, value) {
634634
for (var p in obj) {
635635
if (obj.hasOwnProperty(p)) {
636-
if (typeof obj[p] == 'object') {
636+
if (typeof obj[p] == 'object' && !Array.isArray(obj[p])) {
637637
propReplace(obj[p], prop, value);
638638
} else if (p == prop) {
639639
obj[p] = value;

0 commit comments

Comments
 (0)