Hi,
Can you provide a higher-level description of what you're trying to accomplish? It feels a little like we might get lost in implementation details that may or may not make sense for what you are trying to do.
Phase is a relative quantity. When you produce sound from two loudspeakers, your microphone only detects a single acoustic pressure signal, so it won't enable you to directly measure relative phase between the two loudspeakers.
You could use IOScope on the iPhone to measure the phase of each loudspeaker, independently, and then compare results.
Are you performing your tests in an anechoic environment?
Finally, is it possible for this software, via the iPhone, to
generate/detect signals in the UltraSonic (above 20 Khz)?
Current hardware effectively limits the software to a sample rate of 48 kHz, which means that the maximum theoretical bandwidth would be 24 kHz.
Ben