Skip to content

Commit 4a6540f

Browse files
author
Kristian D. Dimitrov
committed
fix: objective-C source code not added from App Resources
1 parent 7f479d9 commit 4a6540f

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)