Replay Kit iOS not working properly? - ios

In ios 11 beta, we have an option for screen recording in the control panel. While selecting it, it should show the app lists which has enabled with Broadcast extensions(Replay kit).
But, in ios11 beta, it does not show any apps.
I have already installed the "MobCrush" app in my device. In wwdc 2017, apple showed the ReplayKit demo with this app only.
I don't know if any fix in the next version updates. Please share anything you know guys.

I don't know how Tamil solved the issue, but in my case by restarting the device it started showing my own Broadcast Extension in Screen Recording setup. But still no luck for MobCrush. Maybe it should be built with new XCode?

Related

How do I fix a Net.stream iOS crash

I am a teacher who has developed an app that streams video tutorials to mobile devices. The app has been around for a while and was originally built in CS6 using AIR SDK 20. More recently I have moved to CC and published the app using CC and AIR SDK 23 and 24 (including beta 24.0.180).
The app now crashes on IOS first access after installing the app. When you open the app up again, it opens but will crash when pulling up the control centre, pulling down the notification bar, clicking on the home button or minimising the app with a pinch.
I have stripped out the code and have isolated the problem to video streaming within the project. The issue is replicated using the xml and swf file found here: Dropbox -
https://www.dropbox.com/sh/h4rht8ksps2k1gg/AADdlFLst5CALJgl6oUsziIUa?dl=0
(everything has been stripped from the project so I appreciate that no video will play - didn't need it to play to replicate the issue). The app has been installed on iPad Air with IOS10 and iPad Mini 1 IOS9, but my students have also experienced the issue on iPhones running IOS7 +.
Any help with this would be much appreciated as my students would like to use the app without the issues.
Kind regards
Matt

In Xcode I see (no paired Apple Watch) even though the watch is paired and the watch's UDID is registered

My phone is listed as an ineligible target in Xcode and out to the side it says (no paired Apple Watch).
My Apple Watch is registered under iOS Devices. I can see the UDID. The watch has watchOS 2.0 installed and my iPhone 6 has iOS 9 installed. The iPhone pairs just fine with the watch and I can install apps.
I've tried rebooting both the watch and the phone. I've tried rebooting Xcode. I tried creating a new scheme in Xcode but it still shows (no paired Apple Watch). I can choose Product/Destination and the app will show up on the phone, it just won't install the watch app...just sits there saying "Installing...".
I had paired my watch with a new phone and run in to this problem. I removed all files in ~/Library/Developer/Xcode/watchOS DeviceSupport/ and it solved it!
2022, 5 year anniversary: For the past 6 months, I consistently have to sit through one hour of "Preparing Apple Watch for development via iPhone" even when I'm not even debugging a Watch app. Needless to say, this also makes it impossible to run apps on device via Xcode. After about 3 hours (basically half my workday) it starts to work. Once I remove the app for testing, or unplug the iPhone, I have to wait a few hours again. Never in my life have I felt so useless as my job at this point basically consists of watching a loading indicator for hours until the process is done - only for the whole thing still not working most of the time.
Fun fact: Apple on Twitter claims they use the same devices and tools for their Watch apps.
2021: All Quiet on the Western Front. It's been 4 years since my first response. I've now had a good run during December and the first 2 weeks of January. It was so good that I haven't closed the simulator a single time and kept my iPhone connected and never turned off my mac. This worked for 3 weeks but then my iPhone ended up in a boot loop and restoring fails. I bought a new iPhone and now I also can't really connect anymore. See y'all in 2022 :)
2020: At this point I can't even get WCSession to send data on the Simulators anymore. Message from Watch to iPhone with replyHandler works, message from iPhone to Watch fails with WCErrorCodeWatchAppNotInstalled. Every day starts with rebooting numerous times and deleting and setting up new iPhone + Watch combinations. Tried on a freshly installed macOS with my friend's devices and of course no luck. But it's clearly my fault. Submitting a bug report doesn't do anything as they only keep telling you that everything is working on their end and they will close this ticket now. I only wanted to help.
2019: New iPhone, even worse. Now, every single component in my development has changed since 2017 and I'm still stuck targeting the simulator with every build. Apple, why?
2018 II: nothing works for me anymore. Contacted Apple loads of times and Apple Watch seems to have moved to Playground's neighborhood as it's just loading/running but never really running. Bought a second Mac, new project, nothing works. Sad.
2018: The last couple of days I have been really successful doing the following:
On your iPhone:
turn off wifi
turn off bluetooth
turn on wifi
turn on bluetooth
On your Watch:
turn on flight mode
deactivate flight mode
Most of the times it didn't take longer than 30 seconds to get the connection back on track. I think it's the "Watch flight mode"-thing but I never change a (somewhat) running system so this will be my procedure from now on. My 2017-reply still seems to be of help to some people:
2017: If it SOMETIMES shows, and often doesn't, it might be due to the fact that you closed iTunes
I noticed what I often did after reconnecting: closing iTunes. Immediately, the watch turned to be "unpaired". Reconnecting the USB cable but leaving iTunes open has helped me since.
What worked for me is to go to the WatchKit App target and update the Team with the proper account. Once I did that, my device showed as eligible.
Open the camera companion app on the watch. For me this works. Seems like the app starts a phone connection.
It seems that you need to tap on the "Trust this computer" message on Apple Watch. This solved my problem. Also check if XCode displays the message "Indexing..." or "Loading symbols...": you need to wait until the operation is over.
It looks like a bug in Xcode!
Go to ~/Library/Developer/Xcode/watchOS DeviceSupport/ and create a folder named "Watch1,2 2.0 (build number)" and for 'build number' use your watchOS build number. Inside this folder create another folder named "Symbols".
So for the latest build: ~/Library/Developer/Xcode/watchOS DeviceSupport/Watch1,2 2.0 (13S5305d)/Symbols.
Maybe clean & restart Xcode.
For me it was an issue of trusting the computer from the watch. I had to reboot my watch to get the "trust this computer" request.
In my case I believe it was because I had Connect via network enabled for the iPhone that's paired with my new watch.
Upon disabling the wireless connect feature, then connecting the iPhone to my mac via cable, the watch appeared in the Devices list.
After getting the UUID to register with the Developer Center I re-enabled Connect via Network and the watch was no longer listed on the Devices screen. When I connect the phone via cable, however, the watch info appears.
So if you're using wireless connect, try just plugging the device in via cable and hopefully you'll see your watch in the list. Good luck!
I had to delete my Apple ID from the Accounts tab in Xcode preferences and then re-add it.
What worked for me is just waiting for about a minute. There was no progress bar in Xcode, just wait.
For me helped open iTunes at the MAC and leave it open.
Xcode 9.4.1
Check the phone is connected to the same wifi network as the computer.
I've just spent a few days struggling with this, trying the solutions above. Switched networks, waited a minute, now it works again. Gah.
I have four wifi SSIDs in my home (old house, thick walls, one router won't cover it properly) and it turned out the computer was choosing one, and the phone another.
I have the exact same setup and had the same problem. What seemed to work for me was just unpairing and pairing the watch again. Then Trust this computer on the watch and Xcode started to list it in the menu.
It seems that I updated the watchOS2 beta 5 on top of 1.0.1 which was paired earlier and it just needed to be re-set for watchOS2.
What worked for me was to open Xcode's Projects window and click the Delete button next to the Derived Data line for the currently open project. After that, the target automatically switched to show [My iPhone Name] + [My Watch Name].
My setup: Xcode 7, iOS 9 (public release), and watchOS 2 beta.
Open Watch app on device, scroll down to your app, and make sure to enable show app on apple watch
Setting Correct Provisioning profiles | Certificates | Team, then restarting Xcode worked for me.
You must have connected your Apple Watch with you iPhone by bluetooth, wifi connection won´t work for testing...
I really struggled with this problem but this helped me:
Fix steps :
Unpair my watch
Reboot both iPhone and apple watch
Pair them again,and setup my watch as a new one
Plug (unplug first) iPhone to Mac
On apple watch, say Trust the computer when it asks
Unplug and plug again
Close and open XCode
Open the project and wait a few seconds
I may have had a breakthrough....I turned off WIFI on my Mac and it instantly found the watch 😱
This worked for me (Xcode 11.3.1) :
Open Devices from Xcode
Disconnect iPhone from Mac
Disable bluetooth on iPhone
Re-connect iPhone to Mac
Verify iPhone is showing in Devices.
Turn on bluetooth on iPhone, wait to see that watch is connected on iPhone.
Look in Devices -> your iPhone -> Paired watches -> wait for the watch info to completely show.
At this point I was able to see watch in Xcode.
In some cases also needed to restart Watch & Phone as well.
This worked for me
1. Quit Xcode.
2. Disconnect iPhone
3. Remove cache files at /Users//Library/Developer/Xcode
4. Run Xcode.
5. Connect iPhone again
6. Xcode will start to download the symbol file
Just reconnect my iPhone to my Mac is solved my problem. When i reconnect my iPhone, xcode installed itself missed symbols automatically.
I had a similar issue where Xcode was not detecting my paired watch. Somehow, the beta provisioning profile had managed to get installed onto my phone and for some reason Xcode could not detect the paired watch. As soon as I deleted the provisioning profile, Xcode started to pick up the paired watch.
Creating a new watchOS project lead to download of symbols to resume and finish.
I unplugged the iPhone before "Processing symbol files" operation was finished. So Apple Watch never showed up again.
XCode 9 (beta 4). iOS 10 (beta 4). watchOS 2.2.2.
I just waited several minutes and then - it worked by itself.
WatchOS 4.1, XCODE 9.2.
The solution that worked for me with XCode 10.0: trash the whole Xcode folder in ~/Library/Developer/Xcode, removing only the watchOS DeviceSupport was not enough
New update to this issue. I have recently buy the ray wenderlich book for Watch OS and I have had this problem.
After testing a lot of things, and before delete any files, my working solution is this:
On MAC with Xcode open and with the issue scheme loaded. iPhone plugged in and watch turned on too.
1) On MAC turn off wifi
2) On MAC turn on wifi
3) On MAC turn off bluetooth
4) On MAC turn on bluetooth
I know this solution is above, but is the only way it has worked for me. Hope it helps to any dev too.
Check that Bluetooth is enabled. I restarted my Mac, my phone and my watch and that didn't help. When I looked in settings on the watch I found that Bluetooth was disabled.
In my case, rebooting the watch did not work, but after rebooting iPhone it did.
Xcode Version 12.2 (12B45b) seems to fixed all issues regarding the app transfer from your mac to your apple Watch.

