Cross-platform SDK and HTML5 tools for mobile app development
X
 
52 posts / 0 new
Last post
Stefan S.
tronicum's picture
Offline
Mobile Conjurer
Joined: 16 Nov 2010
Posts:
Emulating iPhone fails

Hi,

i tried to emulate a iPhone example (mapdemo). I did not install the Apple SDK (is that required?).

Systemsetup is MacOS X+MoSync-2.4.0-r2425.dmg

Select Mapdemo, select iPhone as target to emulate, there is a error:

-----
MoSync Panic 40037

"Failed to load program"

The panic occurred in the MoSync core.
-----

regards,
tronicum

Abi Waqas
abi's picture
Offline
Mobile Sorcerer
Joined: 3 May 2010
Posts:
Hi everyone. Just to update

Hi everyone.

Just to update you guys, MoSync now does support xCode 4 with our new MoSync 2.5 110412 Alpha release.

Happy coding.

Abi Waqas
abi's picture
Offline
Mobile Sorcerer
Joined: 3 May 2010
Posts:
http://www.mosync.com/content

http://www.mosync.com/content/osx-lion-runs-fine

Abi Waqas
abi's picture
Offline
Mobile Sorcerer
Joined: 3 May 2010
Posts:
For anyone who wants to take

For anyone who wants to take a look at the issue
https://github.com/MoSync/MoSync

Cheers,
Abi Waqas

Abi Waqas
abi's picture
Offline
Mobile Sorcerer
Joined: 3 May 2010
Posts:
thats good to know. for

thats good to know. for native GUI code you can find an example test program here:
https://github.com/MoSync/MoSync/tree/master/testPrograms/native_ui/mosync

But you won't be able to experience the native behavior on MoRE. However, and devices it works ok. I also would like to remind you that native code is implemented only for Android and iOS at the moment.

Stefan S.
tronicum's picture
Offline
Mobile Conjurer
Joined: 16 Nov 2010
Posts:
I can confirm that a later

I can confirm that a later nightly does run the 3dlines example with the expected results on MOrE and on the xcode simulator. I play a bit with that examples and will look into the other ones now. Do you have native GUI code somewhere? or docs how to create those simple ones?

Abi Waqas
abi's picture
Offline
Mobile Sorcerer
Joined: 3 May 2010
Posts:
aha, thats a really good news

aha, thats a really good news and sounds promising. Just give a shout if you need anymore information.

Stefan S.
tronicum's picture
Offline
Mobile Conjurer
Joined: 16 Nov 2010
Posts:
BTW, my talk for droidcon is

BTW, my talk for droidcon is accpeted too. So after a more iPhone focused talk on CeBIT there will be an android focused on on droidcon in Berlin (see www.droidcon.de)

Abi Waqas
abi's picture
Offline
Mobile Sorcerer
Joined: 3 May 2010
Posts:
Yes, Thats right. Apple

Yes, Thats right. Apple doesn't distribute Xcode 3.2.4 anymore. However, you of course can find it via Google (or third party distributers) - probably the best place to find things :). Well, our recommendation with MoSync 2.4.0 (r2425) was OSX 10.6.4 but now, with the latest nightly builds, one can run it on 10.6.6 with Xcode 3.2.5

Stefan S.
tronicum's picture
Offline
Mobile Conjurer
Joined: 16 Nov 2010
Posts:
The conference is called

The conference is called CeBIT, you might know it.

Stefan S.
tronicum's picture
Offline
Mobile Conjurer
Joined: 16 Nov 2010
Posts:
3.2.4 seems to be avail. via

3.2.4 seems to be avail. via some untrusted file sharing sites. a pity that apple does not distribute it anymore...

Stefan S.
tronicum's picture
Offline
Mobile Conjurer
Joined: 16 Nov 2010
Posts:
I am using 10.6.6 all the

I am using 10.6.6 all the thime :)

Sam Pickard
rival's picture
Offline
Mobile Archmage
Joined: 19 Mar 2009
Posts:
This is cool, because I can't

This is cool, because I can't find Xcode 3.2.4 anywhere. Apple only seem to distribute 3.2.5 now.

Abi Waqas
abi's picture
Offline
Mobile Sorcerer
Joined: 3 May 2010
Posts:
There is another update for

There is another update for you. Now, you can run MoSync on OSX 10.6.6 as well. Try the upcoming nightly build with OSX 10.6.6 and please enlighten me with your opinion. With this 3.2.5 Xcode implementation, You can use any of the simulators available (iPhone 4.0, 4.1, 4.2, iPad Simulator 3.2, 4.2). My aforementioned post(28 January, 2011 - 11:58) was subjected to Xcode 3.2.4 only

