Error running MoSync examples in Xcode

11 posts / 0 new
Last post
A C
aaron@bynode.com's picture
Offline
Joined: 4 Sep 2007
Posts:
Error running MoSync examples in Xcode

Hi Guys,

Tried building MoSync generated xcode projs and running it in the Simulator. It always end up crashing before any screen is launch. I tried 3dlines, MoTris, MoTrix, none of them work and it always generate the same error.

Running SnowLeopard with MoSync 2.4 release and also the latest r2425 build. Same error.

Appreciate your help.

Regards,
AC

------
Process: 3dlines [81456]
Path: --
Identifier: 3dlines
Version: ??? (???)
Code Type: X86 (Native)
Parent Process: launchd [249]

Date/Time: 2011-01-20 17:03:07.401 +0800
OS Version: Mac OS X 10.6.6 (10J567)
Report Version: 6

Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Crashed Thread: 0 Dispatch queue: com.apple.main-thread

Application Specific Information:
Detected an attempt to call a symbol in system libraries that is not present on the iPhone:
pthread_mutexattr_destroy$UNIX2003 called from function _Z25InitializeCriticalSectionP23_opaque_pthread_mutex_t in image 3dlines.
If you are encountering this problem running a simulator binary within gdb, make sure you 'set start-with-shell off' first.

abort() called

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Ivan Surzhenko
Surzh's picture
Offline
Joined: 20 Jan 2011
Posts:

Yes, there is similar problem on my end. It is same OS/SDK

Ivan Surzhenko
Surzh's picture
Offline
Joined: 20 Jan 2011
Posts:

I reviewed that MoSync sets the 3.2 SDK as base sdk for the project.

Is the static library built for that SDK? It looks like as the "libMoSyncLib.a" library is not compartible with iOS 4.2. Is there any way to manualy build that library?

Abi Waqas
abi's picture
Offline
Mobile Wizard
Joined: 3 May 2010
Posts:

Sorry for a delayed reply to your post. I looked into your problem and have some tips for you to try and I am sure that it will help you a lot.

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 Wizard
Joined: 3 May 2010
Posts:

Guys!

The latest MoSync Nightly Build does(110204-0401) support Xcode 3.2.5 now. Give it a try and your feedback is always appreciated.

Best
Abi Waqas

Abi Waqas
abi's picture
Offline
Mobile Wizard
Joined: 3 May 2010
Posts:

Guys! if you need more information regrading MoSync and Xcode, try this
http://www.mosync.com/content/emulating-iphone-fails

Samuel Kupka
bwpow's picture
Offline
Joined: 6 Feb 2011
Posts:

Nightly build MoSync-110208-1759 works out-of-the-box with xcode 3.2.5. Tried iPad and iPhone simulators and actual devices and it seems pretty stable. Off-topic: Orientation detection still doesn't work, but at least it creates event now (doesn't chage resolution).

Abi Waqas
abi's picture
Offline
Mobile Wizard
Joined: 3 May 2010
Posts:

Hi Samuel,
Yes, its pretty stable with xcode 3.2.5. It perhaps took a bit of time but here it is now. Its our utmost desire to align MoSync with latest and cutting edge possible technologies. We are working on the Native UI for iOS and screen orientation will also be addressed. Will keep you posted with the latest happenings. Do not hesitate to give us a shout if you find any problem and we will try our best to help you out there.
Best,
Abi Waqas

nembleton
nembleton's picture
Offline
Joined: 14 Mar 2011
Posts:

Hi guys.

I am using xCode 4. Is there a planned support for xCode 4? What is the current status of moSync with xCode 4?

I'll try it on and post my feedback.

Thx,
Nicolas.

Abi Waqas
abi's picture
Offline
Mobile Wizard
Joined: 3 May 2010
Posts:

HI Nicolas,

Well, the good news is that MoSync 2.5 Alpha does support xcode 4. Try it!!!

nembleton
nembleton's picture
Offline
Joined: 14 Mar 2011
Posts:

Great. I'm on my way then.