How can I switch on Bluetooth on the iOS Simulator? [duplicate] - ios

This question already has answers here:
Does the iPhone simulator in Xcode support Bluetooth Low Energy?
(7 answers)
Closed 7 years ago.
I'd like to know, how I can activate Bluetooth on the iOS Simulator. I use XCODE 7.2.1 on a MacBook pro. If I enter the settings, I have no Bluetooth option to set. Could somebody help me ?

You can't activate it because it doesn't exist. They dropped support a few years ago because of all the issues they had with it. You have to use a real device unfortunately.
This was confirmed by an Apple staff member as recently as a few months ago:
https://forums.developer.apple.com/thread/14983

Related

Limiting app device target in the app store to iPhone only? [duplicate]

This question already has answers here:
App on appstore has iPad support when iPhone family set?
(2 answers)
Closed 7 years ago.
I'm developing an app for the iPhone only, however I notice in the app store it list my app as "Compatibility: Requires iOS 8.1 or later. Compatible with iPhone, iPad, and iPod touch.". When I inspect my project file, it say's devices "iPhone".
When I searching the app store with the same device, I can't find it, however if I follow the link off the website I can install it on the iPad.
Problem is I did not design it for anything else other than the iPhone, so there is some UI issues. Is there somewhere else I need to change something to have the App Sire only list it as iPhone compatible?
It's fine. Every iPhone app can be launched on iPad. It will looks like that:

Is there any way to completely turn off an ios device programmatically in xcode? [duplicate]

This question already has an answer here:
How to power iOS device off [duplicate]
(1 answer)
Closed 7 years ago.
I want to make an application that would turn off an iphone at a set time every night;
Absolutely not! (Unless we are talking about a jailbroken app.)
Apple has a very strict sandboxing approach for third party apps. To access the system, you have to use the provided iOS APIs and none of them offers this kind of control.

Backwards compatibility of Swift for versions back to iOS 5 [duplicate]

This question already has answers here:
Swift with iOS 5 deployment target [duplicate]
(2 answers)
Closed 7 years ago.
I haven't studied Objective-C yet, except some basics. I like backward compatibility, so I would like my iOS app work for example with iPod Touch 3rd Gen. (iOS 5) and the new iPhone 6 (iOS 8) also. In that case do I need to use Swift yet?
Edit: My idea at the moment is to make cheap apps for iOS, Android and Windows Phone for developing countries and others as well. That is why I'm interested in backward compatibility (not Swift development), because there are people who buy used devices and still might be able to buy apps to those devices. When I asked this question I was uncertain how far back I can go with iOS versions.
Swift's min deployment target is iOS 7. So, no, if you want to support iOS 5 (which would be completely nuts IMHO), you'll need to use objective C.
Also, it doesn't look like Apple will remove support for objective C in any near future, so there is no need to switch to Swift anyway, you are still free to decide which language you prefer.

Does iOS 8 include an NFC SDK for developers? [duplicate]

This question already has answers here:
Reading NFC Tags with iPhone 6 / iOS 8
(7 answers)
Closed 8 years ago.
Today, Apple announced eminent release of the iPhone 6, which will include a NFC chip.
Did Apple announce an NFC SDK for developers to utilize the technology?
It does include PKPayment Class (it contains payment information encrypted in the payment token) and related classes Passport Kit, which is what is used for payments. There are API's for no direct communications with the chip.
Apple has not announced any new SDK other than WatchKit on today's event. iOS 8 and Xcode 6 (with iOS 8 SDK) has went GM though, so if it's not there, it won't be there for the final release of iOS 8.

How do I enforce minimum requirements for my iOS app? [duplicate]

This question already has answers here:
How to set minimum required iOS version?
(3 answers)
Closed 9 years ago.
I have an iOS app that requires at least an iPad with iOS 5. I don't even want people who have older devices (and hence no gamekit) to be even able to download the app -- it will not run.
Is there a way to enforce this in the app store?
The minimum iOS version supported by an app is determined by the Deployment Target setting in its build target. Set this to 5.0.
To restrict the app to the iPad, set its Devices setting to "iPad" rather than "Universal".

Resources