This emulator is available for free and even you can purchase its premium version. For mac, it comes with an app simulator for iOS, watch/iMessage/tvOS.This Xcode is free for download, and one of the best apps for mac users and developers. Electric Mobile Studio. This emulator gives you a web kit and chrome debugging tool so you can test your web apps. You get a full-fledged emulation for IOS devices and other applications. You may connect a real device to your Mac using a cable, or for iOS or tvOS apps, connect it over WiFi after you pair it with Xcode. For macOS apps, choose a scheme, then click the Run button in the toolbar. You can also run SwiftUI apps in the simulator or on a device using the controls in the preview. The iOS simulator is now installed and running on your Mac, as shown below. As mentioned earlier, you’ll notice that the simulator is missing a lot of the applications and settings that come with every iOS device. Rotating the Simulator. Every iOS device has a gyroscope that keeps track of the screen’s orientation.
Libraries and Frameworks
The SDK requires the following frameworks for a successful compilation:
Platform | Connection | BBDevice API | Framework |
---|---|---|---|
iOS | Bluetooth Classic, Bluetooth LE |
|
|
iOS | Audio, Bluetooth Classic, Bluetooth LE |
|
|
macOS | Bluetooth LE, USB |
|
|
BBDeviceSPoC.framework
To support Software-Based PIN Entry (SPoC), add the BBDeviceSPoC.framework
under the project's Embedded Binaries
section:
Build Settings
The SDK contains C and C++ files, to let Xcode compiler recognize all the library files, your app need tomake a few change in the project's Build Settings
:
Objective-C
- Set the
C++ Standard Library
toLLVM C++
. - Renaming the filename extension of the files that use the SDK from
.m
to.mm
.
Swift
- Set the
C++ Standard Library
toLLVM C++
. - Create a file
YourProjectName-Bridging-Header.h
that imported all the required SDK.h
files and set theObjective-C Bridging Header
to$(SRCROOT)/YourProjectName/YourProjectName-Bridging-Header.h
. - Add
-lstdc++
toOther Linker Flags
.
Info.plist
The following key-value pairs are required in your app's Info.plist
:
Macos Ios Simulator Torrent
Key | Value | Description |
---|---|---|
NSMicrophoneUsageDescription | When the system prompts the user to allow access, this string is displayed as part of the alert. | Privacy - Microphone Usage Description. |
NSBluetoothPeripheralUsageDescription | When the system prompts the user to allow usage, the value that you provide for this key is displayed as part of the alert. | Privacy - Bluetooth Peripheral Usage Description. |
NSLocationWhenInUseUsageDescription and NSLocationAlwaysAndWhenInUseUsageDescription | When the system prompts the user to allow access, this string is displayed as part of the alert panel. | Privacy - Location Usage Description. The key is required for BBDeviceSPoC API. If your app supports iOS 10 and earlier, the NSLocationAlwaysUsageDescription key is also required. |
UIBackgroundModes | audio , bluetooth-central (Bluetooth LE), external-accessory (Bluetooth Classic) | Required background modes. |
UISupportedExternalAccessoryProtocols | com.bbpos.bt.wisepad (Bluetooth Classic) | Supported external accessory protocols. Required for MFi devices WisePad , WisePad 2 and WisePad 2 Plus only. |
UIBackgroundModes
For better user experience, the app can enable background modes to allow the Audio/Bluetooth to continue to work when the app goes into the background. This prevents interruption on the data when the phone Home button is hit accidentally.
For Audio communication, a red warning bar will appear when the app enters background mode while the audio is still in use. When the app enters background mode, the SDK will stop the audio after a certain period of time (normally within 10 seconds). If the SDK detected the device is still plugged, it will try to restore the volume to previous value and a system volume pop up may appear during the restore process. When the red warning bar disappeared and the transaction is not yet completed, the error AudioBackgroundTimeout will be triggered.
UISupportedExternalAccessoryProtocols
Ios Emulator For Mac
Device Compatibility
Required for MFi devices WisePad
, WisePad 2
and WisePad 2 Plus
only. Including the key in Info.plist
for non-MFi registered device will cause warning during submission to the App Store.
Before submitting your iOS app for distribution, Apple requires all iOS apps that communicate with Apple approved MFi devices via Bluetooth Classic
be registered with Apple. This whitelist process can take 3-5 business days. To request whitelisting, submit your app information to BBPOS through https://developer.bbpos.com.
iOS Simulator
Mac Ios Simulator App Store
The iOS simulator is designed to assist you in designing and testing your app. To run the app in simulator, include all the -simulator.a
libraries in the SDK zip to the app's project folder. However, depending on the Mac hardware differences and the simulated iOS device/version differences, the audio communication may not perform the same as testing on a real device. Additionally, simulator doesn’t support the Bluetooth
frameworks and should not use for SPoC
.