diff --git a/Sources/TuistGenerator/Mappers/ResourcesProjectMapper.swift b/Sources/TuistGenerator/Mappers/ResourcesProjectMapper.swift index 7fb209c2fd2..41162489e41 100644 --- a/Sources/TuistGenerator/Mappers/ResourcesProjectMapper.swift +++ b/Sources/TuistGenerator/Mappers/ResourcesProjectMapper.swift @@ -44,7 +44,7 @@ public class ResourcesProjectMapper: ProjectMapping { // swiftlint:disable:this name: bundleName, destinations: target.destinations, product: .bundle, - productName: nil, + productName: bundleName, bundleId: "\(target.bundleId).resources", deploymentTargets: target.deploymentTargets, infoPlist: .extendingDefault(with: [:]), diff --git a/Tests/TuistGeneratorTests/ProjectMappers/ResourcesProjectMapperTests.swift b/Tests/TuistGeneratorTests/ProjectMappers/ResourcesProjectMapperTests.swift index 04162da4ddb..67bc431488c 100644 --- a/Tests/TuistGeneratorTests/ProjectMappers/ResourcesProjectMapperTests.swift +++ b/Tests/TuistGeneratorTests/ProjectMappers/ResourcesProjectMapperTests.swift @@ -440,6 +440,8 @@ final class ResourcesProjectMapperTests: TuistUnitTestCase { // Then XCTAssertEqual(expectedBundleName, bundleTarget.name) + XCTAssertEqual(expectedBundleName, bundleTarget.productName) + XCTAssertEqual(2, gotProject.targets.count) // One code target, one bundle target } // MARK: - Verifiers diff --git a/fixtures/app_with_spm_dependencies/App/Sources/App/AppDelegate.swift b/fixtures/app_with_spm_dependencies/App/Sources/App/AppDelegate.swift index 45aaeb9e54d..7706415911f 100644 --- a/fixtures/app_with_spm_dependencies/App/Sources/App/AppDelegate.swift +++ b/fixtures/app_with_spm_dependencies/App/Sources/App/AppDelegate.swift @@ -40,7 +40,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate { let brazeUILocalizedString = BrazeUIResources.bundle?.localizedString( forKey: "braze.in-app-message.close-button.title", value: nil, - table: nil + table: "InAppMessageLocalizable" ) precondition(brazeUILocalizedString == "Close", "Failed to fetch localized resource from BrazeUI")