Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to Build AWSMobileClientXCF #3795

Closed
invinciible opened this issue Sep 8, 2021 · 11 comments
Closed

Unable to Build AWSMobileClientXCF #3795

invinciible opened this issue Sep 8, 2021 · 11 comments
Assignees
Labels
bug Something isn't working build Issues related to build problems and CI/CD mobile client Issues related to AWSMobileClient pending-triage Issue is pending triage

Comments

@invinciible
Copy link

I have added the target dependency as .product(name: "AWSMobileClientXCF", package: "AWSiOSSDKV2")

However in the existing project which was using AWSMobileClient and now when I add

#if canImport(AWSMobileClientXCF)
import AWSMobileClientXCF
#endif

It doesn't build.

Error: Failed to build module 'AWSMobileClientXCF' from its module interface; the compiler that produced it, 'Apple Swift version 5.3.2 (swiftlang-1200.0.45 clang-1200.0.32.28)', may have used features that aren't supported by this compiler, 'Apple Swift version 5.4.2 (swiftlang-1205.0.28.2 clang-1205.0.19.57)'

Xcode: 12.5.1

@invinciible
Copy link
Author

I have also tried importing the AWSMobileClientXCF in a new project by following the steps mentioned here.

I got the same issue. Attached screenshot of the error.

Screenshot 2021-09-08 at 7 39 42 PM

@brennanMKE
Copy link
Contributor

@invinciible What do you have listed under target dependencies for the app's build target?

@invinciible
Copy link
Author

This is how I've defined my package.
Screenshot 2021-09-14 at 11 48 34 AM

@invinciible
Copy link
Author

This is from the test App I tried.

Screenshot 2021-09-14 at 2 54 46 PM

@lawmicha lawmicha transferred this issue from aws-amplify/aws-sdk-ios-spm Sep 28, 2021
@lawmicha
Copy link
Contributor

Hi @invinciible, thanks for opening this issue, i've transferred it over to the main repro from https://github.com/aws-amplify/aws-sdk-ios-spm so that there is more visibility

@lawmicha lawmicha added bug Something isn't working build Issues related to build problems and CI/CD mobile client Issues related to AWSMobileClient pending-triage Issue is pending triage labels Sep 28, 2021
@royjit
Copy link
Contributor

royjit commented Oct 1, 2021

Looks like the CircleCI was using older Xcode version, created this PR to address this - #3803

@invinciible
Copy link
Author

Thank you. It's working now.

@invinciible
Copy link
Author

invinciible commented Oct 29, 2021

It's failing again on Version Xcode 13.1 (13A1030d).

@invinciible
Copy link
Author

Is it possible for Circle CI to consider building with the new Xcode whenever it's available? I know Github Actions does that if you don't specify the version.

@cody1024d
Copy link

Having the same issue as @invinciible.

@phantumcode
Copy link
Contributor

Closing this issue in favor of issue #3874

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working build Issues related to build problems and CI/CD mobile client Issues related to AWSMobileClient pending-triage Issue is pending triage
Projects
None yet
Development

No branches or pull requests

6 participants