Bug 11587 - "CoreAnimation" iOS sample gives build error.
Summary: "CoreAnimation" iOS sample gives build error.
Status: VERIFIED FIXED
Alias: None
Product: iOS
Classification: Xamarin
Component: Samples ()
Version: 6.3.x
Hardware: Macintosh Mac OS
: High major
Target Milestone: 6.4 (async)
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2013-04-04 10:58 UTC by narayanp
Modified: 2013-04-08 04:44 UTC (History)
3 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
VERIFIED FIXED

Description narayanp 2013-04-04 10:58:05 UTC
On building CoreAnimation iOS sample, it gives build error.

Build error:"Error CS0120: An object reference is required to access non-static member `MonoTouch.CoreAnimation.CAKeyFrameAnimation.FromKeyPath(string)' (CS0120) (CoreAnimation)"

Build output: https://gist.github.com/atin360/923f05681812ab052ef1

Environment:
All Mac 
X.S 4.0.3.13
X.iOS 6.3.2.16
MonoFramework-MDK-3.0.8.macos10.xamarin.x86

App info:
monotouch-samples-master-abdfbe8f14e62af4c060fb2b46f7dfcc424e905b

Regression Status: Regression. This issue does not exist with Stable MT 6.2.1.201, with stable MT 6.2.1.201 application build and deploy successfully.
Comment 1 PJ 2013-04-05 12:30:32 UTC
Works for me on 6.3.3.16. They must have fixed this. Please Verify when you get that one or at later build.
Comment 2 PJ 2013-04-05 12:53:33 UTC
Heyo actually I lied - the fix is to change line 60 in LayerAnimationScreen.xib.cs to use GetFromKeyPath instead of FromKeyPath.

This will be fixed on a branch of monotouch-samples called master-3.0. This is not done yet, so you can just make the change locally to continue testing. Thanks!
Comment 3 PJ 2013-04-05 14:16:49 UTC
Fixed in 8b1142877404d4ec6d142b49441dde8a39aff4f0 on monotouch-samples/master-3.0

Please use this branch for all iOS 6.3.x+ testing going forward. Thanks!
Comment 4 Nischal 2013-04-08 04:44:28 UTC
Today with the latest builds:

MT 6.3.3.2
XS 4.0.3.13
Mono 3.0.8
Sample: monotouch-samples-master-3.0-0f140c2ea0135d2ae98af2a99194b6653ebbfd23

And now the build errors are not appearing.

Hence, closing this issue.