Abi Waqas
abi's picture
Offline
Mobile Sorcerer
Joined: 3 May 2010
Posts:
Yaha... Good to hear that you

Yaha... Good to hear that you got information in time. Give me a shout if you want anymore information. I have another good news for you at the same time. The bug we have been talking about regarding lines on iPhone has been fixed and you should get it done and running in the next nightly build. There is also a fixed on its way for the map examples as with these new implementation, we need to update map examples as well. Will keep you posted. Btw, what conference are you going into?

Stefan S.
tronicum's picture
Offline
Mobile Conjurer
Joined: 16 Nov 2010
Posts:
Uh, need to update my slides

Uh, need to update my slides from native "no" to "yes". sounds great again.

Abi Waqas
abi's picture
Offline
Mobile Sorcerer
Joined: 3 May 2010
Posts:
We also have implemented

We also have implemented Native UI Stuff which, at the moment, is available for iPhone and Android and works pretty cool. You can find more(and precise shall we say) information about it here
http://www.mosync.com/blog/2011/02/mosync-adds-initial-support-native-ui-and-opengl-es

Abi Waqas
abi's picture
Offline
Mobile Sorcerer
Joined: 3 May 2010
Posts:
Yes, it is a known bug and

Yes, it is a known bug and our team is working on it as we communicate here. You can find the fix in upcoming nightly builds soon and I will update you as soon as its fixed and out there.

Stefan S.
tronicum's picture
Offline
Mobile Conjurer
Joined: 16 Nov 2010
Posts:
great to hear about opengl. i

great to hear about opengl.

i see another screen whith blue symbols. what is wrong about the logo?

Abi Waqas
abi's picture
Offline
Mobile Sorcerer
Joined: 3 May 2010
Posts:
And some news about OpenGL,

And some news about OpenGL, in case if you are interested, can be followed here
http://www.mosync.com/content/game-3d-development-mosync

Abi Waqas
abi's picture
Offline
Mobile Sorcerer
Joined: 3 May 2010
Posts:
And you can see the expected

And you can see the expected 3dlines output screen here
http://www.mosync.com/content/3dlines/

Abi Waqas
abi's picture
Offline
Mobile Sorcerer
Joined: 3 May 2010
Posts:
I already have created an

I already have created an issue report and you can follow the progress here
https://github.com/MoSync/MoSync

Abi Waqas
abi's picture
Offline
Mobile Sorcerer
Joined: 3 May 2010
Posts:
I am happy that things are

I am happy that things are working for you with the latest xcode installation. But, the screen you are showing is not the desired one and the cause to this undesired screen doesn't have anything to do with xcode or its versioning. I reckon its because of the Open GL we recently implemented in our nightly builds. We are continuously fine tunning it and you will hear from us with the fixes shortly.

Stefan S.
tronicum's picture
Offline
Mobile Conjurer
Joined: 16 Nov 2010
Posts:
it works! great! props to the

it works! great! props to the team for making it run finally. cant wait for a stable version with 3.2.5 support.

Complex example do not run but the 3dlines finally does!!!!

mosync ios.png
Abi Waqas
abi's picture
Offline
Mobile Sorcerer
Joined: 3 May 2010
Posts:
I tried to dig a bit into it

I tried to dig a bit into it and came to know that you can install multiple xcode versions at different locations (according to Apple) but that might lead you to some complications in your build process (also reported by people ) as the /Library/Developer/Shared will contain the contents from last installed xcode version.
Other than this, I have a good news for you regarding MoSync. There is a support for Xcode 3.2.5 in the latest nightly build. Try 110204-0401 nightly build and I appreciate if you could provide with some feedback. Its always appreciated.

Best
Abi Waqas

Abi Waqas
abi's picture
Offline
Mobile Sorcerer
Joined: 3 May 2010
Posts:
Your request has been well

Your request has been well communicated and soon we will contact you.

Stefan S.
tronicum's picture
Offline
Mobile Conjurer
Joined: 16 Nov 2010
Posts:
Hi, i can only choose 4.2,

Hi,

i can only choose 4.2, there is no option (just a free field with "other"). Can you hint me download links for older SDKs and older Xcode Version?

Can you run multiple Xcode Version within one Mac?

I will probably test it on a native or emluated Windows soon.

Thanks for the help,
Stefan

Abi Waqas
abi's picture
Offline
Mobile Sorcerer
Joined: 3 May 2010
Posts:
We recommend Xcode 3.2.4 as

