announcement - changing 1-0-unstable branch directory branch

9 views
Skip to first unread message

Lars

unread,
Mar 1, 2009, 6:30:24 PM3/1/09
to rhomobile
Hi Everyone,

We will be momentarily checking in a large directory structure change
into the 1-0-unstable branch. Things will probably be very unstable
for the next few hours while we iron out issues.

Thanks,
Lars

Lars Burgess

unread,
Mar 1, 2009, 9:13:01 PM3/1/09
to rhom...@googlegroups.com
The directory changes are pushed now. Included in the new directory
structure change is support for a gem-based build process and a new
app directory structure (see http://wiki.rhomobile.com/index.php/
Rhogen for more details). Over the next few days we'll be
stabilizing these changes and updating documentation. Meanwhile, if
you want to try it out:

1. git clone git://github.com/rhomobile/rhodes.git
2. cd rhodes
3. git checkout -b 1-0-unstable
4. git pull origin 1-0-unstable
5. cd rhodes/ (now you're in rhodes/rhodes)
6. rake install_all_gems
7. cd <some other directory where you put apps>
8. rhogen app mynewapp
9. rake -T (to see the list of available tasks)
10. rake run:iphone:app

Current known issues:
1. Existing sample apps in rhodes/apps do not work with this new
structure and will be fixed shortly.
2. The "Settings" application controllers & templates are not included
with the generator and will be fixed so they are included when you run
"rhogen app".
3. Android build process will be added soon. Only iphone, windows
mobile, blackberry and symbian are supported currently.

Thanks,
Lars

Makoto

unread,
Mar 7, 2009, 9:20:31 AM3/7/09
to rhomobile
Hi, Lars.

Running "rake run:iphone:app" after following the above steps started
up iPhone simulator, but how do I open the project within xcode(to
open up console)?

I tried to open the project like I used to do, and got the following
error.

Project /Users/makoto/work/personal/rhomobile/rhodes/iphone/
rhorunner.xcodeproj cannot be opened because it is missing its
project.pbxproj file.

Thanks.

Makoto


On Mar 2, 2:13 am, Lars Burgess <l...@rhomobile.com> wrote:
> The directory changes are pushed now.  Included in the new directory  
> structure change is support for a gem-based build process and a new  
> app directory structure (seehttp://wiki.rhomobile.com/index.php/

evgeny vovchenko

unread,
Mar 7, 2009, 2:29:07 PM3/7/09
to rhom...@googlegroups.com
Hello Makoto,

Please make sure that you open this project file:
rhodes\platform\iphone\rhorunner.xcodeproj

Now iPhone is under platform folder.

Regards,
Evgeny.

Makoto

unread,
Mar 10, 2009, 7:55:02 PM3/10/09
to rhomobile
Hi, Evgeny.

Thank you for your info. I am now able to open the project on Xcode.

Now I am trying to upgrade my sample app from 0.3 to 1.0 and hitting
various problems.

I would appreciate if you could answer the following questions as
further debugging clue.

1. Do I run rake run:iphone:app only once, or every time I press
"Build &Run" on xcode to compile?
2. Where should I put rho_build.conf. When it says "home directory",
does it mean the root directory of Rhodes project, or under the
directory where I put my application code (I put under apps dir where
all examples such as BaseCamp used to be).
3. When I click my application page, it says "can not find file .../
apps/Twitter/application.iseq". It is correct that the file does not
exist on the directory, because I have my application.rb under .../
apps/Twitter/app/application.rb (the more detailed message is at
http://gist.github.com/77206).

FYI, this is where I put my upgrade related commits.
http://github.com/makoto/rhodes-twitter/tree/master

If you do "git clone" the project under "/apps" directory, then rename
rhodes-twitter to Twitter, it should be exactly same setting as mine.

Lastly, do you expect further directory changes prior to 1.0 release?
If so, I will definitely wait further upgrade trial.

Thanks.

Makoto


On Mar 7, 7:29 pm, "evgeny vovchenko" <evgenyvovche...@gmail.com>
wrote:

Lars Burgess

unread,
Mar 16, 2009, 2:01:06 AM3/16/09
to rhom...@googlegroups.com
Hi Makoto,

Please see my responses below.

On Mar 10, 2009, at 4:55 PM, Makoto wrote:

>
> Hi, Evgeny.
>
> Thank you for your info. I am now able to open the project on Xcode.
>
> Now I am trying to upgrade my sample app from 0.3 to 1.0 and hitting
> various problems.
>
> I would appreciate if you could answer the following questions as
> further debugging clue.
>
> 1. Do I run rake run:iphone:app only once, or every time I press
> "Build &Run" on xcode to compile?
I would recommend not using the "run:iphone:app" targets until our 1.0
launch. You can just use "Build & Run" in xcode for your dev cycle as
before. The only thing that's changed is that we use rho_build.conf
to set the application directory that is bundled.

> 2. Where should I put rho_build.conf. When it says "home directory",
> does it mean the root directory of Rhodes project, or under the
> directory where I put my application code (I put under apps dir where
> all examples such as BaseCamp used to be).
rho_build.conf should live in your home directory (we'll eventually
change this to a hidden directory or env variable). On mac, this
would be /Users/<username>/, on windows this is in C:\Documents and
Settings\<username>\

> 3. When I click my application page, it says "can not find file .../
> apps/Twitter/application.iseq". It is correct that the file does not
> exist on the directory, because I have my application.rb under .../
> apps/Twitter/app/application.rb (the more detailed message is at
> http://gist.github.com/77206).
The application structure has changed a bit for 1.0, to better
organize the resources (more information available here: http://wiki.rhomobile.com/index.php/Rhogen
). It looks like from your github repo that you've done this move
already. You might want to move your time_helper to app/helpers (this
directory exists if you do rhogen app).

>
> FYI, this is where I put my upgrade related commits.
> http://github.com/makoto/rhodes-twitter/tree/master
>
> If you do "git clone" the project under "/apps" directory, then rename
> rhodes-twitter to Twitter, it should be exactly same setting as mine.
>
> Lastly, do you expect further directory changes prior to 1.0 release?
> If so, I will definitely wait further upgrade trial.
You no longer need to put your app in the apps folder (the
rho_build.conf file eliminates this requirement). We don't anticipate
any more destabilizing directory structure changes for this release.
We will be adding more files/directories for the next release. Hope
this helps.

Cheers!
Lars

Makoto

unread,
Mar 19, 2009, 5:40:06 AM3/19/09
to rhomobile
Hi, Lars.

Thank you for your advice. I didn't realize that the home directory is
the actual home directory of my laptop, rather than root dir of
Rhodes. Once I moved the location (and moved my helper/css/js to
necessary place), it started working fine.

I was once able to see home page. I am trying to integrate login/
logout as rhogen app did not automatically generate Settings directory
(I copied the directory from rhodes-system-api-samples. For some
reason, I start getting some random compilation error on Xcode, so
trying to find it out. Will let you know the upgrade progress once
that's solved.

Thanks.

Makoto

Makoto

unread,
Mar 19, 2009, 7:47:37 PM3/19/09
to rhomobile
Hi.

Just an update.

I managed to upgrade some code to 1.0 so that it shows data on Rhodes
after basic "query" and "sync" operation on Rhosync. iPhone simulator
hung when I try to do "ask" operation, so I will continue the debug.

Makoto
Reply all
Reply to author
Forward
0 new messages