Distributing an app

Post Reply
User avatar
plantenkennis
Posts: 151
Joined: Wed Nov 25, 2015 7:13 pm
Location: the Netherlands
Contact:

Distributing an app

Post by plantenkennis »

Hello,

When my app is ready I want to distribute it to other users. And at this moment I want to test my app by some other people. However, when I copy my app and the needed databases to another directory so I can share it, the app won't run anymore. There is a sign on the app logo and when I doubleclick on the app I get the notification:
"you can't use this version of the program Plantenkennis.app with this version of OS X. U have OS X 10.11.6. The program needs OS X 10.12 or higher."
I suppose i must do something with my app so I can distribute it. What is needed?

René
Kind regards,

René Koot
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: Distributing an app

Post by Antonio Linares »

René,

To support OSX versions lowers to the one that you are using, you need to use an older SDK from Apple.

Another way is to build on such lower OSX version with its corresponding Xcode and SDK (located inside Xcode)
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: Distributing an app

Post by Antonio Linares »

I just found this:

https://github.com/phracker/MacOSX-SDKs
A collection of those pesky SDK folders. Compiled from various releases of XCode.
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
plantenkennis
Posts: 151
Joined: Wed Nov 25, 2015 7:13 pm
Location: the Netherlands
Contact:

Re: Distributing an app

Post by plantenkennis »

Hello Antonio,

The strange thing is that I work on one laptop with MacOS 10.11 wich is the latest version. On this laptop I build my program. When I copy my program to another folder on the same laptop I get the warning.

I also don't believe there is a version 10.12 at this moment?
Kind regards,

René Koot
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: Distributing an app

Post by Antonio Linares »

René,

MacOS Sierra is 10.12

Please have your settings this way:
Image
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
plantenkennis
Posts: 151
Joined: Wed Nov 25, 2015 7:13 pm
Location: the Netherlands
Contact:

Re: Distributing an app

Post by plantenkennis »

Hello Antonio,

OK, that explains things. I have updated Xcode last week, but have not yet updated to Sierra.

A friend had some problems when he updated, due to security keys that didn't work anymore. (SSH 1024/2048). I will update this weekend and hope SourceTree will still work then.

René
Kind regards,

René Koot
User avatar
plantenkennis
Posts: 151
Joined: Wed Nov 25, 2015 7:13 pm
Location: the Netherlands
Contact:

Re: Distributing an app

Post by plantenkennis »

Hello Antonio,

I have updated my Mac to Sierra (10.12) and now everything works fine again. Also updated SourceTree and everything is working smoothly again.

Another question I have is:
Can I place the databases and all other needed files in the app-package and if it is possible, how can I access them. Is there a path I can refer to?

René
Kind regards,

René Koot
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: Distributing an app

Post by Antonio Linares »

René,

Try to use functions AppPath() and ResPath()
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
plantenkennis
Posts: 151
Joined: Wed Nov 25, 2015 7:13 pm
Location: the Netherlands
Contact:

Re: Distributing an app

Post by plantenkennis »

Hello Antonio,

Yes, Perfect, these functions do the trick. I have put my databases, photos and bitmaps in the app package. With the given functions I can open my databases and work with them.

Thanks!

René

Tonight I will update the repositary with all new functionallity. You have to put the next folders in the app folder 'resources': Databases, foto, temp.
Folder 'resfiles' must be put in 'resources/bitmaps'
Kind regards,

René Koot
Post Reply