We recommend Xcode 3.2.4 as there is some work in progress for Xcode 3.2.5 and later. We have performed a lot of testing (also includes all of the examples, xcode was generated both from mac and windows and was run successfully) using Xcode 3.2.4 and results were super satisfactory.

Additionally I would recommend you to update the Java version of your computer. I got a new mac at my desk today and it had Java 1.6.0_17 which causes some troubles. Just updated it to 1.6.0_22 and everything worked ok(Its a known problem though :) )

Well, based on the problem you reported here, I reckon that you are running on Xcode 3.2.5 and if you are, you would have to change some settings. And here are the steps for you.

  • Create the Xcode output of a project, let's say, 3dlines.
  • Open the output file in Xcode by double-clicking on it.
  • Now go to the Project Menu in Xcode and click on Edit Project Settings. Go to the Build tab.
  • You will notice that the Base SDK is set to iOS 3.2. Change it to either Latest iOS (currently set to iOS 4.2) or to iOS 4.

However, at the moment, you won't be able to run the Xcode project on the simulator if you set the active executables (Project > Set Active Executables) to any of the following (valid for xcode 3.2.5):

  • iPad Simulator 3.2
  • iPhone Simulator 4.2
  • iPad Simulator 4.2

iPhone 4.0 and iPhone 4.1 Active Executables will work OK in the simulator.

Abi Waqas
abi's picture
Offline
Mobile Sorcerer
Joined: 3 May 2010
Posts:
Have a look at this post

Have a look at this post Stefan. I am sure it will help you but feel free to to ask if you have anymore questions.

http://www.mosync.com/content/error-running-mosync-examples-xcode

Stefan S.
tronicum's picture
Offline
Mobile Conjurer
Joined: 16 Nov 2010
Posts:
BTW I am doing some slides

BTW I am doing some slides about mosync to present on CeBIT in Hannover in March...

Is there any recorded talk on mosync I could watch?

Stefan S.
tronicum's picture
Offline
Mobile Conjurer
Joined: 16 Nov 2010
Posts:
Yes. I got to a working xcode

Yes. I got to a working xcode compile setup, just starting the app fails. can i use the 4.2 SDK or do I need a old copy of 3.1 ?

i need to tweak the xcode settings to make the mapdemo running (maybe i should use an simpler app)

Abi Waqas
abi's picture
Offline
Mobile Sorcerer
Joined: 3 May 2010
Posts:
Hi Stefan! Would you like to

Hi Stefan!

Would you like to share any words if you have?

Abi Waqas
abi's picture
Offline
Mobile Sorcerer
Joined: 3 May 2010
Posts:
Hi, Yes, you can use

Hi,

Yes, you can use virtualbox instead of wine. I wanted to make sure so that I don't miss any details. You can use any of windows(xp, vista or win7) as MoSync is supported. Give it a try either with XP or Win7. As I said previously, if you run it on a 64bit windows os, it will still run as a 32bit application and it would be better if you get a 32bit version of Java. There is a known problem with 64bit java installation.

Merry Christmas.

Stefan S.
tronicum's picture
Offline
Mobile Conjurer
Joined: 16 Nov 2010
Posts:
For your Java Question: java

For your Java Question:
java -version
java version "1.6.0_22"
Java(TM) SE Runtime Environment (build 1.6.0_22-b04-307-10M3261)
Java HotSpot(TM) 64-Bit Server VM (build 17.1-b03-307, mixed mode)

it says 64-bit here finally, but as mentioned above, I am not sure how the 32/64 bit stuff is handled within MacOSX. Since they do "universal" packages, I dont really care either.

Stefan S.
tronicum's picture
Offline
Mobile Conjurer
Joined: 16 Nov 2010
Posts:
Hi Abi, I can confirm the

Hi Abi,

I can confirm the error with the iPad profile.

I was planing to use some Windows XP (or later) image I have for virtualbox. virtualbox can forward USB connections to the guest machine and i prefer a complete solution over a wine hack. (wine is great software to run windows application. but vmware provides you with something closer to the real machine).

What windows version would you recommend? XP, Vista or 7? I don't care which one, it would be running within a mac or linux, I stopped using Windows nativly on my personal computers a while ago (and I never regret that). I prefer to have a "stop/sleep/snapshot" buttons for those OSs that break easily.

greetings,
Stefan

Abi Waqas
abi's picture
Offline
Mobile Sorcerer
Joined: 3 May 2010
Posts:
Stefan! You said that you

Stefan!

