ios – Couldn’t construct Goal-C module ‘GTMSessionFetcher’


After upgrading to flutter newest model 3.7 and doing all packages improve. I’m not in a position to construct my challenge for iOS, for android its working tremendous.

Error Log

Swift Compiler Error (Xcode): Embody of non-modular header inside framework module 'GTMSessionFetcher.GTMSessionFetcherLogging':
/ios/Pods/GTMSessionFetcher/Sources/Core/Public/GTMSessionFetcher/GTMSessionFetcher.h'
/ios/Pods/GTMSessionFetcher/Sources/Core/Public/GTMSessionFetcher/GTMSessionFetcherLogging.h:15:8


Swift Compiler Error (Xcode): Duplicate interface definition for sophistication 'GTMSessionFetcherUserDefaultsFactory'
/ios/Pods/GTMSessionFetcher/Sources/Core/Public/GTMSessionFetcher/GTMSessionFetcher.h:419:0


Swift Compiler Error (Xcode): Redefinition of 'GTMSessionFetcherError'
/ios/Pods/GTMSessionFetcher/Sources/Core/Public/GTMSessionFetcher/GTMSessionFetcher.h:429:27


Swift Compiler Error (Xcode): Redefinition of enumerator 'GTMSessionFetcherErrorDownloadFailed'
/ios/Pods/GTMSessionFetcher/Sources/Core/Public/GTMSessionFetcher/GTMSessionFetcher.h:430:2


Swift Compiler Error (Xcode): Redefinition of enumerator 'GTMSessionFetcherErrorUploadChunkUnavailable'
/ios/Pods/GTMSessionFetcher/Sources/Core/Public/GTMSessionFetcher/GTMSessionFetcher.h:431:2


Swift Compiler Error (Xcode): Redefinition of enumerator 'GTMSessionFetcherErrorBackgroundExpiration'
/ios/Pods/GTMSessionFetcher/Sources/Core/Public/GTMSessionFetcher/GTMSessionFetcher.h:432:2


Swift Compiler Error (Xcode): Redefinition of enumerator 'GTMSessionFetcherErrorBackgroundFetchFailed'
/ios/Pods/GTMSessionFetcher/Sources/Core/Public/GTMSessionFetcher/GTMSessionFetcher.h:433:2


Swift Compiler Error (Xcode): Redefinition of enumerator 'GTMSessionFetcherErrorInsecureRequest'
/ios/Pods/GTMSessionFetcher/Sources/Core/Public/GTMSessionFetcher/GTMSessionFetcher.h:434:2


Swift Compiler Error (Xcode): Redefinition of enumerator 'GTMSessionFetcherErrorTaskCreationFailed'
/ios/Pods/GTMSessionFetcher/Sources/Core/Public/GTMSessionFetcher/GTMSessionFetcher.h:435:2


Swift Compiler Error (Xcode): Redefinition of enumerator 'GTMSessionFetcherErrorUserCancelled'
/ios/Pods/GTMSessionFetcher/Sources/Core/Public/GTMSessionFetcher/GTMSessionFetcher.h:439:2


Swift Compiler Error (Xcode): Redefinition of 'GTMSessionFetcherStatus'
/ios/Pods/GTMSessionFetcher/Sources/Core/Public/GTMSessionFetcher/GTMSessionFetcher.h:442:27


Swift Compiler Error (Xcode): Redefinition of enumerator 'GTMSessionFetcherStatusNotModified'
/ios/Pods/GTMSessionFetcher/Sources/Core/Public/GTMSessionFetcher/GTMSessionFetcher.h:444:2


Swift Compiler Error (Xcode): Redefinition of enumerator 'GTMSessionFetcherStatusBadRequest'
/ios/Pods/GTMSessionFetcher/Sources/Core/Public/GTMSessionFetcher/GTMSessionFetcher.h:445:2


Swift Compiler Error (Xcode): Redefinition of enumerator 'GTMSessionFetcherStatusUnauthorized'
ios/Pods/GTMSessionFetcher/Sources/Core/Public/GTMSessionFetcher/GTMSessionFetcher.h:446:2


Swift Compiler Error (Xcode): Redefinition of enumerator 'GTMSessionFetcherStatusForbidden'
ios/Pods/GTMSessionFetcher/Sources/Core/Public/GTMSessionFetcher/GTMSessionFetcher.h:447:2


Swift Compiler Error (Xcode): Redefinition of enumerator 'GTMSessionFetcherStatusPreconditionFailed'
ios/Pods/GTMSessionFetcher/Sources/Core/Public/GTMSessionFetcher/GTMSessionFetcher.h:448:2


Swift Compiler Error (Xcode): Reference to 'GTMSessionFetcherServiceProtocol' is ambiguous
Pods/GTMSessionFetcher/Sources/Core/Public/GTMSessionFetcher/GTMSessionFetcher.h:676:37


Swift Compiler Error (Xcode): Unknown class identify 'GTMSessionFetcherServiceProtocol'; did you imply 'GTMSessionFetcherService'?
Pods/GTMSessionFetcher/Sources/Core/Public/GTMSessionFetcher/GTMSessionFetcher.h:676:37


Swift Compiler Error (Xcode): Sort argument 'GTMSessionFetcherService' should be a pointer (requires a '*')
ios/Pods/GTMSessionFetcher/Sources/Core/Public/GTMSessionFetcher/GTMSessionFetcher.h:676:37


Swift Compiler Error (Xcode): Too many errors emitted, stopping now


Swift Compiler Error (Xcode): Couldn't construct Goal-C module 'GTMSessionFetcher'

I attempted all options –

the most recent model of the library put in.

all the required dependencies are put in and up-to-date.

Clear the construct folder after which construct the challenge once more.

updating your pods and working ‘pod set up’.

deleting the derived information folder and construct once more.

Leave a Reply