# Translate-C & Objective-C

**URL:** <https://ziggit.dev/t/translate-c-objective-c/505>\
**Category:** Help\
**Created:** [January 1, 2023, 1:56am UTC](https://ziggit.dev/t/translate-c-objective-c/505 "2023-01-01T01:56:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![hardebayho](https://ziggit.dev/user_avatar/ziggit.dev/hardebayho/32/133_2.png) [@hardebayho](https://ziggit.dev/u/hardebayho)\
**Post date:** [January 1, 2023, 1:56am UTC](https://ziggit.dev/t/translate-c-objective-c/505/1 "2023-01-01T01:56:50Z")

</div>

Hi all,

Does Zig’s Translate-C work with Objective-C? I tried to translate an Objective-C library (AVFoundation) and I got a TON of errors.

```sh
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:601:1: error: expected identifier or '('
@class NSString, Protocol;

/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:603:9: error: unknown type name 'NSString'
typedef NSString * NSExceptionName NS_TYPED_EXTENSIBLE_ENUM;

```

… among other similar errors.

Does this mean that Zig Translate-C doesn’t support Objective-C?

---

<div class="post-metadata">

**Author:** ![jmc](https://ziggit.dev/user_avatar/ziggit.dev/jmc/32/38_2.png) [@jmc](https://ziggit.dev/u/jmc)\
**Post date:** [January 1, 2023, 5:43pm UTC](https://ziggit.dev/t/translate-c-objective-c/505/2 "2023-01-01T17:43:58Z")

</div>

Objective-C is a different language than C, and I don’t believe there’s any support for it.

---

<div class="post-metadata">

**Author:** ![hardebayho](https://ziggit.dev/user_avatar/ziggit.dev/hardebayho/32/133_2.png) [@hardebayho](https://ziggit.dev/u/hardebayho)\
**Post date:** [January 4, 2023, 5:26am UTC](https://ziggit.dev/t/translate-c-objective-c/505/3 "2023-01-04T05:26:56Z")

</div>

Oh, got it. Thanks

---

<div class="post-metadata">

**Author:** ![kristoff](https://ziggit.dev/user_avatar/ziggit.dev/kristoff/32/9_2.png) [@kristoff](https://ziggit.dev/u/kristoff)\
**Post date:** [January 4, 2023, 1:42pm UTC](https://ziggit.dev/t/translate-c-objective-c/505/4 "2023-01-04T13:42:28Z")

</div>

You can use Zig (`zig cc`) to compile ObjectiveC code, and then you can link against it, but it can’t be translated to Zig code directly.

Related tweet:

> <https://twitter.com/mitchellh/status/1610051345981267969>
