lihaosky / google-cast-sdk

Automatically exported from code.google.com/p/google-cast-sdk
0 stars 0 forks source link

skipping lines of code in Xcode 6.1 with Swift #458

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Connect your mac to an iphone
2. Run the Xcode project on your iphone you just connected
3. Select your google cast device in your local network and watch the logs. You 
wil see at the end "connected"
4. Quick rerun your xcode project on your iphone when the splashscreen is still 
displaying on your big screen (receiver)
5. Now you will see "connected" and "application has launched".
6. Click the cast button (settingscontroller)

What is the expected output? What do you see instead?
What I want to see at the first launch of the app is both the logs "connected" 
and "application". It's only appearing when you click rerun the app for the 
second time. 
For the first time when you start the app, it wil skip a peace of code.

What version of the product are you using? On what operating system?
GoogleCastSDK-2.5.1-Release on iOS 8.1.2 on iPhone 6. It also occurs in the 
emulator.

Please provide any additional information below.
For more explanation, I made an stackoverflow question about it.
http://stackoverflow.com/questions/27529323/chromecast-objectforkey-with-swift

Original issue reported on code.google.com by meanmach...@gmail.com on 19 Dec 2014 at 11:58

Attachments:

GoogleCodeExporter commented 9 years ago
Launching a receiver application isn't instantaneous. If you restart the sender 
application quickly, before it has finished launching the receiver app, then 
obviously you won't see the application connected callback.

Original comment by mlind...@google.com on 20 Dec 2014 at 12:58

GoogleCodeExporter commented 9 years ago

Original comment by anad...@google.com on 20 Dec 2014 at 10:24