1

I used to intercept the swift files before compilation by adding a user defined setting ("SWIFT_EXEC") in the target's build settings in Xcode.

SWIFT_EXEC points to my custom script which internally modifies some Swift files and then calls the original swiftc compiler.

Is there a way to achieve the same for Objective-C files? (I want to intercept the .h and .m files before compilation)

rmaddy
  • 307,833
  • 40
  • 508
  • 550
user2473992
  • 117
  • 6

1 Answers1

0

You can customize using the CC build setting.

Dave Lee
  • 6,089
  • 1
  • 34
  • 36