Saturday, 25 April 2015

ARDroneSDK 3.1 compiled ok in Yosemite!

As I mentioned in this post, it took me lots of effort to get the ARDroneSDK3 to compile last time. So after upgraded to Xcode 6.3.1 and OS X 10.10.3 Yosemite, and had a few successful quick tutorials with WatchKit, the next thing I tried is to recompile the ARDroneSDK3 again. Downloaded latest code the github source and found it's now "v3.1.0".

Strangely, the first run (-t iOS) failed in just about 36 seconds...

Second run with only "-l curl" just to build the curl library, and it failed too, what the.....

Then tried the 3rd run, again with (-t iOS), for some unknown reason, after an extremely long 15 min 43 sec run it works. What a relief...

Why ? You asked. No freaking idea mate! And again as before, this is just to build the SDK library. You then have to import these library to the sample iOS Xcode project to compile into an iOS App.... Don't have time for that today, probably next time...

WatchKit app has much higher success rate in Xcode 6.3.1 (simulator)

I upgraded my Xcode from 6.3 to 6.3.1, tried the same Hello World app as mentioned in previous post (based on tutorial from Natasha's blog). Still running in iPhone 6 simulator, it was much much quicker and it works all the time. That was definitely a huge improvement!

Then tried this "Maps on the Apple Watch" tutorial from Kristina Tsai's blog, and can see the 6 spinning white circles (for the map) in a few seconds time after clicked on run - makes me a bit excited for a few seconds...

But it just keep spinning and spinning until I get the same "Lost connection to iPhone 6" message again. Did a clean and tried 2nd time, still spins for a long time, got bored and stopped it after about 2-3 min wait.  Luckily at the 3rd attempt, it worked, hurray!
Don't know why, but after that it constantly works in all the following attempts, must be magic!

Also run the "Apple Watch" app in the simulator again, as below, it now shows both WatchKit apps as expected.

Well, at least it's not as frustrated as previous Xcode 6.3. Have you played with WatchKit yet? Come and give it a go! Now, wonder which tutorial should I try next...

Be careful with Apple Watch (while holding sharp stuffs)


Hello World WatchKit app "occasionally" works in Simulator

Finally installed Yosemite, and upgraded to XCode 6.3, first thing I tried was to create a WatchKit app using "File => New => Project..." menu options. But I couldn't find the option for Apple Watch and was a bit confused at the first.

Later looked at the Natasha The Robot "Hello World" tutorial, then realised the option is only available after you created the new projects, then select "File => New => Target..." menu option, since at this stage it's not native app yet and can only be treated as an external display like the Apple TV.

After staring at the black box for a long time plus a few restarts, finally got the simple Hello World WatchKit app working in iPhone 6 Simulator as shown below. 

It's definitely not a smooth ride. Sometimes I get this "MobileCal quit unexpectedly" error

Sometimes I get this "Lost connection to iPhone 6" message. And most of the time it's just a black box sitting there, staring back at me...

If I click on the "WatchTest" icon manually to run it from inside the simulator, it just starts up, show a blank screen with white background and nothing happened. Later, noticed I can also run the "Apple watch" app inside the iPhone 6 simulator. 

As shown below, it shows the Hello World WatchKit app name in the "WatchKitSettings" table. This is probably done through the built-in WatchKit, which links the app with the "Apple Watch" app on the iPhone 6 simulator.

Clicked on the "WatchTest" icon and it shows the option of "Show App on Apple Watch" turned on by default, which I believe may be it should be on all the time for the output to be displayed on the watch properly?

Tried turning it off just for fun, and another line saying "GIZMO_APP_UNINSTALLING", wonder what does that mean...

Turned it on again, and the text changed to "GIZMO_APP_INSTALLING".

Not sure if everyone is having better/worse experience than me, from the comments on Natasha's blog, looks like quite a lot of them are unsuccessful - only a black box... My advice will be: (1) wait for 3-5 min, (2) try "Product => Clean" and try again (3) try shut down and restart the simulator.

I guess similar to Swift, WatchKit is probably still in it's early stage and not very matured yet based on my experience. May be should wait for next 2-3 updates?

Wait, just noticed Xcode 6.3.1 been released, will upgrade and see if this makes any difference.

Sunday, 19 April 2015

Xcode 6.3 does not support OS X 10.9.x

This is the Nth time - upgraded my phone to iOS 8.3, then tried to deploy an Unity app and painfully found that Xcode 6.2 does not support iOS 8.3. Great, another Xcode upgrade, just upgrade to Xcode 6.3 should fix the problem.....

No, it's actually much worse than that, Xcode 6.3 does not support OS X 10.9.x, was forced to migrate the whole OS to OS X 10.10 Yosemite.... What a pain...