Bug 59252 - [Sample - ARKitSample] [iOS 11 - Xcode9 Beta 6] Getting Error CS1929: while trying to deploy the "ARKitSample" sample app.
Summary: [Sample - ARKitSample] [iOS 11 - Xcode9 Beta 6] Getting Error CS1929: while t...
Status: RESOLVED FIXED
Alias: None
Product: iOS
Classification: Xamarin
Component: Samples ()
Version: XI 10.99 (xcode9)
Hardware: Macintosh Mac OS
: Normal normal
Target Milestone: Xcode9
Assignee: Larry O'Brien
URL:
Depends on:
Blocks:
 
Reported: 2017-09-06 12:43 UTC by Saurabh Paunikar
Modified: 2017-09-19 21:14 UTC (History)
10 users (show)

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


Attachments
Attached are the logs generated during defect reproduction (3.76 KB, application/x-zip-compressed)
2017-09-06 12:43 UTC, Saurabh Paunikar
Details


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:
RESOLVED FIXED

Description Saurabh Paunikar 2017-09-06 12:43:15 UTC
Created attachment 24594 [details]
Attached are the logs generated during defect reproduction

Description:
Getting Error CS1929: 'MatrixFloat4x4' does not contain a definition for 'ToSCNMatrix4' and the best extension method overload 'Matrix4Extensions.ToSCNMatrix4(Matrix4)' requires a receiver of type 'Matrix4' (CS1929) (ARKitSample)

-------------------------------------------------------------------------------------

Steps:
1. Download the ARKitSample sample from https://github.com/xamarin/ios-samples/tree/master/ios11/ARKitSample.
2. Try to deploy the app on ios 11 simulator / Device.

Actual: Getting error while deploying the app.

Expected: App should deploy successfully.

-------------------------------------------------------------------------------------

Environment:

Visual Studio Enterprise 2017 for Mac (Preview)
Version 7.1 Preview (7.1 build 1287)
Mono 5.2.0.215 
Xamarin.iOS : 10.99.7.27 (Visual Studio Enterprise)
Xamarin.Mac : 3.99.7.27 (Visual Studio Enterprise)
Xcode 9.0 (13238.4) Build 9M214v

Detail Build Info: https://gist.github.com/anonymous/6c18dc0cb3174d5368ee468973e070dc

-------------------------------------------------------------------------------------

Screencast : https://www.screencast.com/t/1bloixbvBug

Reproducible - 100%

-------------------------------------------------------------------------------------

Test plan: https://testrail.xamarin.com/index.php?/plans/view/51815

Test case link:https://testrail.xamarin.com/index.php?/tests/view/18436359

Attaching the logs for more detail.
Comment 1 Rolf Bjarne Kvinge [MSFT] 2017-09-06 12:58:55 UTC
Some of the ARKit API changed in the latest beta; this means the sample must be updated accordingly.
Comment 2 Larry O'Brien 2017-09-06 17:10:22 UTC
I am currently in the process of porting our ARKit demos to use the new bindings. I expect the work to be done in the next few days.
Comment 3 Rolf Bjarne Kvinge [MSFT] 2017-09-07 09:41:30 UTC
@Larry, if there's any particular Matrix API you need, I can look into adding it.
Comment 4 Larry O'Brien 2017-09-11 18:26:05 UTC
Fixed in 591eb98abdc33aa4308ad07cf00ef14c8deab826
Comment 6 Alex Soto [MSFT] 2017-09-14 15:47:12 UTC
@Larry, I think you will need a newer build, we made some changes to Vectors and Matrices -> https://github.com/xamarin/xamarin-macios/pull/2668
Comment 7 Larry O'Brien 2017-09-14 18:20:14 UTC
@alex I thought the changes were not integrated in this preview? The `NMatrix` stuff is released?
Comment 8 Larry O'Brien 2017-09-14 20:04:45 UTC
The preview release is 10.99.8.24 

10.99.8.24 contains the Simd namespace and matrix types developed and used in the beta period. The (breaking) change to introduce OpenTK.NMatrix* types came somewhere between .24 and .38. 

For _this week_, the source code on the public site is compiling and runs (confirmed by @craig and I 2017-09-14). 

When we ship final release, I will need to change the source code to use the new types but I do not think I should do that _this_ week. I've changed the status to "IN_PROGRESS" to capture the ambiguity.