Confused following iPhone sync app instructions

41 views
Skip to first unread message

abus...@gmail.com

unread,
Feb 21, 2013, 9:34:24 AM2/21/13
to openmobs...@googlegroups.com
Hi All,

I am evaluating open mobster for work and have managed to get myself very confused. I'm following the instructions on this page: http://code.google.com/p/openmobster/wiki/iPhoneSyncApp

I got the app built on device, and I downloaded JBOSS 5.1 and started up open mobster. I am able to log in on device and activate it.

What I can't seem to figure out how to do is where to place the MobileBean server component so that I can build and it and have it be mobilized. I tried running mvn install or mvn -PrunCloud integration-test

in the Samples/offlineapp/cloud directory but they all seem to expect Android and I am not currently set up for Android. I'm trying to test server and iOS.

What am I missing, or what more information can I provide?

thanks,
Ahmad

Sohil Shah

unread,
Feb 21, 2013, 10:33:36 AM2/21/13
to openmobs...@googlegroups.com
Hi Ahmad,

Looks like you have the hard part (building an OpenMobster project in XCode) figured out since you were able to build an app and activate the device with the Cloud.

Here is what you need to do to smooth out your evaluation


* The App you want to look at for iOS Samples is called SampleApp and is located under iPhone directory

* Its Cloud counterpart is located under iPhone/showcase/cloud. You can run the cloud using the mvn -PrunCloud integration-test maven command

* Build the SampleApp project (you may have to adjust the mobilecloudlib static library) depending if you are running in the Emulator or a real device.

* I would study the code in the SampleApp to understand the bootstrapping and use of the OpenMobter iOS SDK. You can look at the Cloud code for understanding the development of a SyncChannel etc.

I think this should set you on course. If you get stuck somewhere please let me know. iOS is a bit developer-unfriendly when it comes to packaging, building, etc. You can stumble anywhere in the process. Thats the main reason I build all my sample apps with Android because it is much easier to get started there.

Good Luck
Sohil


--
You received this message because you are subscribed to the Google Groups "OpenMobster Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openmobster-us...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

abus...@gmail.com

unread,
Feb 21, 2013, 10:55:43 AM2/21/13
to openmobs...@googlegroups.com, abus...@gmail.com
Hi Sohil,

Thanks for the reply. I read those chapters and here's the crux of the problem I have. When I run
mvn -PrunCloud integration-test

under the iPhone/showcase/cloud directory, here is the result:

[INFO] Scanning for projects...
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project org.openmobster.showcase.cloud:showcase-cloud:1.0 (/Users/abushnaq/Downloads/openmobster-2.4-M2-android/iPhone/showcase/cloud/pom.xml) has 1 error
[ERROR] 'dependencyManagement.dependencies.dependency.systemPath' for android:android:jar must specify an absolute path but is ${env.ANDROID_HOME}/platforms/android-12/android.jar @ org.openmobster.showcase:showcase:1.0, /Users/abushnaq/Downloads/openmobster-2.4-M2-android/iPhone/showcase/pom.xml, line 116, column 17
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException

My big issue is that I don't see why this is looking for anything related to android...

Sohil Shah

unread,
Feb 21, 2013, 11:01:56 AM2/21/13
to openmobs...@googlegroups.com
oh i see. The Android dependency is built-in to make the Android developers have a easy time building the app-android module. You should be able to comment out this dependeny in the showcase/pom.xml file and retry your build. I believe this is the only systemPath it is looking for in the project.

Thanks
Sohil

--

abus...@gmail.com

unread,
Feb 21, 2013, 12:38:17 PM2/21/13
to openmobs...@googlegroups.com
Hey,

That worked. I had seen that line but there was a warning not to touch it so I avoided doing anything there.

I have another question but I'll post it in a separate thread to avoid confusion. Thanks.

sandhyaran...@gmail.com

unread,
Feb 21, 2014, 6:17:09 AM2/21/14
to openmobs...@googlegroups.com, abus...@gmail.com
Hi ,
I am trying to integrate the openMobster in my ios application and followed the documentation that has given. But  i am unable to access 
#import "CloudService.h" file in my application. Is there any help for doing it.

Thanks
Sandhya

Sohil Shah

unread,
Feb 21, 2014, 9:21:17 AM2/21/14
to openmobs...@googlegroups.com
Hi Sandhya,

Have you made sure you are building the static library according to the right architecture. Also, is the static library actually being pointed to correctly. Let me know

Thanks
Sohil

sandhyaran...@gmail.com

unread,
Feb 24, 2014, 12:42:30 AM2/24/14
to openmobs...@googlegroups.com
Hi Sohil,
Yes, i am able to run the sample app followed the given instruction and using the same library to integrate into my app.

Thanks 
Sandhya
Reply all
Reply to author
Forward
0 new messages