Adobe Air app greyed on iOS 8.1.2

I have an app that is built on top of the Adobe Air and run under iOS. The app worked fine. But recently It stopped properly work. The icon of the app is grayed after the installation. I updated Flex & Air SDK to 4.14 and 17 release. I also changed the app id and took certificates from another Apple ID. I added the device to the list of allowed devices as I done before and built ipa-debug package. After install I get app icon greyed. What reason could cause this behavior? What should I check? I spent two days trying to make it work, but with no success.
Thanx.
There are many informations out there what causes greyed icons on iOS. Some are simple bugs that can be circumvented by a restart of iOS and/or reinstall via iTunes. But I think in your case (and we are talkin AIR here) you should try to read the Console via Xcode (if you can) like suggested here. How you can debug via Xcode is described here in Detail. Feel free to attach more informations about whatever you could receive from that output console.

EAAccessoryManager accessory picker bug

I'm trying to build an app that communicates with an external accessory (over bluetooth). To ensure the app is user-friendly I'd like him not to go to the settings to connect with the accessory but to show the Accessory picker that iOS 6.0 includes.
To achieve that, a simple call to :
[[EAAccessoryManager sharedAccessoryManager] showBluetoothAccessoryPickerWithNameFilter:nil completion:nil];
For now, I'm not using the filter and the completion (both can be nil according to the iOS Class Reference) - even if I tried using them too.
Now the problem is that my accessory appears for 2 to 10 seconds and then disappears from the list until I cancel the popup and show it again. Another problem is that sometimes it doesn't appear at all. I also made sure the device was already paired but not connected.
I tried using another accessory (one that I didn't make myself) and with different devices (iPhone 4, 4S, 5 - iPad - iPod Touch) with no success.
Does anyone has a similar issue? If yes how did you solve it? Is it an iOS bug? Is it an accessory bug?
Thanks for any reply.
I can confirm that iOS 7 BETA 4 has fixed this issue. If you are using the RN 42 APL bluetooth chip (which you must be as its the only one available on the MFI program)
The only thing you need to be aware of is that the firmware on the RN 42 module needs to be 5.36 and above (as it fully supports the iAP protocol)
I have updated my App (that talks to a custom build accessory) and the accessory picker dialog works a charm.... just thought I'd let you guys know!
Just got the answer from Apple to these questions.
Apple said that it's a bug and they are going to fix it with the future release of ios.
Not sure when this will happen. But do not waste time for this as it's bug.
until new fix, work around is pair the devices on the bluetooth setting screen and then use it in App.
I can confirm the bug is still present in iOS 6.1.3
We have designed a custom piece of hardware that uses the RN42 APL module (we are part of the MFI program). We have spoken to Roving Networks (now Microchip) and they have assured us the firmware on their module matches apples requirements... Microchip are still looking into the problem, but we are looking at the possibility that it is a bug with iOS 6.x
I will download iOS 7.0 and try it out... will report back guys
Cheers
Will
I have had the exact same problem and have been unable to solve it for the past week.
I'm using a Roving Networks RN-42-APL-X module, and I changed the Inquiry Scan Window and Page Scan Window of the module I was using to 100%, but still no luck.
showBluetootAccessoryPickerWithNameFilter will sometimes NOT find my device, and when it does, it loses the device anywhere between .5 seconds to 6 seconds after finding it...
2013-03-13 00:45:22.006 EADemo[356:907] BTM: found device "myDevice" 00:08:36:4B:A4:49
2013-03-13 00:45:22.631 EADemo[356:907] BTM: lost device "myDevice" 00:08:36:4B:A4:49

Turn iOS Device into AirPlay Speaker

I'm fiddling with an app, and I'm also aware that apps made by developers that allow an iOS Device to receive an audio stream from another iOS Device or iTunes. So I'd like to implement it and possibly find a method within Apple's guidelines, allowing audio to be streamed. I've tried looking for everything, but I can't find where to start. Any ideas, a place to start, maybe even a point of direction would be great.
chekout the airspeaker project on github.
https://github.com/chenkaigithub/AirSpeaker
I was able to run it on iOS simulator 6.0 and then use my iphone to stream audio.
However if I try to stream from iTunes 11 it does not work ( iTunes lists the device in airplay list but , on selection , prompts with error "airplay device is not compatible with this version of iTunes." )

Resources