Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit4150d12

Browse files
author
Pierre-Dominique CHARRON
committed
fix adding a build phase when some file references doesn't have a path (e.g. Assets.xcassets)
1 parent659a4e7 commit4150d12

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎lib/pbxProject.js‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -916,7 +916,7 @@ pbxProject.prototype.addBuildPhase = function(filePathsArray, buildPhaseType, co
916916
buildFile=buildFileSection[buildFileKey];
917917
fileReference=fileReferenceSection[buildFile.fileRef];
918918

919-
if(!fileReference)continue;
919+
if(!fileReference||!fileReference.path)continue;
920920

921921
varpbxFileObj=newpbxFile(fileReference.path);
922922

@@ -1148,7 +1148,7 @@ pbxProject.prototype.updateBuildProperty = function(prop, value, build, targetNa
11481148
}
11491149
}
11501150
}
1151-
1151+
11521152
varconfigs=this.pbxXCBuildConfigurationSection();
11531153
for(varconfigNameinconfigs){
11541154
if(!COMMENT_KEY.test(configName)){
@@ -2091,7 +2091,7 @@ pbxProject.prototype.getBuildProperty = function(prop, build, targetName) {
20912091
}
20922092
}
20932093
}
2094-
2094+
20952095
varconfigs=this.pbxXCBuildConfigurationSection();
20962096
for(varconfigNameinconfigs){
20972097
if(!COMMENT_KEY.test(configName)){

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp