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

Build get fails at Compiling Annotations.pbobjc.m on Azure Hosted macos agent #144

Open kartheekmunaga opened 4 years ago

kartheekmunaga commented 4 years ago

Receiving below error when running build on Azure Hosted macos agents

Compiling Annotations.pbobjc.m

❌ /Users/runner/work/1/s/platforms/ios/google/api/Annotations.pbobjc.m:40:10: field designator 'messageOrGroupClassName' does not refer to any field in type 'GPBExtensionDescription' (aka 'struct GPBExtensionDescription'); did you mean 'messageOrGroupClass'?

    .messageOrGroupClassName = GPBStringifySymbol(HttpRule),

The following build commands failed: CompileC /Users/runner/Library/Developer/Xcode/DerivedData/Astro-cbybgdgxvrloqgdxhdtbywxtcjun/Build/Intermediates.noindex/Pods.build/Release-iphoneos/googleapis.build/Objects-normal/arm64/Annotations.pbobjc.o /Users/runner/work/1/s/platforms/ios/google/api/Annotations.pbobjc.m normal arm64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (1 failure)

[debug]success of first tool:false

[debug]rc:0

[debug]success:true

[debug]task result: Failed

[error]Error: /usr/bin/xcodebuild failed with return code: 65

Xcode 11.3.1

Can anyone throw some light on how to fix this error.

Thanks in advance!

tansaku commented 3 years ago

I think I managed to move beyond this error by changing .messageOrGroupClassName to .messageOrGroupClass