8000 Merge pull request #4342 from NativeScript/kddimitrov/fix-objective-c… · NativeScript/nativescript-cli@6957e98 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6957e98

Browse files
authored
Merge pull request #4342 from NativeScript/kddimitrov/fix-objective-c-app-resources
fix: objective-C source code not added from App Resources
2 parents 7f479d9 + 4a6540f commit 6957e98

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

lib/services/ios-project-service.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -779,9 +779,15 @@ We will now place an empty obsolete compatability white screen LauncScreen.xib f
779779
this.$logger.trace(`Images to remove from xcode project: ${imagesToRemove.join(", ")}`);
780780
_.each(imagesToRemove, image => project.removeResourceFile(path.join(this.getAppResourcesDestinationDirectoryPath(projectData), image)));
781781

782-
await this.prepareNativeSourceCode(constants.TNS_NATIVE_SOURCE_GROUP_NAME, path.join(projectData.getAppResourcesDirectoryPath(), constants.APP_RESOURCES_FOLDER_NAME, this.getPlatformData(projectData).normalizedPlatformName, constants.NATIVE_SOURCE_FOLDER), projectData);
783-
784782
this.savePbxProj(project, projectData);
783+
784+
const resourcesNativeCodePath = path.join(
785+
projectData.getAppResourcesDirectoryPath(),
786+
this.getPlatformData(projectData).normalizedPlatformName,
787+
constants.NATIVE_SOURCE_FOLDER
788+
);
789+
790+
await this.prepareNativeSourceCode(constants.TNS_NATIVE_SOURCE_GROUP_NAME, resourcesNativeCodePath, projectData);
785791
}
786792

787793
}

0 commit comments

Comments
 (0)
0