Compilation error for armv7 in nanopb/firebasecore.nanopb.c

[REQUIRED] Step 1: Describe your environment

  • Xcode version: 11.4.1 and 11.5 (beta 2)
  • Firebase SDK version: 6.24.0
  • Firebase Component: CoreDiagnostics/FIRCDLibrary/Protogen/nanopb/firebasecore.nanopb.c
  • Component version: “1.30905.0”
  • Installation method: `CocoaPods’

[REQUIRED] Step 2: Describe the problem

Steps to reproduce:

Compile the app for 32-bit architecture armv7 (e.g. for iOS 10, iPhone 5)

Get the error:

Compiling firebasecore.nanopb.c
1849
    ✗ Pods/FirebaseCoreDiagnostics/Firebase/CoreDiagnostics/FIRCDLibrary/Protogen/nanopb/firebasecore.nanopb.c:[42,5] use of undeclared identifier 'PB_LTYPE_BOOL'
1850
    »     PB_FIELD( 25, BOOL    , OPTIONAL, STATIC  , OTHER, logs_proto_mobilesdk_ios_ICoreConfiguration, use_default_app, min_supported_ios_version, 0),
1851
    »     ^
1852
    ⚠ Pods/nanopb/pb.h:[534,9] expanded from macro 'PB_FIELD'
1853
    »         PB_LTYPE_MAP_ ## type, ptr)
1854
    »         ^
1855
    ⚠ Pods/nanopb/pb.h:[495,41] expanded from macro 'PB_LTYPE_MAP_BOOL'
1856
    » #define PB_LTYPE_MAP_BOOL               PB_LTYPE_BOOL
1857
    »                                         ^
1858
    ✗ Pods/FirebaseCoreDiagnostics/Firebase/CoreDiagnostics/FIRCDLibrary/Protogen/nanopb/firebasecore.nanopb.c:[43,5] use of undeclared identifier 'PB_LTYPE_BOOL'
1859
    »     PB_FIELD( 26, BOOL    , OPTIONAL, STATIC  , OTHER, logs_proto_mobilesdk_ios_ICoreConfiguration, deployed_in_app_store, use_default_app, 0),
1860
    »     ^
1861
    ⚠ Pods/nanopb/pb.h:[534,9] expanded from macro 'PB_FIELD'
1862
    »         PB_LTYPE_MAP_ ## type, ptr)
1863
    »         ^
1864
    ⚠ Pods/nanopb/pb.h:[495,41] expanded from macro 'PB_LTYPE_MAP_BOOL'
1865
    » #define PB_LTYPE_MAP_BOOL               PB_LTYPE_BOOL
1866
    »                                         ^
1867
    ✗ Pods/FirebaseCoreDiagnostics/Firebase/CoreDiagnostics/FIRCDLibrary/Protogen/nanopb/firebasecore.nanopb.c:[46,5] use of undeclared identifier 'PB_LTYPE_BOOL'
1868
    »     PB_FIELD( 29, BOOL    , OPTIONAL, STATIC  , OTHER, logs_proto_mobilesdk_ios_ICoreConfiguration, using_zip_file, apple_framework_version, 0),
1869
    »     ^
1870
    ⚠ Pods/nanopb/pb.h:[534,9] expanded from macro 'PB_FIELD'
1871
    »         PB_LTYPE_MAP_ ## type, ptr)
1872
    »         ^
1873
    ⚠ Pods/nanopb/pb.h:[495,41] expanded from macro 'PB_LTYPE_MAP_BOOL'
1874
    » #define PB_LTYPE_MAP_BOOL               PB_LTYPE_BOOL
1875
    »                                         ^
1876
    ✗ Pods/FirebaseCoreDiagnostics/Firebase/CoreDiagnostics/FIRCDLibrary/Protogen/nanopb/firebasecore.nanopb.c:[49,5] use of undeclared identifier 'PB_LTYPE_BOOL'
1877
    »     PB_FIELD( 33, BOOL    , OPTIONAL, STATIC  , OTHER, logs_proto_mobilesdk_ios_ICoreConfiguration, swizzling_enabled, platform_info, 0),
1878
    »     ^
1879
    ⚠ Pods/nanopb/pb.h:[534,9] expanded from macro 'PB_FIELD'
1880
    »         PB_LTYPE_MAP_ ## type, ptr)
1881
    »         ^
1882
    ⚠ Pods/nanopb/pb.h:[495,41] expanded from macro 'PB_LTYPE_MAP_BOOL'
1883
    » #define PB_LTYPE_MAP_BOOL               PB_LTYPE_BOOL
1884
    »                                         ^
1885
    ✗ Pods/FirebaseCoreDiagnostics/Firebase/CoreDiagnostics/FIRCDLibrary/Protogen/nanopb/firebasecore.nanopb.c:[50,5] use of undeclared identifier 'PB_LTYPE_BOOL'
1886
    »     PB_FIELD( 36, BOOL    , OPTIONAL, STATIC  , OTHER, logs_proto_mobilesdk_ios_ICoreConfiguration, using_gdt, swizzling_enabled, 0),
1887
    »     ^
1888
    ⚠ Pods/nanopb/pb.h:[534,9] expanded from macro 'PB_FIELD'
1889
    »         PB_LTYPE_MAP_ ## type, ptr)
1890
    »         ^
1891
    ⚠ Pods/nanopb/pb.h:[495,41] expanded from macro 'PB_LTYPE_MAP_BOOL'
1892
    » #define PB_LTYPE_MAP_BOOL               PB_LTYPE_BOOL
1893
    »                                         ^
1894
    ▸ Compiling FirebaseCoreDiagnostics_vers.c
1895
    ▸ Compiling FirebaseCoreDiagnostics-dummy.m
1896
    ⚠ Could not read serialized diagnostics file: Cannot Load File: Failed to open diagnostics file (in target 'FirebaseCoreDiagnostics' from project 'Pods')
The following build commands failed:
/Pods.build/Staging-iphoneos/FirebaseCoreDiagnostics.build/Objects-normal/armv7/firebasecore.nanopb.o Pods/FirebaseCoreDiagnostics/Firebase/CoreDiagnostics/FIRCDLibrary/Protogen/nanopb/firebasecore.nanopb.c normal armv7 c com.apple.compilers.llvm.clang.1_0.compiler

More details

I compiled locally and remotely (using buddybuild) on both Xcode v.11.4.1 and Xcode 11.5 (beta 2).

The error happens only after installation of Firebase 6.24.0 (nanopb 1.30905.0), on 6.23.0 (nanopb 0.3.9011) it compiles without the error in both Xcode versions.

2 thoughts on “Compilation error for armv7 in nanopb/firebasecore.nanopb.c

  1. Hi @paulb777
    Thanks for the quick response.

    The problem is that I cleaned up my local environment before the compilation, I reinstalled the pods, I tried different things. But the error is pretty consistent.

    And also, we are using buddybuild, it doesn’t have any cache with our settings. It reinstalls all the pods from scratch for all builds and the only pod we manually specify is Firebase/Analytics. But even in this way we get the same error.

    What might be the issue? Is there a way to ensure there is the needed nanopb version?