richardjrossiii / CBasediOSApp

395 stars 35 forks source link

This no longer builds due to objc_msgSend requiring casting #3

Open ryao opened 9 months ago

ryao commented 9 months ago

https://www.mikeash.com/pyblog/objc_msgsends-new-prototype.html

That offers some explanation. This is succinct because I do not have an answer on how to fix this. A local hack crashed on me in the iPhone emulator.

stianhoiland commented 2 weeks ago

Quick and dirty:

static id (*old_msgSend)(id, SEL, ...) = (void *)objc_msgSend;
#define objc_msgSend old_msgSend