You said that you wanted to try it on emulated windows. Do you intend to use it via virtual machine/wine based on MAC? You can run MoSync on both 32bit and 64bit windows machines. But, on 64bit machines, it will be installed and behave as 32bit program(also 32bit java installation is recommended).

Abi Waqas
abi's picture
Offline
Mobile Sorcerer
Joined: 3 May 2010
Posts:
Stefan! We analysed your

Stefan!
We analysed your problems and found that you are getting two different error messages when you try to build for iPhone.
1.
i tried to emulate a iPhone example (mapdemo). I did not install the Apple SDK (is that required?).

Systemsetup is MacOS X+MoSync-2.4.0-r2425.dmg

Select Mapdemo, select iPhone as target to emulate, there is a error:

-----
MoSync Panic 40037

"Failed to load program"

The panic occurred in the MoSync core.
-----

2.
Hi i did another try with mapexample and iPad as profile:

"Could not build for target Apple/iPad. Root cause: Failed to build the xcode template. NOTE: Building for iOS devices is only possible from Mac OS X at the moment.
Failed to build the xcode template. NOTE: Building for iOS devices is only possible from Mac OS X at the moment.
Failed to build the xcode template. NOTE: Building for iOS devices is only possible from Mac OS X at the moment."

Which is very strange. Could you confirm that you got this message for the same example(I suspect its the same example as you wrote mapdomo and mapexample). Additionally what were your memory settings?

Abi Waqas
abi's picture
Offline
Mobile Sorcerer
Joined: 3 May 2010
Posts:
Hi Stefan, Your response is

Hi Stefan,

Your response is very much appreciated and its helping us to make MoSync better. We tested the very same MoSync release on a MAC with identical specifications and it worked fine. I wonder what version of Java do you run on your machine? We reckon that it might be your MAC environment causing this problem. We recommend Java SE Runtime Environment 6 or later as a system requirement. You can find the system requirements here:
http://www.mosync.com/documentation/manualpages/installing-mosync-os-x

Stefan S.
tronicum's picture
Offline
Mobile Conjurer
Joined: 16 Nov 2010
Posts:
Ah ok. I wasnt able to move

Ah ok. I wasnt able to move the screen up, but as I am new to MacOSX that might be my problem. I will also have a try to use an emulated Windows, if that is more flexible (like using windows 32bit)...

Thanks!

Abi Waqas
abi's picture
Offline
Mobile Sorcerer
Joined: 3 May 2010
Posts:
Output for Location Example

Output for Location Example on MoRE

Location.JPG
Abi Waqas
abi's picture
Offline
Mobile Sorcerer
Joined: 3 May 2010
Posts:
It shouldn't be a (full)

It shouldn't be a (full) blank screen when you run Location example on MoRE. More doesn't have GPS capabilities so it doesn't return you any coordinates. However it should show some instruction lines and "Start: -1" which means that GPS capabilities are available on the device. Will post with more information about Mac shortly.

Stefan S.
tronicum's picture
Offline
Mobile Conjurer
Joined: 16 Nov 2010
Posts:
for virtualbox

for virtualbox users:
http://www.taranfx.com/install-snow-leopard-virtualbox

Stefan S.
tronicum's picture
Offline
Mobile Conjurer
Joined: 16 Nov 2010
Posts:
Hi, I am running 10.6.5 on a

Hi,

I am running 10.6.5 on a real® Apple Macbook.

System Version: Mac OS X 10.6.5 (10H574)
Kernel Version: Darwin 10.5.0
64-bit Kernel and Extensions: No

That how i got the device. Is there a way to enable 64 bit later (apple tends to do so much "universal stuff" i could imagine you can).

I can setup an Virtualbox System running an older/64 bit Image for prototyping. I will try to do this till January (xmas coming up). I need to check if I can run 64 bit guests on 32 bit hosts on darwin/macosx.
But I can do that on my 64 bit Linux based server/notebook for sure.

Any rough guess when I can use mosync on the above system (natively) ?

I just tried my luck with the "location" example and the Nexus One as target. It compiles and runs within MoRE, but it has a blank screen. I dunno what it should look like.

BTW i will focus a bit on the android targets until march as i submitted a talk to an android event. any examples with simple performance tests are welcome :)

greetings from old Europe,
stefan

Abi Waqas
abi's picture
Offline
Mobile Sorcerer
Joined: 3 May 2010
Posts:
Hi Stefan, Well, you don't

Hi Stefan,

