AVAudioRecorder with mac mini micro - ios

I want to use AVAudioRecorder on my mac mini.
But there is no microphone input jack.
I think I should buy earpods to use AVAudioRecorder. Maybe these : http://store.apple.com/uk/product/MD827ZM/A/apple-earpods-with-remote-and-mic
If I plug earpods into mac mini (headphone out),
will it work inside iPhone & iPad 6.0 Simulator ?
Could I record my voice without debugging into iOS device ?

Yes, I've tested AVAudioRecorder in the Simulator on the mini and it works. But your reluctance to test on a device is a worry. Always test on a device, especially where hardware-dependent functionality is concerned (as here).
However, my mini definitely does not understand the earpods. You have to use a USB microphone.

Related

Audiokit mic input not working on IPad Pro

Any suggestions on why the Audiokit mic input would work fine on IPad Mini 2 but not at all on 3rd gen IPad Pro? Have tried the obvious: confirmed my app allows mic in pro settings, mic is working using voice notes app on pro. Both devices are latest IOS version and Audiokit is latest release 4.7.
My app processes some audio input with no output needed. The IPad mini didn't care that there was no output module in the chain, the IPad pro did so I added the line "AudioKit.output = silence" to the end of the audio chain. This fixed the problem.

iOS Simulator makes headphones enter call mode

Every time I open iOS Simulator my headphones enter call mode. Why MacOS thinks an open Simulator is like a running call?
Headphones are connected wirelessly (Beoplay H9i).
Under Hardware, Audio Input select a different input device (such as built-in microphone).

Add iOS device to Xcode's devices for debugging/building without cable

I was wondering if anyone knew of a way to add an iOS device and enable the 'Connect via network' option for an that device in Xcode without first connecting the device to the computer with a lightning cable.
My situation is that both of my USB ports are broken so I can't connect any device to my computer via a lightning cable.
By the way, wifi syncing is already enabled on my computer for one of my iOS devices, the one I'd also like to use for wireless debugging on Xcode. I don't know if that helps at all..
Unfortunately not, see the picture it must be found first in devices:
What type of computer is it? Potentially if you have a thunderbolt port, you could buy or even borrow a thunderbolt to USB adapter. I have one such for an iMac 2011 to convert thunderbolt 2 to usb 3. Any Mac from mid 2011 onwards including MacBook Air, pro or iMac should have it. I know it might sound expensive, but these days the adapters can be had cheaper.
Here is a link to the one I have on Apple Store and can confirm it works, and it might be useful anyway.
Kanex Thunderbolt to eSATA + USB 3.0 Adapter
And if after using it, you don't like it, Apple usually have a 14 day return policy.

Is it possible to use raw socket on iphone simulator?

I would like to develop an app for jailbroken iphone that uses raw sockets.
Is it possible to run it on iphone simulator or do I need necessarily a jailbroken device?
No, you can't run raw sockets on iPhone simulator since simulator has same OS architecture as iOS device. You may try jail breaking the simulator itself, but I think it will be a tough task. This link might help.
Yes, you can use it, and many projects do that. However, please note that it would not work on device, so you should only use this for testing purposes in the simulator.

multipeer connectivity test on iphone and a simulator simultaneously

Hello I was searching in all topics of the forum about how can i test an app which uses multipeer connectivity framework. Can someone tell me how can i test an app by using an iPhone device and a simulator simultaneously, player one for device and player two on the simulator and vice versa. I already test the app by using two simulators one per mac - user on a mac and its working but it is not convenient to continuously switch users to test an app.
I tried all the alternatives, running once in simulator and one on device at the same time,make second target, nothing happened.
Thanks in advance
If you put your iPhone and your Mac on the same WiFi network they should able to discover each other without any problem.
Yes you can test your app on Device an Simulator simultaneously.
I'm developing an app with Multipeer Connectivity right now and communication between
Iphone and Simulator works fine.
I'm running it on a MacBook Air.
All you have to do is to make sure, that Bluetooth is enabled on your Mac.
You can do this in System Preferences -> Bluetooth.
In addition to testing on WiFi, you can also test your app based on "Multipeer Connectivity framework" on simulator and any IOS device using Bluetooth, As long as simulator and devices are connected in same Personal area network.
For example, on Iphone you can turn on Personal Hotspot (in your phone General settings) to connect your phone with your mac in same personal area network via bluetooth or WiFi and then try testing your app sharing messages between simulator and Iphone using any personal network based on Bluetooth or WiFi.
All the combination will work as long as app using "Mutlipeer connectivity framework" are on same personal area network.

Resources