Aws-sdk-ios: AWSCognitoAuth_Internal.h file not found

Created on 29 Mar 2019  路  3Comments  路  Source: aws-amplify/aws-sdk-ios

Possibly related to https://github.com/aws-amplify/aws-sdk-ios/issues/1126

AWS SDK 2.9.3, using Cocoapods
Xcode 10.1
macOS 10.13.6

import "AWSCognitoAuth_Internal.h"

in AWSMobileClient/AWSCognitoAuth.m#16

Error on building AWSMobileClient: AWSCognitoAuth_Internal.h file not found

documentation mobile client

Most helpful comment

To explain the details: AWSMobileClient now supports HostedUI OAuth flows directly as part of showSignIn API. The dependency of AWSCognitoAuth is no longer needed as AWSMobileClient internally encapsulates this library. Using both in one project is not recommended and I will be clarifying it in the documentation to make sure no one runs into this issue.

Thanks,
Rohan

All 3 comments

Must be related to #1126

Getting #1126 upon updating to 2.9.3 pods. No cache cleaning is helping.

Fixed, probably by removing redundant dependencies from my Podfile. (Also, upgraded to SDK 2.9.4, but that did not change anything initially.)

Now:

    pod 'AWSMobileClient', :path => '~/Development/aws-sdk-ios'
    pod 'AWSAuthUI', :path => '~/Development/aws-sdk-ios'
    pod 'AWSUserPoolsSignIn', :path => '~/Development/aws-sdk-ios'

    # redundant, because added as dependency of other AWS SDKs automatically:
    #  pod 'AWSCore', :path => '~/Development/aws-sdk-ios'
    #  pod 'AWSAuth', :path => '~/Development/aws-sdk-ios'
    #  pod 'AWSCognito', :path => '~/Development/aws-sdk-ios'
    #  pod 'AWSCognitoAuth', :path => '~/Development/aws-sdk-ios'
    #  pod 'AWSCognitoIdentityProvider', :path => '~/Development/aws-sdk-ios'

To explain the details: AWSMobileClient now supports HostedUI OAuth flows directly as part of showSignIn API. The dependency of AWSCognitoAuth is no longer needed as AWSMobileClient internally encapsulates this library. Using both in one project is not recommended and I will be clarifying it in the documentation to make sure no one runs into this issue.

Thanks,
Rohan

Was this page helpful?
0 / 5 - 0 ratings