Well, you don't need to install any sdk to create an output for any of the platforms. However, you need iOS sdk in order to run your generated package on iPhone/iPad/iPod touch. Could you verify if its only mapdemo example or is it happening for other examples as well? And what Mac OS your machine runs? At the moment, MoSync supports only Mac OS X Snow Leopard (10.6.6) 64-bit. We have discussed about it and are looking for some more information from you to solve and make it working for you guys. Could you take a screen shot of the splash screen and update us what version of MoSync you are running(just to make a double check in order to verify that you are not a victim of a bug we have experienced long time ago). Lets take it step by step and solve it out.

Abi Waqas

Stefan S.
tronicum's picture
Offline
Mobile Conjurer
Joined: 16 Nov 2010
Posts:
any tips or docs on how to

any tips or docs on how to setup those sdks?

Stefan S.
tronicum's picture
Offline
Mobile Conjurer
Joined: 16 Nov 2010
Posts:
Could not build for target

Could not build for target Google/NexusOne. Root cause: Could not package for android platform
Could not package for android platform
Could not package for android platform
/Users/[working path]/mosync-workspace/mapexample/FinalOutput/Release/Google/NexusOne/program

Stefan S.
tronicum's picture
Offline
Mobile Conjurer
Joined: 16 Nov 2010
Posts:
Hi i did another try with

Hi i did another try with mapexample and iPad as profile:

"Could not build for target Apple/iPad. Root cause: Failed to build the xcode template. NOTE: Building for iOS devices is only possible from Mac OS X at the moment.
Failed to build the xcode template. NOTE: Building for iOS devices is only possible from Mac OS X at the moment.
Failed to build the xcode template. NOTE: Building for iOS devices is only possible from Mac OS X at the moment."

Well, that is funny as I am using MacOSX, i just never installed xcode, yet. It would be nice that the apple stuff would not be required to just emulate stuff.

Another try with a E71 gave that error:

"Could not build for target Nokia/E71. Root cause: Failed to create package for Nokia/E71 (platform: s60v3\1)
Failed to create package for Nokia/E71 (platform: s60v3\1)
Failed to create package for Nokia/E71 (platform: s60v3\1)"

what are the requirements for a symbian build. symbian SDK?

jar creation works nicely.

regards,
stefan

Abi Waqas
abi's picture
Offline
Mobile Sorcerer
Joined: 3 May 2010
Posts:
tronicum wrote: Hi i did
tronicum wrote:
Hi i did another try with mapexample and iPad as profile:

"Could not build for target Apple/iPad. Root cause: Failed to build the xcode template. NOTE: Building for iOS devices is only possible from Mac OS X at the moment.
Failed to build the xcode template. NOTE: Building for iOS devices is only possible from Mac OS X at the moment.
Failed to build the xcode template. NOTE: Building for iOS devices is only possible from Mac OS X at the moment."

Well, that is funny as I am using MacOSX, i just never installed xcode, yet. It would be nice that the apple stuff would not be required to just emulate stuff.

Another try with a E71 gave that error:

"Could not build for target Nokia/E71. Root cause: Failed to create package for Nokia/E71 (platform: s60v3\1)
Failed to create package for Nokia/E71 (platform: s60v3\1)
Failed to create package for Nokia/E71 (platform: s60v3\1)"

what are the requirements for a symbian build. symbian SDK?

jar creation works nicely.

regards,
stefan

I had raised an issue for the above mentioned problem and now its now been taken care of and the fix is available in every build after 07-03-2011. You shouldn't experience this problem anymore.

Stefan S.
tronicum's picture
Offline
Mobile Conjurer
Joined: 16 Nov 2010
Posts:
Hi abi & sam, the emulator

Hi abi & sam,

the emulator runs fine for other devices (like the default setting without choosing a specific device). I also build a J2ME version for a Sharp device with resulted in a nice .jar file. That just didn't install but it was not signed and not exactly the same device...

i will check the output for the mapdemo soon if it does xcode output.

greetings,
stefan

Abi Waqas
abi's picture
Offline
Mobile Sorcerer
Joined: 3 May 2010
Posts:
Hi Stefan, Can you check if

Hi Stefan,

Can you check if MoSync does create and xcode project/package when you build MapDemo example for iPhone/iPad/iPod?

Abi Waqas
abi's picture
Offline
Mobile Sorcerer
Joined: 3 May 2010
Posts:
Hello Stefan Well, it should

Hello Stefan

Well, it should run on MoSync emulator anyway. For MoSync emulator it doesn't matter if you have installed the Applie SDK or not. However, you need to install Apple SDK if you want and xcode if you want to run it on iPhone/Apple emulator. Can you try and update us if its emulating for other devices?

Login or register to post comments