iOS Run time errors (type or namespace name not found) with Xamarin Live Player and Hanselman.Forms

I created an app based off the Hanselman Forms app. I'm trying to get it to run with the new Xamarin iOS Live Player and i'm getting runtime build errors.
To make sure it wasn't something i broke i did a fresh install of Hanselman Forms and Visual Studio 2017 Preview and connected the iPhone live player.

The build compiles fine with VS. Trying to run the debug app with Live Player on iPhone gives the following errors.

The following errors were encountered when building and running your app:

• TweetStore.cs: The type or namespace name 'ITweetStore' could not be found (are you missing a using directive or an assembly reference?)
• TweetStore.cs: The type or namespace name 'Tweet' does not exist in the namespace 'Hanselman.Portable' (are you missing an assembly reference?) • LaunchTwitter.cs: The type or namespace name 'ILaunchTwitter' could not be found (are you missing a using directive or an assembly reference?)
• AppDelegate.cs: The type or namespace name 'App' could not be found (are you missing a using directive or an assembly reference?)

OK

The packets have been refreshed. I've removed the bin/obj files to do a fresh build.
I've removed the reference, built clean, got similar errors in VS, added the reference back in and the VS build succeeds.
Android works fine.
The MasterDetailForms solution builds and displays on the iOS live player. The difference I see there is that it's not using a PCL.

Any ideas as to what i'm missing?

Best Answer

Answers

  • PrullebakPrullebak NLMember ✭✭

    Already an update on this?

  • DevvDevv USMember ✭✭

    Has this been corrected?

  • AlvaroRivoirAlvaroRivoir USMember ✭✭
    edited July 2017

    I just updated visual studio preview (15.3.0 Preview 3.0) to the latest version and I'm still having the same problem.

  • AlanJonesRiosAlanJonesRios USMember ✭✭

    Same errors with PRISM.

  • SheemuSheemu USMember ✭✭

    same errors with me ?

  • This error is still happening, any workaround?

  • RonFreschiRonFreschi USUniversity ✭✭

    Just grabbed latest cycle 15.4 update for VS Mac and I'm still seeing the namespace not found issue

  • ArashDaneshvarArashDaneshvar USMember
    edited October 2017

    Same here with latest version. Actually it returns error for all my custom renderers.

  • Simba.MupfunyaSimba.Mupfunya BEMember ✭✭

    The error is still prevalent, xamain forms (2.4.0) and Prism unity.
    Any status update about this?

  • TDenisTDenis USMember ✭✭

    same errors with me too, any ideas?

  • TDenisTDenis USMember ✭✭

    @JamesMontemagno said:
    The next update for iOS has a lot of enhancements around this to fix up this issues. It is in review now.

    "next update" - in which year will this update?

  • JamesMontemagnoJamesMontemagno USForum Administrator, Xamarin Team, Developer Group Leader Xamurai

    Simply sign up for the Test Flight version for now: https://xamarinhq.wufoo.com/forms/live-player-alpha-program-agreement/

  • AlinMaiorAlinMaior USMember ✭✭

    @JamesMontemagno said:
    Simply sign up for the Test Flight version for now: https://xamarinhq.wufoo.com/forms/live-player-alpha-program-agreement/

    Hi,

    I can't get past this error.
    I've signed up for the alpha program twice already in the last 2 weeks and I still haven't got my invite.

  • JamesMontemagnoJamesMontemagno USForum Administrator, Xamarin Team, Developer Group Leader Xamurai

    I processed them last week and again today :)

    I just pushed out a new version (1.2.80) to google play which now supports .NET Standard project types.

    For iOS the Test Flight Fast Ring version supports it as well.

  • TDenisTDenis USMember ✭✭

    Has anyone managed to get around this error?

  • DaSeDaSe USMember
    edited December 2017

    @TDenis said:
    Has anyone managed to get around this error?

    Nope! Unbelievable, isn't it?
    Even fresh blank Xamarin Forms projects are broken out of the box in VS 2017 Pro 15.5.1.
    No solutions anywhere. Will post back here if I find anything .. been two days working on this now ..

    -D

    P.S: Every example Xamarin solution I've tried (like CRM) fails to build as well.

  • TDenisTDenis USMember ✭✭

    @DaSe said:

    @TDenis said:
    Has anyone managed to get around this error?

    Nope! Unbelievable, isn't it?
    Even fresh blank Xamarin Forms projects are broken out of the box in VS 2017 Pro 15.5.1.
    No solutions anywhere. Will post back here if I find anything .. been two days working on this now ..

    -D

    P.S: Every example Xamarin solution I've tried (like CRM) fails to build as well.

    from someone it works))) I'm an old-fashioned emulator on MAC OS. If you find solutions, I beg you, thank you! :)

  • NapalmNapalm USMember

    I can confirm the latest batch of live player errors goes away with the current test flight version of the app. Gotta stay bleeding edge with live player and xamarin to ensure functionality apparently.

  • Windows 10
    VS 15.5.2
    I am running into Same error when using Xamarin Live(iOS) and VS 15.5.2.

    'AppDelegate.FinishedLaunching(UIApplication, NSDictionary)': no suitable method found to override
    The name 'LoadApplication' does not exist in the current context
    The type or namespace name 'App' could not be found (are you missing a using directive or an assembly reference?)
    The type or namespace name 'Xamarin' could not be found in the global namespace (are you missing an assembly reference?)

  • JamesMontemagnoJamesMontemagno USForum Administrator, Xamarin Team, Developer Group Leader Xamurai

    @MithunAshwathappa if you read above you should grab the latest off TestFlight: Simply sign up for the Test Flight version for now: https://xamarinhq.wufoo.com/forms/live-player-alpha-program-agreement/

Sign In or Register to comment.