macieks / s3eIOSiCloud

Simple iOS iCloud extension for Marmalade
4 stars 3 forks source link

Crashes on pre 5.0 iOS #1

Closed macieks closed 12 years ago

macieks commented 12 years ago

This has already been fixed locally, just need to push it to git now.

The problem is due to s3eIOSiCloudInit_platform being invoked regardless of iOS version. The problematic bit is [NSFileManager URLForUbiquityContainerIdentifier].

Another thing with older iOS to keep in mind is that you should also weak link with Foundation module to avoid using classes not present in former SDK versions.

stevemonks commented 12 years ago

Hi Maciej, could you possibly commit your fix for this?

Best Regards, Steve

macieks commented 12 years ago

Hi Steve,

Yes, I'll do that this week. Sorry man, I'm just extremely busy at the moment :(

I'll send you an email when done.

Cheers Maciej Sawitus


Check out my indie games: www.pixelelephant.com Read my gamev blog: gamedevcoder.wordpress.com Follow me on Twitter @PixelElephant https://twitter.com/#!/PixelElephant

On 15 May 2012 05:02, stevemonks < reply@reply.github.com

wrote:

Hi Maciej, could you possibly commit your fix for this?

Best Regards, Steve


Reply to this email directly or view it on GitHub: https://github.com/macieks/s3eIOSiCloud/issues/1#issuecomment-5699014

macieks commented 12 years ago

Alright, done! :)

I've also updated README.txt and SETUP.txt based on your comments at: http://www.madewithmarmalade.com/devnet/forum/7398 for anyone trying to get this extension to work in their projects. Thanks for that!

Let me know if you have any problems.

Cheers, Maciej

stevemonks commented 12 years ago

Thank you very much for doing that so quickly, it's much appreciated. I'll grab it now and drop it in.

Good luck with Monstaaa, it's looking very nice, hope you do well with it. I was quite surprised by Puzzled Rabbit, because it has much in common with my own rabbit based puzzle game Bomb Bunny Boogie;

http://digitalapplicationdesign.com/cms/view-content/7/bbb.html

a game that may well have broken all records for poor sales performance within the App Store! Hope yours did better ;-)

Thanks again,

cheers, Steve

----- Original Message ----- From: "macieks" reply@reply.github.com To: "stevemonks" mail@stevemonks.com Sent: Tuesday, May 15, 2012 7:39 AM Subject: Re: [s3eIOSiCloud] Crashes on pre 5.0 iOS (#1)

Alright, done! :)

I've also updated README.txt and SETUP.txt based on your comments at: http://www.madewithmarmalade.com/devnet/forum/7398 for anyone trying to get this extension to work in their projects. Thanks for that!

Let me know if you have any problems.

Cheers, Maciej


Reply to this email directly or view it on GitHub: https://github.com/macieks/s3eIOSiCloud/issues/1#issuecomment-5709509

macieks commented 12 years ago

No worries!

a game that may well have broken all records for poor sales performance within the App Store!

Hehe... not sure you'd win against my Puzzled Rabbit in sales ;) They've been very poor as well.

I guess one conclusion might be games with rabbits don't sale :)

Cheers, Maciej

stevemonks commented 12 years ago

Yep, I'm definitely pulling out of the rabbit puzzle business too. On the plus side, you've just sold another one, perhaps it might start a trend ;-)

Cheers, Steve

