Skip to content

Commit eb67cdf

Browse files
Copilotdustturtle
andcommitted
Fix ObjC demo build: add -fobjc-arc flag to clang command
GCDAsyncSocket.m uses __weak references throughout which require Automatic Reference Counting (ARC) to be enabled. Co-authored-by: dustturtle <2305214+dustturtle@users.noreply.github.com>
1 parent 7d7b157 commit eb67cdf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/demo.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232

3333
- name: Build ObjC Demo
3434
run: |
35-
clang -framework Foundation -framework Network \
35+
clang -fobjc-arc -framework Foundation -framework Network \
3636
-I ObjC/NWAsyncSocketObjC/include \
3737
ObjC/NWAsyncSocketObjC/NWStreamBuffer.m \
3838
ObjC/NWAsyncSocketObjC/NWSSEParser.m \

0 commit comments

Comments
 (0)