Neelam Prajapati
Neelam Prajapati

Reputation: 3802

app terminates after launched in ios device in xamarin

I am trying to debug my xamarin application in ios device.but after lunch successfully it terminates and debugger gets detached.

Message in output window is :

Launching 'FormBot.iOS' on 'Testsoft's iPhone'... The app has been terminated.

    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">

    <dict>
    <key>UIDeviceFamily</key>
    <array>
        <integer>1</integer>
        <integer>2</integer>
    </array>
    <key>UISupportedInterfaceOrientations</key>
    <array>
        <string>UIInterfaceOrientationPortrait</string>
        <string>UIInterfaceOrientationLandscapeLeft</string>
        <string>UIInterfaceOrientationLandscapeRight</string>
    </array>
    <key>UIAppFonts</key>
    <array>
        <string>Fonts/proximanovalight.ttf</string>
    </array>
    <key>UISupportedInterfaceOrientations~ipad</key>
    <array>
        <string>UIInterfaceOrientationPortrait</string>
        <string>UIInterfaceOrientationPortraitUpsideDown</string>
        <string>UIInterfaceOrientationLandscapeLeft</string>
        <string>UIInterfaceOrientationLandscapeRight</string>
    </array>
    <key>MinimumOSVersion</key>
    <string>6.0</string>
    <key>CFBundleDisplayName</key>
    <string>GreenBot</string>
    <key>CFBundleIdentifier</key>
    <string>com.tatvasoft.allxamarin</string>
    <key>CFBundleVersion</key>
    <string>1</string>
    <key>CFBundleIconFiles</key>
    <array>
        <string>[email protected]</string>
        <string>Icon-72.png</string>
        <string>[email protected]</string>
        <string>Icon.png</string>
        <string>[email protected]</string>
        <string>Icon-76.png</string>
        <string>[email protected]</string>
        <string>Default.png</string>
        <string>[email protected]</string>
        <string>[email protected]</string>
        <string>Default-Landscape.png</string>
        <string>[email protected]</string>
        <string>Default-Portrait.png</string>
        <string>[email protected]</string>
        <string>[email protected]</string>
        <string>Icon-Small-50.png</string>
        <string>Icon-Small-40.png</string>
        <string>[email protected]</string>
        <string>Icon-Small.png</string>
        <string>[email protected]</string>
    </array>
    <key>NSLocationWhenInUseUsageDescription</key>
    <string></string>
    <key>CFBundleShortVersionString</key>
    <string>1.3</string>
    <key>UIRequiresFullScreen</key>
    <string>YES</string>
    <key>NSAppTransportSecurity</key>
    <dict>
        <key>NSAllowsArbitraryLoads</key>
        <true/>
    </dict>
    <key>NSCameraUsageDescription</key>
    <string>This app needs access to the camera to take photos.</string>
    <key>NSPhotoLibraryUsageDescription</key>
    <string>This app needs access to photos.</string>
</dict>
</plist>

please help.Thanks in advance.

Upvotes: 3

Views: 902

Answers (2)

Neelam Prajapati
Neelam Prajapati

Reputation: 3802

unexpected but this helped me. in xamarin there are so many tricks which helps us solving some weird error without any logic.

in this case I manually opened app by clicking on app icon generated at build time start running app and will hit breakpoints too.

I think the visual studio successfully deploys app here but having problem in open it .so as it lunch if we manually open app .it runs perfect..

this might help some one else. Thanks

Upvotes: 2

Benhamine
Benhamine

Reputation: 153

This could be a few things. First and foremost, Build -> Clean All -> Restart Xamarin Studio (or VS).

If that doesn't do it, it's possibly a provisioning profile issue. Make sure you're building with a development profile.

Upvotes: 1

Related Questions