Skip navigation
DFerri916
Currently Being Moderated

Export to IOS5

Oct 25, 2011 4:31 PM

Tags: #dreamweaver #export #ios #ipad #phonegap

I'm trying to export a Dreamweaver built website to an Ipad that has IOS 5. I have the latest version of Dreamweaver CS5.5, XCode, and PhoneGap, but am unable to get a working copy of the webpage. Even a simple, "Hello World" site in HTML5 doesn't work.

 

After setting up the /Developer path, Instructions say to click Site > Mobile Applications > Build > IPad, however I get an error message that says, "The build of "Hello World" failed to complete successfully. Please consult the build log at Users/UserProfile/Desktop/com.performance.hello_world_ios/buildlog.lo g for additional details. What could go wrong in such a simple export?

 
Replies
  • Currently Being Moderated
    Oct 26, 2011 4:16 AM   in reply to DFerri916

    Please consult the build log at Users/UserProfile/Desktop/com.performance.hello_world_ios/buildlog.lo g for additional details. What could go wrong in such a simple export?

     

    I know absolutely nothing about this operation, but I'm just curious if you have consulted that mentioned log file?

     
    |
    Mark as:
  • Currently Being Moderated
    Nov 1, 2011 8:52 PM   in reply to DFerri916

    I had two problems with my PhoneGap, one for IOS5 and one for Android

     

    The fix for the IOS5 problem that worked for me was in the Camera.h file

     

    Although I found many on my system (leading me to believe that a base Camera.h is copied for each project), The one I found to modify for my project was in:

     

    Users/london1a1/Documents/DW_NAF/PhoneGapLib/PhoneGapLib/Classes/Camera.h

     

    Find this code in the file:

     

    @interface CameraPicker : UIImagePickerController

    {

         NSString* successCallback;

         NSString* errorCallback;

         NSInteger quality;

         NSString* postUrl;

        enum DestinationType returnType;

     

    }

     

    and change it to this  (note the lines that change are bolded):

     

    @interface CameraPicker : UIImagePickerController

    {

         NSString* successCallback;

         NSString* errorCallback;

         NSInteger quality;

         NSString* postUrl;

         enum DestinationType;

         enum returnType;

    }

     

    The original reference where I found the fix can be found here:

     

    http://osdir.com/ml/phonegap/2011-10/msg00918.html

     

    Although it's not part of your question, but more in the hope that someone else who is experiencing both issues with the IOS and Android find this response:

     

    The error I got for the PhoneGap / Android environment was:

     

    Dreamweaver is unable to open X in the emulator. Please consult the build log at /Users/.../buildlog.log for additional details.

     

    The answer I found was here:

    http://forums.adobe.com/message/3997853?tstart=0

     

    and involves tweaking the build.xml file and adding just two elements.

     

    I hope this helps.

     
    |
    Mark as:
  • Currently Being Moderated
    Nov 5, 2011 6:23 AM   in reply to DFerri916

    I've been having the same problem (build failed to complete successfully). I have a complex jquery mobile site--with several videos included--that I was trying to convert to an app now that I've upgraded to DW 5.5. I thought maybe I was overwhelming the DW PhoneGap feature, so I built a basic jquery mobile page in which I only changed the wording of the Page One, Page Two, etc. text. Then I tried using the app feature. Same error. I wish these things always worked as smoothly as they seem to on the Adobe Greg Rewis tutorials.

     
    |
    Mark as:
  • Currently Being Moderated
    Nov 13, 2011 4:24 PM   in reply to london1a1

    I made the change. However, Camera.h changes back to its original every time I build the app. How can I avoid that? Thanks in advance.

     
    |
    Mark as:
  • Currently Being Moderated
    Nov 14, 2011 4:38 PM   in reply to DFerri916

    I also have the same problem. If I save Camera.h and then publish through Dreamweaver again, Camera.h resets back to the original state.

     
    |
    Mark as:
  • Currently Being Moderated
    Nov 14, 2011 4:57 PM   in reply to djr328

    Don't forget to end each line with ';' (semi-column). Then it will stick.

     
    |
    Mark as:
  • Currently Being Moderated
    Dec 9, 2011 3:55 PM   in reply to DFerri916

    I'm having the very same problem. 

     

    When I first installed Dreamweaver CS5.5, I was running OSX Snow Leopard, and I never had a problem building & emulating the Phonegap apps that I wrote. 

     

    Since that time, I've updated to OSX Lion, and I haven't been able to build & emulate without getting the "failed to complete successfully" error message. 

     

    I just called Adobe tech support, and the best they could offer was to suggest I post my problem to this site.  It sounded like they had never heard of this problem.

     

    FWIW, I tried modifying the Camera.h file as suggested on this thread, to no avail.

     
    |
    Mark as:
  • Currently Being Moderated
    Dec 11, 2011 6:49 AM   in reply to The German

    Hey,

    You may copy the Camera.h into another folder, make the changes then paste it back in the /Documents/DW_NAF/PhoneGapLib/PhoneGapLib/Classes/ folder replacing the original file, this way you can keep your changes.

    But even making the changes:

     

    enum DestinationType returnType;

    to

    enum DestinationType;

    enum returnType;

     

    I still get the same problem.

    Running Snow Leopard.

     

    Waiting solutions...

     
    |
    Mark as:
  • Currently Being Moderated
    Dec 17, 2011 12:49 PM   in reply to london1a1

    Thank you so much! yes I was also having the exact same two problems, I had to edit the build file for Android and seperate the two enums in the camera header file for IOS, and now im up and running.

     
    |
    Mark as:
  • Currently Being Moderated
    Dec 30, 2011 8:22 PM   in reply to DFerri916

    If you have done the phonegap update to the current 1.3 version then go through all your camera.h files and make sure they all have

     

    @proprerty (nonatomic) enum destinationType returnType;

     

    with the camerapicker block then everything should work great I upgraded my phonegap to 1.3 and my dreamweaver to the 11.5 5344 version as well as i always run the latest Xcode and I hade the same error that you were getting and this is what I came upi with after countless hours of research and trial and error.

     
    |
    Mark as:
  • Currently Being Moderated
    Jan 3, 2012 1:58 AM   in reply to DFerri916

    london1a1's workaround seems to work fine. I've been having the same problems. Changed the Camera.h file, now everything works. I had to do the same type of workaround to get Android to also work.

     
    |
    Mark as:
  • Currently Being Moderated
    Jan 11, 2012 9:41 PM   in reply to london1a1

    Hello everyone.

    Wll it's January 11 2012, and has anyone found an answer to the non building problems.

     
    |
    Mark as:
  • Currently Being Moderated
    Jan 25, 2012 1:52 PM   in reply to DFerri916

    Hello!

     

    I just finally got it working.

     

    Here is how:

     

    Go to  /Applications/Adobe Dreamweaver CS5.5/Configuration/NativeAppFramework/DWPhoneGap/iphone/PhoneGapLib/ Classes/

     

    Open Camera.h and modify from

    enum DestinationType returnType;

    to

    enum DestinationType;

    enum returnType;

     

    Then go to  YourUsername/Documents/DW_NAF/PhoneGapLib/PhoneGapLib/Classes/

     

    and modify it there too.

     

    Hope this helps!

     

    Best Regards,

    Cerpow.

     


     
    |
    Mark as:
  • Currently Being Moderated
    Mar 14, 2012 9:25 AM   in reply to london1a1

    Thank you so much, it works perfectly.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points