Ludyem
Ludyem

Reputation: 1919

#if APPCLIP doesn't recognise APPCLIP target

I created a new APPCLIP target and shared the same file between the main app and the app clip app but when I try to give add some specific code with #if APPCLIP that never get called, and I'm definitely running the AppClip target.

enter image description here

Upvotes: 5

Views: 870

Answers (1)

budiDino
budiDino

Reputation: 13527

You have to add APPCLIP to your Active Compilation Conditions for the App Clip target:

enter image description here

Upvotes: 7

Related Questions