diff --git a/swiftpkg/internal/ObjcResourceBundleAccessor.h.tmpl b/swiftpkg/internal/ObjcResourceBundleAccessor.h.tmpl index 6f3666476..801e63f08 100644 --- a/swiftpkg/internal/ObjcResourceBundleAccessor.h.tmpl +++ b/swiftpkg/internal/ObjcResourceBundleAccessor.h.tmpl @@ -1,3 +1,4 @@ +#ifdef __OBJC__ #import #if __cplusplus @@ -11,3 +12,4 @@ NSBundle* {MODULE_NAME}_SWIFTPM_MODULE_BUNDLE(void); #if __cplusplus } #endif +#endif