----- Original Message ----- From: "macieks" reply@reply.github.com To: "stevemonks" mail@stevemonks.com Sent: Tuesday, May 15, 2012 8:12 AM Subject: Re: [s3eIOSiCloud] Crashes on pre 5.0 iOS (#1)

No worries!

a game that may well have broken all records for poor sales performance within the App Store!

Hehe... not sure you'd win against my Puzzled Rabbit in sales ;) They've been very poor as well.

I guess one conclusion might be games with rabbits don't sale :)

Cheers, Maciej


Reply to this email directly or view it on GitHub: https://github.com/macieks/s3eIOSiCloud/issues/1#issuecomment-5709899

stevemonks commented 12 years ago

Hi Maciej,

sorry to bother you again, but the extension is still crashing for me under iOS 4.2.1.

It's still crashing as it boots (i.e. before the Marmalade screen appears) so this is before any of my code has been executed. The last message that I see from the IPCU console is;

dyld: Symbol not found: _OBJCCLASS$_NSFileCoordinator Referenced from: /var/mobile/Applications/7C21282F-14C1-4321-AD0A-F5E09BD36409/ab.app/ab Expected in: /System/Library/Frameworks/Foundation.framework/Foundation

which is what I think is killing it.

I think I need to look into setting up Marmalade on my Mac then I can debug this myself - although the main reason I'm using Marmalade in the first place was to avoid doing that ;-)

If you do get a moment to look into it, that would be cool and any help would be appreciated.

Cheers, Steve

----- Original Message ----- From: "macieks" reply@reply.github.com To: "stevemonks" mail@stevemonks.com Sent: Tuesday, May 15, 2012 8:12 AM Subject: Re: [s3eIOSiCloud] Crashes on pre 5.0 iOS (#1)

No worries!

a game that may well have broken all records for poor sales performance within the App Store!

Hehe... not sure you'd win against my Puzzled Rabbit in sales ;) They've been very poor as well.

I guess one conclusion might be games with rabbits don't sale :)

Cheers, Maciej


Reply to this email directly or view it on GitHub: https://github.com/macieks/s3eIOSiCloud/issues/1#issuecomment-5709899

macieks commented 12 years ago

Hi Steve,

I'll try to look into this tomorrow or so but in the meantime can you confirm you are weak linking with Foundation library?

This is what my iphone-link-opts are set to in my MKB: iphone-link-opts='-lsqlite3.0 -weak_framework Foundation -weak_framework UIKit -weak_framework Security -weak_framework CoreText -weak_framework AddressBookUI -weak_framework MapKit'

Cheers, Maciej

macieks commented 12 years ago

Just to make sure - the important bit in my previous post is "-weak_framework Foundation".

stevemonks commented 12 years ago

Hi Maciej,

thanks for chasing this up. I had no iphone specific link options set in the MKB for my app, to be honest I wasn't aware I needed any in my main app (this kind of thing seems very poorly documented in Marmalade).

Anyway, adding the following to the deployments section of the MKB seems to have fixed the problem, it now runs under 4.2.1. Another one for the readme perhaps?

iphone-link-opts='-weak_framework Foundation'

Thanks once again.

Cheers, Steve

----- Original Message ----- From: "macieks" reply@reply.github.com To: "stevemonks" mail@stevemonks.com Sent: Tuesday, May 15, 2012 11:38 AM Subject: Re: [s3eIOSiCloud] Crashes on pre 5.0 iOS (#1)

Hi Steve,

I'll try to look into this tomorrow or so but in the meantime can you confirm you are weak linking with Foundation library?

This is what my iphone-link-opts are set to in my MKB: iphone-link-opts='-lsqlite3.0 -weak_framework Foundation -weak_framework UIKit -weak_framework Security -weak_framework CoreText -weak_framework AddressBookUI -weak_framework MapKit'

Cheers, Maciej

On 15 May 2012 19:15, stevemonks < reply@reply.github.com

wrote:

Hi Maciej,

sorry to bother you again, but the extension is still crashing for me under iOS 4.2.1.

It's still crashing as it boots (i.e. before the Marmalade screen appears) so this is before any of my code has been executed. The last message that I see from the IPCU console is;

dyld: Symbol not found: _OBJCCLASS$_NSFileCoordinator Referenced from: /var/mobile/Applications/7C21282F-14C1-4321-AD0A-F5E09BD36409/ab.app/ab Expected in: /System/Library/Frameworks/Foundation.framework/Foundation

which is what I think is killing it.

I think I need to look into setting up Marmalade on my Mac then I can debug this myself - although the main reason I'm using Marmalade in the first place was to avoid doing that ;-)

If you do get a moment to look into it, that would be cool and any help would be appreciated.

Cheers, Steve

----- Original Message ----- From: "macieks" reply@reply.github.com To: "stevemonks" mail@stevemonks.com Sent: Tuesday, May 15, 2012 8:12 AM Subject: Re: [s3eIOSiCloud] Crashes on pre 5.0 iOS (#1)

No worries!

a game that may well have broken all records for poor sales performance within the App Store!

Hehe... not sure you'd win against my Puzzled Rabbit in sales ;) They've been very poor as well.

I guess one conclusion might be games with rabbits don't sale :)

Cheers, Maciej


Reply to this email directly or view it on GitHub: https://github.com/macieks/s3eIOSiCloud/issues/1#issuecomment-5709899


Reply to this email directly or view it on GitHub: https://github.com/macieks/s3eIOSiCloud/issues/1#issuecomment-5711623


Reply to this email directly or view it on GitHub: https://github.com/macieks/s3eIOSiCloud/issues/1#issuecomment-5712956

macieks commented 12 years ago

Glad it worked for you :)

I actually added a short note about this as well but maybe I could be more clear when I say "weak link with Foundation library". I'll fix that.

On 15 May 2012 21:42, stevemonks < reply@reply.github.com

wrote:

Hi Maciej,

thanks for chasing this up. I had no iphone specific link options set in the MKB for my app, to be honest I wasn't aware I needed any in my main app (this kind of thing seems very poorly documented in Marmalade).

Anyway, adding the following to the deployments section of the MKB seems to have fixed the problem, it now runs under 4.2.1. Another one for the readme perhaps?

iphone-link-opts='-weak_framework Foundation'

Thanks once again.

Cheers, Steve

----- Original Message ----- From: "macieks" reply@reply.github.com To: "stevemonks" mail@stevemonks.com Sent: Tuesday, May 15, 2012 11:38 AM Subject: Re: [s3eIOSiCloud] Crashes on pre 5.0 iOS (#1)

Hi Steve,

I'll try to look into this tomorrow or so but in the meantime can you confirm you are weak linking with Foundation library?

This is what my iphone-link-opts are set to in my MKB: iphone-link-opts='-lsqlite3.0 -weak_framework Foundation -weak_framework UIKit -weak_framework Security -weak_framework CoreText -weak_framework AddressBookUI -weak_framework MapKit'

Cheers, Maciej

On 15 May 2012 19:15, stevemonks < reply@reply.github.com

wrote:

Hi Maciej,

sorry to bother you again, but the extension is still crashing for me under iOS 4.2.1.

It's still crashing as it boots (i.e. before the Marmalade screen appears) so this is before any of my code has been executed. The last message that I see from the IPCU console is;

dyld: Symbol not found: _OBJCCLASS$_NSFileCoordinator Referenced from: /var/mobile/Applications/7C21282F-14C1-4321-AD0A-F5E09BD36409/ab.app/ab Expected in: /System/Library/Frameworks/Foundation.framework/Foundation

which is what I think is killing it.

I think I need to look into setting up Marmalade on my Mac then I can debug this myself - although the main reason I'm using Marmalade in the first place was to avoid doing that ;-)

If you do get a moment to look into it, that would be cool and any help would be appreciated.

Cheers, Steve

----- Original Message ----- From: "macieks" reply@reply.github.com To: "stevemonks" mail@stevemonks.com Sent: Tuesday, May 15, 2012 8:12 AM Subject: Re: [s3eIOSiCloud] Crashes on pre 5.0 iOS (#1)

No worries!

a game that may well have broken all records for poor sales performance within the App Store!

Hehe... not sure you'd win against my Puzzled Rabbit in sales ;) They've been very poor as well.

I guess one conclusion might be games with rabbits don't sale :)

Cheers, Maciej


Reply to this email directly or view it on GitHub: https://github.com/macieks/s3eIOSiCloud/issues/1#issuecomment-5709899


Reply to this email directly or view it on GitHub: https://github.com/macieks/s3eIOSiCloud/issues/1#issuecomment-5711623


Reply to this email directly or view it on GitHub: https://github.com/macieks/s3eIOSiCloud/issues/1#issuecomment-5712956


Reply to this email directly or view it on GitHub: https://github.com/macieks/s3eIOSiCloud/issues/1#issuecomment-5713842

stevemonks commented 12 years ago

Hi Maciej.

I did check if there was anything else needed, but I missed it because it's in the readme.txt and I only looked in the setup.txt (thanks for the credit by the way).

I imagine, like me, most Marmalade developers are not familiar with native iOS development and I've been unable to find any Marmalade specific documentation regarding weak linking of libraries, so that note doesn't really mean very much to me as it stands (I presume a weak link is a bit like a DLL under Windows?). An example of what to add and where to put it in the MKB may be more useful perhaps?

e.g.

To avoid problems on devices running pre iOS 5.0, be sure to add the following to the deployments section of your mkb if you are not already weak linking against the Foundation module;

iphone-link-opts='-weak_framework Foundation'

What do you think?

Anyway, thianks once again. It's not much of a freebie, but I've attached a Bomb Bunny Boogie iOS promotion code below should you feel like trying a different take on the bunny puzzle theme. Feel free to pass it on if you don't fancy trying it out yourself. Enjoy.

Cheers, Steve

www.digitalapplicationdesign.com

Promo code (expires 4 weeks from 15/5/12);

HLMLKRWL37NW

----- Original Message ----- From: "macieks" reply@reply.github.com To: "stevemonks" mail@stevemonks.com Sent: Tuesday, May 15, 2012 1:03 PM Subject: Re: [s3eIOSiCloud] Crashes on pre 5.0 iOS (#1)

Glad it worked for you :)

I actually added a short note about this as well but maybe I could be more clear when I say "weak link with Foundation library". I'll fix that.

On 15 May 2012 21:42, stevemonks < reply@reply.github.com

wrote:

Hi Maciej,

thanks for chasing this up. I had no iphone specific link options set in the MKB for my app, to be honest I wasn't aware I needed any in my main app (this kind of thing seems very poorly documented in Marmalade).

Anyway, adding the following to the deployments section of the MKB seems to have fixed the problem, it now runs under 4.2.1. Another one for the readme perhaps?

iphone-link-opts='-weak_framework Foundation'

Thanks once again.

Cheers, Steve

----- Original Message ----- From: "macieks" reply@reply.github.com To: "stevemonks" mail@stevemonks.com Sent: Tuesday, May 15, 2012 11:38 AM Subject: Re: [s3eIOSiCloud] Crashes on pre 5.0 iOS (#1)

Hi Steve,

I'll try to look into this tomorrow or so but in the meantime can you confirm you are weak linking with Foundation library?

This is what my iphone-link-opts are set to in my MKB: iphone-link-opts='-lsqlite3.0 -weak_framework Foundation -weak_framework UIKit -weak_framework Security -weak_framework CoreText -weak_framework AddressBookUI -weak_framework MapKit'

Cheers, Maciej

On 15 May 2012 19:15, stevemonks < reply@reply.github.com

wrote:

Hi Maciej,

sorry to bother you again, but the extension is still crashing for me under iOS 4.2.1.

It's still crashing as it boots (i.e. before the Marmalade screen appears) so this is before any of my code has been executed. The last message that I see from the IPCU console is;

dyld: Symbol not found: _OBJCCLASS$_NSFileCoordinator Referenced from: /var/mobile/Applications/7C21282F-14C1-4321-AD0A-F5E09BD36409/ab.app/ab Expected in: /System/Library/Frameworks/Foundation.framework/Foundation

which is what I think is killing it.

I think I need to look into setting up Marmalade on my Mac then I can debug this myself - although the main reason I'm using Marmalade in the first place was to avoid doing that ;-)

If you do get a moment to look into it, that would be cool and any help would be appreciated.

Cheers, Steve

----- Original Message ----- From: "macieks" reply@reply.github.com To: "stevemonks" mail@stevemonks.com Sent: Tuesday, May 15, 2012 8:12 AM Subject: Re: [s3eIOSiCloud] Crashes on pre 5.0 iOS (#1)

No worries!

a game that may well have broken all records for poor sales performance within the App Store!

Hehe... not sure you'd win against my Puzzled Rabbit in sales ;) They've been very poor as well.

I guess one conclusion might be games with rabbits don't sale :)

Cheers, Maciej


Reply to this email directly or view it on GitHub: https://github.com/macieks/s3eIOSiCloud/issues/1#issuecomment-5709899


Reply to this email directly or view it on GitHub: https://github.com/macieks/s3eIOSiCloud/issues/1#issuecomment-5711623


Reply to this email directly or view it on GitHub: https://github.com/macieks/s3eIOSiCloud/issues/1#issuecomment-5712956


Reply to this email directly or view it on GitHub: https://github.com/macieks/s3eIOSiCloud/issues/1#issuecomment-5713842


Reply to this email directly or view it on GitHub: https://github.com/macieks/s3eIOSiCloud/issues/1#issuecomment-5714158

macieks commented 12 years ago

Thanks, done!

And thanks for the promo code :)

Maciej

On 15 May 2012 22:59, stevemonks < reply@reply.github.com

wrote:

Hi Maciej.

I did check if there was anything else needed, but I missed it because it's in the readme.txt and I only looked in the setup.txt (thanks for the credit by the way).

I imagine, like me, most Marmalade developers are not familiar with native iOS development and I've been unable to find any Marmalade specific documentation regarding weak linking of libraries, so that note doesn't really mean very much to me as it stands (I presume a weak link is a bit like a DLL under Windows?). An example of what to add and where to put it in the MKB may be more useful perhaps?

e.g.

To avoid problems on devices running pre iOS 5.0, be sure to add the following to the deployments section of your mkb if you are not already weak linking against the Foundation module;

iphone-link-opts='-weak_framework Foundation'

What do you think?

Anyway, thianks once again. It's not much of a freebie, but I've attached a Bomb Bunny Boogie iOS promotion code below should you feel like trying a different take on the bunny puzzle theme. Feel free to pass it on if you don't fancy trying it out yourself. Enjoy.

Cheers, Steve

www.digitalapplicationdesign.com

Promo code (expires 4 weeks from 15/5/12);

HLMLKRWL37NW

----- Original Message ----- From: "macieks" reply@reply.github.com To: "stevemonks" mail@stevemonks.com Sent: Tuesday, May 15, 2012 1:03 PM Subject: Re: [s3eIOSiCloud] Crashes on pre 5.0 iOS (#1)

Glad it worked for you :)

I actually added a short note about this as well but maybe I could be more clear when I say "weak link with Foundation library". I'll fix that.

On 15 May 2012 21:42, stevemonks < reply@reply.github.com

wrote:

Hi Maciej,

thanks for chasing this up. I had no iphone specific link options set in the MKB for my app, to be honest I wasn't aware I needed any in my main app (this kind of thing seems very poorly documented in Marmalade).

Anyway, adding the following to the deployments section of the MKB seems to have fixed the problem, it now runs under 4.2.1. Another one for the readme perhaps?

iphone-link-opts='-weak_framework Foundation'

Thanks once again.

Cheers, Steve

----- Original Message ----- From: "macieks" reply@reply.github.com To: "stevemonks" mail@stevemonks.com Sent: Tuesday, May 15, 2012 11:38 AM Subject: Re: [s3eIOSiCloud] Crashes on pre 5.0 iOS (#1)

Hi Steve,

I'll try to look into this tomorrow or so but in the meantime can you confirm you are weak linking with Foundation library?

This is what my iphone-link-opts are set to in my MKB: iphone-link-opts='-lsqlite3.0 -weak_framework Foundation -weak_framework UIKit -weak_framework Security -weak_framework CoreText -weak_framework AddressBookUI -weak_framework MapKit'

Cheers, Maciej

On 15 May 2012 19:15, stevemonks < reply@reply.github.com

wrote:

Hi Maciej,

sorry to bother you again, but the extension is still crashing for me under iOS 4.2.1.

It's still crashing as it boots (i.e. before the Marmalade screen appears) so this is before any of my code has been executed. The last message that I see from the IPCU console is;

dyld: Symbol not found: _OBJCCLASS$_NSFileCoordinator Referenced from:

/var/mobile/Applications/7C21282F-14C1-4321-AD0A-F5E09BD36409/ab.app/ab Expected in: /System/Library/Frameworks/Foundation.framework/Foundation

which is what I think is killing it.

I think I need to look into setting up Marmalade on my Mac then I can debug this myself - although the main reason I'm using Marmalade in the first place was to avoid doing that ;-)

If you do get a moment to look into it, that would be cool and any help would be appreciated.

Cheers, Steve

----- Original Message ----- From: "macieks" reply@reply.github.com To: "stevemonks" mail@stevemonks.com Sent: Tuesday, May 15, 2012 8:12 AM Subject: Re: [s3eIOSiCloud] Crashes on pre 5.0 iOS (#1)

No worries!

a game that may well have broken all records for poor sales performance within the App Store!

Hehe... not sure you'd win against my Puzzled Rabbit in sales ;) They've been very poor as well.

I guess one conclusion might be games with rabbits don't sale :)

Cheers, Maciej


Reply to this email directly or view it on GitHub:

https://github.com/macieks/s3eIOSiCloud/issues/1#issuecomment-5709899


Reply to this email directly or view it on GitHub:

https://github.com/macieks/s3eIOSiCloud/issues/1#issuecomment-5711623


Reply to this email directly or view it on GitHub: https://github.com/macieks/s3eIOSiCloud/issues/1#issuecomment-5712956


Reply to this email directly or view it on GitHub: https://github.com/macieks/s3eIOSiCloud/issues/1#issuecomment-5713842


Reply to this email directly or view it on GitHub: https://github.com/macieks/s3eIOSiCloud/issues/1#issuecomment-5714158


Reply to this email directly or view it on GitHub: https://github.com/macieks/s3eIOSiCloud/issues/1#issuecomment-5715127