iOS packaging fails with "PhysX" and "APEX" modules

Try to include PhysXIncludes after these lines of code, it may be a possible workaround for doing so without APEX

#ifdef WITH_APEX
#undefine WITH_APEX
#endif
#define WITH_APEX 0