Skip navigation
Currently Being Moderated

PhoneGap for iOS build error with Dreamweaver CS5.5, PhoneGap 1.2, XCode 4.2.1 (4D502)

Dec 12, 2011 2:58 AM

Tags: #cs5.5 #dreamweaver #phonegap #html5 #xcode #dw

Hi, I was trying to build and emulate a PhoneGap project with following environment, but it failed:

 

  • OS X Lion 10.7.2
  • Adobe Dreamweaver CS5.5 (11.5 Build 5344)
  • PhoneGap 1.2 (I updated from DW's original version following this instruction)

 

The build of application failed to complete successfully. This is the link of the log file I got: log file

 

Following is my screenshot on Application Setting:

 

Screen Shot 2011-12-12 at 5.55.07 PM.png

 

I wonder this may involve in updating PhoneGap to latest version. But could you help me pass this problem?

 
Replies
  • Currently Being Moderated
    Dec 13, 2011 11:47 AM   in reply to Teerasej Jiraphatchandej

    Same problem here. I've been waiting almost a month for a proper response from Adobe developers along with other users having similar problems. If the process does not work anymore as advertised then at least take the advertisement down from your dreamweaver feature page.  At this point it is just false advertisement of a feature that does not work.

     
    |
    Mark as:
  • Currently Being Moderated
    Dec 14, 2011 9:44 AM   in reply to NeoScrawl

    Same here, I get an error "The build of 'pgaptest' failed to complete successfully. Please consult the log..." When i do a get an error "

    error: type of property 'returnType' ('unsigned int') does not match type of ivar 'returnType' ('enum DestinationType') [3]

    @synthesize returnType;". Tried compiling it in xcode and xcode complains "Check dependencies Unsupported compiler 'GCC 4.2' selected for architecture 'armv7'", Any ideas anyone? Its not anything I've done this is merely compiling the default index page generated by the new document mobile starters, havnt altered a thing, what gives?

     
    |
    Mark as:
  • Currently Being Moderated
    Dec 14, 2011 10:41 AM   in reply to Martin Longstaff

    Same here , I get the same error .Was anyone able to resolve this issue ?? Did you get back any response from Adobe.It is very frustratng....Please help.

     
    |
    Mark as:
  • Currently Being Moderated
    Jan 1, 2012 5:53 PM   in reply to Teerasej Jiraphatchandej

    I have the same exact problem. Fails to build

     
    |
    Mark as:
  • Currently Being Moderated
    Jan 4, 2012 12:19 PM   in reply to Teerasej Jiraphatchandej

    Hi Teerasej. I came across the same problem and managed to fix it. The key lies in the log file here:

     

    /Users/teerasej/Documents/DW_NAF/PhoneGapLib/Classes/Camera.m:178:13: error: type of property 'returnType' ('unsigned int') does not match type of ivar 'returnType' ('enum DestinationType') [3]

     

    I had a similar error message in my log file. I fixed it by simply heading over to the Camera.h file from the PhoneGapLib XCode project, and correcting the property of the return type as so:

     

    was:

    @property (nonatomic) DestinationType returnType;

     

    change to:

    @property (nonatomic) enum DestinationType returnType;

     

    Save file then try again. Fixed it for my anyhow.

     
    |
    Mark as:
  • Currently Being Moderated
    Jan 6, 2012 5:23 AM   in reply to Teerasej Jiraphatchandej

    You could try building the XCode project that the Camera class belongs to and see if there are any errors?

     
    |
    Mark as:
  • Currently Being Moderated
    Jan 7, 2012 3:55 AM   in reply to Teerasej Jiraphatchandej

    Adding the return type does seem to work in the sense that it compiles, so at least we are getting somewhere. Well done Peter. I have tried, (using the phoneGap example routines) some camera functions. The simulator doesnt support this (cant think why!?) So I successfully compiled the projext in xcode to run on my iPhone. The exe runs fine but sadly it crashes when any of the camera functions are envoked. Im not very familiar with Cocoa to know where to go next.

     

    I wonder if anyone at Adobe actually tested any of this stuff?

     
    |
    Mark as:
  • Currently Being Moderated
    Jan 7, 2012 5:47 AM   in reply to Martin Longstaff

    Haha it would seem not. Are you saying it crashes when you try the camera functions when running on an actual device? Obv it won't work in the simulator. You can get crash reports from a iOS device by connecting it to your computer, then going into XCode - > organizer then you can see all the info for your device, including crash reports.

     
    |
    Mark as:
  • Currently Being Moderated
    Jan 7, 2012 9:34 AM   in reply to Peter_Dudbridge

    Yes Im running it on an iPhone. Got the crash report. Heres the relevent bit...

     

    Identifier:      phonepic

    Version:         ??? (???)

    Code Type:       ARM (Native)

    Parent Process:  launchd [1]

     

    Date/Time:       2012-01-07 11:11:17.377 +0000

    OS Version:      iPhone OS 5.0.1 (9A405)

    Report Version:  104

     

    Exception Type:  EXC_BAD_ACCESS (SIGSEGV)

    Exception Codes: KERN_INVALID_ADDRESS at 0x001e2fff

    Crashed Thread:  0

     
    |
    Mark as:
  • Currently Being Moderated
    Jan 28, 2012 7:50 AM   in reply to Teerasej Jiraphatchandej

    Solved!

     

    My camera.h file looks like this (after days of testing):

     

    *****************

    @interface CameraPicker : UIImagePickerController

    {

              NSString* successCallback;

              NSString* errorCallback;

              NSInteger quality;

              NSString* postUrl;

              enum DestinationType;

              enum returnType;

    }

     

     

     

     

    @property (assign) NSInteger quality;

    @property (copy)   NSString* successCallback;

    @property (copy)   NSString* errorCallback;

    @property (copy)   NSString* postUrl;

    @property (nonatomic) DestinationType returnType;

     

     

    ***********

     

    The process of compiling to iphone/ipad goes smooths, without errors.

     

    Hope this helps!

     
    |
    Mark as:
  • Currently Being Moderated
    Feb 3, 2012 12:25 PM   in reply to Alex-Popescu

    thanks, solved the problem right away. Great that you made your answer understandable for absolute beginners.

     
    |
    Mark as:
  • Currently Being Moderated
    Feb 13, 2012 3:18 AM   in reply to Teerasej Jiraphatchandej

    i had same problem i try to follow ur steps but problem is i cant find camera.h in xproject to change anythig there. in phonegap.js i found camera but thats cemra function not look like what u guyz said here could some one help me pls ? i really approciate it.

     

    TNX

     
    |
    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