Forum Xamarin Xamarin.iOS

Release version goes to background no error message.

I have a release version of my app that launches and goes directly to the background. No crash log is being created.
This same code is running fine in the debug mode and on the android.

The app is running through this code at start:

    public static IContainer Container { get; private set; }

    public App()
    {
        var builder = new ContainerBuilder();
        RegisterXamService<IFileSystem>(builder);
        RegisterXamService<INetworkService>(builder);
        RegisterXamService<IPhoneService>(builder);
        RegisterXamService<IMediaPicker>(builder);
        RegisterXamService<ISettings>(builder);
        RegisterXamService<IUserDialogService>(builder);

        var _app = typeof(App).GetTypeInfo().Assembly;
        builder
            .RegisterAssemblyTypes(_app)
            .AsSelf()
            .InstancePerDependency();
        try
        {
          Container = builder.Build();
          BuildCaches();
          this.MainPage = new NavigationPage(new HomePage());
        }
        catch(Exception e)
        {
            this.MainPage = new ErrorPage(e.Message );

        }

    }


    public static T Resolve<T>()
    {
        bool c = Container.IsRegistered<T>();
            return Container.Resolve<T>();
    }


    private static void RegisterXamService<T>(ContainerBuilder builder) where T : class
    {
        builder
            .Register(x => DependencyService.Get<T>())
            .SingleInstance();
    }

HELP where should I be looking?

Answers

  • PatNewsomePatNewsome USMember

    BuildCaches() function is call to go to web service and retrieve data. Same behavior occurs when this line is commented out.

  • JGoldbergerJGoldberger USMember, Forum Administrator, Xamarin Team, University Xamurai

    Looking at the iOS Device log in real time may indicate what is happening. If this is with a simulator, then you can look in the Console app on the mac to see any errors generated by the simulator. Select the name of the simulator you are using under the Device section. Alternately if deploying to a device, you can use the device log pane in Xamarin Studio to see the iOS device log in real time. To open the pane, use menu View->Pads->Device Log than then in the Device log pane, choose the device whose logs you want to see.

Sign In or Register to comment.