aws-amplify / amplify-swift

A declarative library for application development using cloud services.
Apache License 2.0
455 stars 196 forks source link

module 'AWSS3' was not compiled for testing #3877

Closed chriswindings closed 1 month ago

chriswindings commented 1 month ago

Describe the bug

Running into error module 'AWSS3' was not compiled for testing when running xcodebuild in our CICD pipeline.

Steps To Reproduce

Build the app in CICD pipeline using fastlane to run xcodebuild

Expected behavior

Expects to build the app archive, but fails to build, pointing to the usage of the @testable attribute as the cause of failure.

Amplify Framework Version

2.41.0

Amplify Categories

Storage

Dependency manager

Swift PM

Swift version

5.8

CLI version

12.11.1

Xcode version

16.0

Relevant log output

[15:06:56]: ▸ [AWSS3StoragePlugin] Copy AWSS3StoragePlugin.modulemap -> AWSS3StoragePlugin.modulemap
[15:06:56]: ▸ ::error file=/Users/runner/Library/Developer/Xcode/DerivedData/*****/SourcePackages/checkouts/amplify-swift/AmplifyPlugins/Storage/Sources/AWSS3StoragePlugin/Dependency/UploadPartInput+presignURL.swift,line=8,col=18::module 'AWSS3' was not compiled for testing
[15:06:56]: ▸ @testable import AWSS3

Is this a regression?

Yes

Regression additional context

2.40.0 works fine, issue introduced in 2.41.0

Platforms

iOS

OS Version

iOS 18 / macOS 15.0

Device

iPhone 15 Pro

Specific to simulators

No response

Additional context

No response

phantumcode commented 1 month ago

@chriswindings Thanks for submitting the issue. We'll work on removing the @testable import and push out a fix release.

xxza-cognizant commented 1 month ago

I was going to raise the same issue, glad to see it has been fixed. Thanks Amplify team

phantumcode commented 1 month ago

Fixed in release v2.41.1

github-actions[bot] commented 1 month ago

This issue is now closed. Comments on closed issues are hard for our team to see. If you need more assistance, please open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.