Build and deploy to connected device fails from VS AppBuilder Extension

6 posts, 0 answers
  1. Dennis
    Dennis avatar
    3 posts
    Member since:
    Jul 2013

    Posted 23 Apr 2014 Link to this post

    Hi.

    I am trying to build and deploy my application through the AppBuilder Extension for Visual Studio 2012. I keep getting the following error - and since I am kind of a newb with regards to mobile appliation Development, I simply have no clue how to fix it. I've searched high and low for an answer, but with no luck. I did find some references to something called grunt and an error in node.js. However it seems, that its the build process on the server which fails.

    The build output from VS produces the following:

    ​ Project files uploaded to the cloud.
    Sending build request for project CarLeasePrognosis with parameters ProjectTypeGuids={070BCB52-5A75-4F8C-A973-144AF0EAFCC9}
    AppIdentifier=info.moesby.*
    ProjectName=CarLeasePrognosis
    ProjectGuid=6a3c8a87-f918-4cad-9fa3-b22135300849
    Platform=iOS
    MobileProvisionIdentifier=d9fb20f4-5b65-4d71-934f-91d37cf4ac5d
    iOSCodesigningIdentity=iPhone Developer Dennis Moesby (M2PKB8L9BK)
    AndroidCodesigningIdentity=
    Configuration=Release
    FrameworkVersion=3.2.0
    CorePlugins=org.apache.cordova.battery-status;org.apache.cordova.camera;org.apache.cordova.media-capture;org.apache.cordova.console;org.apache.cordova.contacts;org.apache.cordova.device;org.apache.cordova.device-motion;org.apache.cordova.device-orientation;org.apache.cordova.file;org.apache.cordova.file-transfer;org.apache.cordova.geolocation;org.apache.cordova.globalization;org.apache.cordova.inappbrowser;org.apache.cordova.media;org.apache.cordova.network-information;org.apache.cordova.dialogs;org.apache.cordova.splashscreen;org.apache.cordova.vibration
    AndroidPermissions=android.permission.CAMERA;android.permission.VIBRATE;android.permission.ACCESS_COARSE_LOCATION;android.permission.ACCESS_FINE_LOCATION;android.permission.ACCESS_LOCATION_EXTRA_COMMANDS;android.permission.READ_PHONE_STATE;android.permission.INTERNET;android.permission.RECEIVE_SMS;android.permission.RECORD_AUDIO;android.permission.MODIFY_AUDIO_SETTINGS;android.permission.READ_CONTACTS;android.permission.WRITE_CONTACTS;android.permission.WRITE_EXTERNAL_STORAGE;android.permission.ACCESS_NETWORK_STATE;android.permission.ACCOUNT_MANAGER;android.permission.GET_ACCOUNTS;android.permission.MANAGE_ACCOUNTS;android.permission.BROADCAST_STICKY
    DeviceOrientations=Portrait;Landscape
    iOSStatusBarStyle=Default
    AndroidHardwareAcceleration=false
    iOSDeviceFamily=
    BundleVersion=1.0
    iOSDisplayName=
    AndroidVersionCode=
    iOSBackgroundMode=
    WP8Capabilities=
    WP8Requirements=
    WP8SupportedResolutions=ID_RESOLUTION_WVGA;ID_RESOLUTION_WXGA;ID_RESOLUTION_HD720P
    WP8TileTitle=
    DisplayName=Car Lease Prognosis
    WP8ProductID=
    WP8PublisherID=
    WP8Publisher=
    Author=Dennis Moesby
    Description=CarLeasePrognosis
    LiveSyncToken=pvhGOenlE7P4qOp5kcvQTlEbXzBwNI0BpDURgFZyY0K7wWrN7azBQZso0/mQKuIGBnxnTMw3ZPukR65fzYxqxU8h4vIv65JuKRVwWlH9snNxUemoXXh+Vi9QEwPSKaJGkWc3S09gDyD8W6r5oV+bKg==.
    C:\Users\Dennis Moesby\AppData\Local\Microsoft\VisualStudio\11.0\Extensions\hsecwlsj.dmy\Targets\Build.targets(157,3): error : Server build failed. Server output: Project "CarLeasePrognosis.proj" (default targets):
    Error: ls: /tmp/3c026245b1e148b58adf057d10b858d3/Cordova320/Resources/splash: No such file or directory

    path.js:313
    throw new TypeError('Arguments to path.resolve must be strings');
    ^
    TypeError: Arguments to path.resolve must be strings
    at Object.exports.resolve (path.js:313:15)
    at Object.<anonymous> (/Users/builder/Cordova3/node_modules/pbxmanipular/bin/pbxmanipular:21:21)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Function.Module.runMain (module.js:497:10)
    at startup (node.js:119:16)
    at node.js:901:3

    Done building project "CarLeasePrognosis.proj" -- FAILED.
    .
    Done building project "CarLeasePrognosis.iceproj" -- FAILED.

    Build FAILED.



    Additionally the AppBuilder output, produces this:

    [2014-04-23 19:41:16.915] Log (Info,Medium): The Windows Phone SDK is not installed on this system. To build and deploy Windows Phone applications on devices, install the Windows Phone SDK.
    [2014-04-23 19:41:17.242] Log (Info,Medium): Icenium for Visual Studio version 2014.1.409.2. Icenium server location https://app.icenium.com.
    [2014-04-23 19:42:08.640] Log (Info,Medium): Update check completed. The extension is up-to-date. Authenticating with Telerik Platform...
    [2014-04-23 19:42:10.381] Log (Info,Medium): The user 'Dennis Moesby' logged in to Telerik Platform.
    [2014-04-23 19:42:13.377] Log (Info,Low): Found device Dennis Moesbys iPhone
    Device storage attached on Dennis Moesbys iPhone for com.telerik.Icenium.
    Saving cordova.ios.js on Dennis Moesbys iPhone failed.
    Device storage detached on Dennis Moesbys iPhone for com.telerik.Icenium.
    [2014-04-23 20:34:33.742] Log (Exception,High): System.ArgumentOutOfRangeException: InvalidArgument=Value of '0' is not valid for 'SelectedIndex'.
    Parameter name: SelectedIndex
    at System.Windows.Forms.ComboBox.set_SelectedIndex(Int32 value)
    at Microsoft.VisualStudio.CodeAnalysis.SolutionPage.UpdateComboBoxesAndProjectList(Task t)
    at Microsoft.VisualStudio.CodeAnalysis.SolutionPage.<.ctor>b__0(Task t)
    at System.Threading.Tasks.ContinuationTaskFromTask.InnerInvoke()
    at System.Threading.Tasks.Task.Execute()

    Please advice.

    Thanks in advance.

    /Dennis Moesby
  2. Iva Koevska
    Admin
    Iva Koevska avatar
    286 posts

    Posted 24 Apr 2014 Link to this post

    Hello Dennis,

    We are currently experiencing issues with our build services as reported here. The team is working hard on identifying and resolving the issue. Our goal is to supply a fix as soon as possible.

    You can keep an eye on the status of this here in the forums or here on the official Telerik status page.

    As soon as the issue is resolved, we will update all related threads.

    Thank you for your patience.

    Regards,
    Iva Koevska
    Telerik
     

    Share what you think about AppBuilder and Telerik Platform with us in our feedback portal, so we can become even better!

     
  3. Iva Koevska
    Admin
    Iva Koevska avatar
    286 posts

    Posted 24 Apr 2014 Link to this post

    Hello Dennis,

    The issue has been identified and resolved. You should now be able to build your apps.

    Thank you for your patience and understanding during this incident. Don't hesitate to let us know if you are still experiencing build related issues.

    Regards,
    Iva Koevska
    Telerik
     

    Share what you think about AppBuilder and Telerik Platform with us in our feedback portal, so we can become even better!

     
  4. Dennis
    Dennis avatar
    3 posts
    Member since:
    Jul 2013

    Posted 24 Apr 2014 in reply to Iva Koevska Link to this post

    Hi Iva.

    Thanks for your answers and quick attention to this issue. Unfortunately I am still experiencing the exact same issue, when I try to build and deploy from within Visual Studio 2012. Is there some update, I need to install? Or something else I should do at my end?

    If I use the Build in Cloud option and select to build an AppPackage it gives the error message: Cannot find application package for IOS. The build output in VS give the exact same error as before.

    Are there some requirements to the provisioning profile or App Id that I am not aware of? I don't get any errors or warnings about these things and they seem to be fine. However the output from AppBuilder in VS shows the following:

    Device storage attached on Dennis Moesbys iPhone for com.telerik.Icenium.
    Saving cordova.ios.js on Dennis Moesbys iPhone failed.
    Device storage detached on Dennis Moesbys iPhone for com.telerik.Icenium.
    [2014-04-24 23:32:31.051] Log (Exception,High): System.Exception: Could not connect to port 62078 

    It leads to think, that my wildcard app id "info.moesby.*" might be at fault here, since the saving of cordova.ios.js fails? Should I instead by using an app id of "com.telerik.icenium", which was, what was specified as the application identifier in project properties originally? I changed it, because I got an error stating that the application identifier in the project properties should match the app id of the provisioning profile....

    As mentioned in my original post, I'm quite the newb at this, so I don't know if it's at all relevant to the issue, but I thought I'd mention it just to avoid having some rookie error being the reason for my problems.

    Thanks again.

    /Dennis Moesby
  5. Dennis
    Dennis avatar
    3 posts
    Member since:
    Jul 2013

    Posted 24 Apr 2014 in reply to Dennis Link to this post

    UPDATE:

    I just found out that the output from AppBuilder in VS occurs when I connect the device and not when I try to build, so I'm guessing that the two things are not related after all.

    Incidently I've try to build on both an iPhone 4 runing IOS 7.1 and on an iPhone 5 runing IOS 7.1.1. Same error on both.
  6. Iva Koevska
    Admin
    Iva Koevska avatar
    286 posts

    Posted 25 Apr 2014 Link to this post

    Hello Dennis,

    The error you are reporting is a device connectivity one. AppBuilder cannot seem to get through to the devices. 

    Here are the things you can do to work around those.

    The easiest thing to do is to restart Visual Studio and reconnect your device.

    If this does not help and you still get the port errors, you might try resetting the device pairing. Here's how to do that:
    1. Select AppBuilder -> Options -> iOS.
    2. In the Paired Devices panel, click Reset and confirm the operation.
    3. Click Save (this is essential).
    4. Reconnect your device.
    5. Try Build and Deploy again.

    Thank you!

    Regards,
    Iva Koevska
    Telerik
     

    Share what you think about AppBuilder and Telerik Platform with us in our feedback portal, so we can become even better!

     
Back to Top