Chromecast button missing on iOS 12 Xcode 10 - chromecast

We're using Google Chromecast SDK (google-cast-sdk) on our iOS Application over a year, but when I updated to iOS 12 and Xcode 10 button has disappeared.
Does anyone face the same issue before?

Here is the problem and solution
Xcode 10 Warning: If developing using Xcode 10 and targeting iOS
devices running iOS 12 or higher, the "Access WiFi Information"
capability is required in order to discover and connect to Cast
devices
You need to ensure that the Access WiFi Information switch in the Capabilities section of the target is set to On.
That's all you need!

Related

Chrome cast icon not showing on iOS devices having iOS 12 or above installed

The issue of chrome cast icon not showing up, occurs on devices having iOS 12 installed.
Though on simulator the cast icon shows up.
Thanks.
You have to enable "Access Wifi Information" in capabilities tab of your applications target settings in Xcode 10.
Enabling this makes chrome cast devices discoverable by GCKCastContext's discovery manager. The cast icons shows up when any cast devices gets discovered.

Apple TV wireless debugging Unable to connect

I am trying to pair my apple TV (4th Gen) running tvOS 11.1 with Xcode 9. After entering the pairing code, Xcode tries to setup the Apple TV for wireless debugging and enabling development mode, but fails with the error
"An error was encountered while attempting to communicate with this device. (End of file.)" See below image
Note that I was able to pair with my apple TV successfully and run an app on it couple of weeks ago using Xcode 9 wireless debugging feature. Wireless debugging works fine for iphone and iPad. Now, I seem to be having problem with my Apple TV.
UPDATE: Now I have tried even resetting my AppleTV, still same issue.
Xcode 9 Devices and Simulators Window
I have tried restarting my apple TV and tried reconnecting it with Xcode multiple times, but I get the same error always.
Do I need to reset my apple TV or is there any other work around available to fix this issue ?
As it turned out, I had to use Xcode beta version, as I was installing app on the beta tvOS version. I didn't notice that Apple TV was updated to tvOS 11.1 which is in beta at the moment.
Solution: Using Xcode 9.1 (beta) to install the app on Apple TV 4 worked perfectly.

Xcode 7 supporting watch OS2 with iOS8 and iOS9 support

Can I provide support with only watchOS2 app having iOS8 support ?
I am supporting iOS8 and iOS9 both in my iOS app.
I need to add watch app with WatchOS2.
User who installs in iOS9 devices are able to use watchOS2 app, but people who are using iOS8 app can't use my watch app, is this possible ?
I am confused at this point because I have to provide support for iOS8 and iOS9.
I need to take a decision quickly, any help is appreciated.
You will need to have iOS 9 for WatchOS 2 to work.
Once you update OS of your watch to Watch OS 2.0 and after it, if you try it to pair with iOS 8 version iPhone, then it will not work and Apple Watch app would advise you that your version of iOS is out of date. It would not allow you to proceed with pairing until you had updated your iPhone software to iOS 9 (Whatever latest version of iOS 9.0).
If you want to support Watch OS 1 and Watch OS 2 then you have to set separate target for both of them.

Xcode 6 GM with iPhone 5s (iOS 8 GM) - 0xE8000070

I'm using Xcode 6 GM Seed (build 6A313) with iPhone 5s (Model A1530, iOS 8 build 12A365). I connect the iPhone via USB lightning cable. But in Xcode, it shows as: "iPhone 5s (unavailable)".
Further investigation: I open Xcode menu > Window > Devices, it shows the following error:
An error was encountered while enabling development on this device.
Please try rebooting and reconnecting the device. (0xE8000070)
I reboot and reconnect my iPhone 5s, the same error is shown. This device was used for development in previous Xcode 5, and shows no problem at all.
What should I do? I want to try my apps in iOS 8 device.
If you are using Xcode-beta 7.1 and want to run app on iOS 9.0 like me you will also get the same error. The solution is:
Use corresponding iOS 9.1-beta.
Use Xcode 7.0
Run on simulator.
The problem is resolved after I updated iTunes to version 11.4 via Software Updates.
The Xcode error message is misleading.
In my case, during 2 years developing, my phone has several test app with name (null). you can only see a default Xcode app icon in app list in Setting. I had tried updating Xcode, but not work. finally I delete these null name apps, then Xcode - device can connect it without warning sign. Run test app won't get the error in question. only my case. share it in case you encounter in future.

"Installation of apps is prohibited by a policy on the device." error when running an Xcode 6 app on an iPad (iOS 8)

I've been developing an app on my iPhone recently and today I upgraded our iPad to iOS 8 so I could test the app on it. Xcode gave me the following error, though:
Any ideas what could be causing this error?
Try checking restrictions in your device Settings.
Recently in XCode 10.1, while attempting to run a project on a device, was presented with this same message.
In iOS 12.1.3, the device setting to allow installation of the app, is:
Settings->Screen Time->Content and Privacy Restrictions->iTunes and App Store Purchases->Installing Apps-->Allow

Resources