GoogleCloudPlatform / ios-docs-samples

iOS samples that demonstrate APIs and services of Google Cloud Platform.
Apache License 2.0
326 stars 209 forks source link

XCode v11.1 and 11.2 - Build OK but Archive fails - GRPC #135

Open nanomb opened 4 years ago

nanomb commented 4 years ago

I'm trying to run some of these samples: https://github.com/GoogleCloudPlatform/ios-docs-samples but I'm getting some errors when archiving the iOS project, due to some GoogleApis libraries:

Include of non-modular header inside framework module 'GRPCClient': '/MyProject/iphoneos/gRPC/GRPCClient.framework/Headers/internal_testing/GRPCCall+InternalTests.h'

google-umbrella.h fails because it doesn't find the GoogleApis framework headers

Running the project on a device in debug mode works, this error happens only when archiving. I guess this problems are due to something related with headers in XCode.

Can anyone throw some light?

Thanks in advance!

smartphone-pro commented 4 years ago

I'm faced with the same.

// #import "internal_testing/GRPCCall+InternalTests.h"

I just commented on the above .h file's import. It's working fine now.

syafieqq commented 1 year ago

I'm also facing almost same issue, while trying to archive the project. But this time i got error 'absl/base/options.h' file not found when trying to archive. Had you guys found any work arround?

Thanks