[ObjC] Include the version checks in generated impl files.

There's always the chance someone will mix these, so play it safe and have checks in both.

PiperOrigin-RevId: 508114797
diff --git a/objectivec/GPBSourceContext.pbobjc.m b/objectivec/GPBSourceContext.pbobjc.m
index 9ddd296..9db0197 100644
--- a/objectivec/GPBSourceContext.pbobjc.m
+++ b/objectivec/GPBSourceContext.pbobjc.m
@@ -5,6 +5,13 @@
 #import "GPBProtocolBuffers_RuntimeSupport.h"
 #import "GPBSourceContext.pbobjc.h"
 
+#if GOOGLE_PROTOBUF_OBJC_VERSION < 30007
+#error This file was generated by a newer version of protoc which is incompatible with your Protocol Buffer library sources.
+#endif
+#if 30007 < GOOGLE_PROTOBUF_OBJC_MIN_SUPPORTED_VERSION
+#error This file was generated by an older version of protoc which is incompatible with your Protocol Buffer library sources.
+#endif
+
 // @@protoc_insertion_point(imports)
 
 #pragma clang diagnostic push