1. #1
    Sencha User
    Join Date
    Apr 2011
    Posts
    7
    Vote Rating
    0
    pphelan@gmail.com is on a distinguished road

      0  

    Default Sencha Touch + PhoneGap + Xcode 4

    Sencha Touch + PhoneGap + Xcode 4


    Hello,

    I recently developed a sencha touch based app for an upcoming festival and all is working wonderfully on my iphone and android app when launching from a browser. Now I am ready to deploy as an app on the iPhone and could use some guidance. I have the latest install of Xcode 4 and SDK running on my mac. I went to https://build.phonegap.com/generate the PhoneGap project. After doing this I'm not sure what I need to do next.

    1. Where do I place all of my files that run my sencha app?
    2. I see in the generated project from PhoneGap an index.html file exists. Do I keep this file or merge with my Sencha index.html?
    3. Are there any settings that have to be set in xcode4 to find my files? Not knowing what to do I tried copying all of my sencha files to the www folder, opening the phonegap created name.xcodeproj in xcode4 and ran in iphone simulator. The simulator fired up a default.png screen but nothing else happened. Obviously I'm missing something I'm just not sure where to place the files.
    4. I see in the PhoneGap generated index.html the following code exists:

    <script src="phonegap.0.9.5.min.js"></script>
    <script>
    document.addEventListener('deviceready', function () {
    // add your PhoneGap-dependent functionality here!
    }, false);
    </script>

    Do I need to create the phonegap js file or is this automatically generated and connected somehow?
    5. Previously in my Sencha index.html all of my .js file references were in between <head> </head>. For the phonegap created index.html do my .js file references need to be placed elsewhere or still in between the <head> </head>?

    Thank you for any input! Maybe this will help someone else moving from Sencha to PhoneGap as well.

  2. #2
    Sencha User
    Join Date
    Aug 2010
    Posts
    303
    Vote Rating
    3
    steve1964 is on a distinguished road

      0  

    Default


    Hi, http://www.phonegap.com/start#ios
    All your files must be in the www forlder of the project

  3. #3
    Sencha User
    Join Date
    May 2011
    Posts
    12
    Vote Rating
    0
    8dot3 is on a distinguished road

      0  

    Default


    The link posted above should get you on the right track. If you didn't know already, Xcode 4 and PhoneGap don't quite get along yet so you need to run a Terminal command to setup PhoneGap with Xcode 4.

    You will have one index.html in the end, with both the Sencha code and the PhoneGap code. They play nicely.

  4. #4
    Sencha User
    Join Date
    Sep 2012
    Posts
    2
    Vote Rating
    0
    steveattwell is on a distinguished road

      0  

    Default


    I realize I am replying so long after the original post as to be no help whatsoever but I recently added a step-by-step blog post on how to get sencha touch 2 + PhoneGap + Xcode 4 to live in harmony.

    http://creativedesignsolutionsnyc.co...-and-phonegap/

    I keep forgetting how to do this so the post was more to help me remember.

Similar Threads

  1. Sencha touch + phonegap api
    By posabsolute in forum Sencha Touch 1.x: Discussion
    Replies: 3
    Last Post: 23 May 2012, 12:07 AM
  2. myAppalogues built with Sencha Touch and PhoneGap
    By marionguyen in forum Sencha Touch 1.x: Examples and Showcases
    Replies: 0
    Last Post: 7 May 2011, 2:04 AM
  3. Sencha Touch and PhoneGap problem with builds - Xcode not referencing changes
    By bob.chesley@nhsoftwerks.com in forum Sencha Touch 1.x: Discussion
    Replies: 1
    Last Post: 9 Feb 2011, 11:04 AM
  4. Sencha Touch and PhoneGap problem with builds - Xcode not referencing changes
    By bob.chesley@nhsoftwerks.com in forum Community Discussion
    Replies: 0
    Last Post: 5 Feb 2011, 3:02 PM
  5. PhoneGap [0.9.2] and Sencha Touch [1.0.1]
    By sheehsim in forum Sencha Touch 1.x: Discussion
    Replies: 0
    Last Post: 8 Dec 2010, 9:21 AM

Thread Participants: 3

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..."