PureBasic APP not running on other Macs

Mac OSX specific forum
coder14
Enthusiast
Enthusiast
Posts: 327
Joined: Tue Jun 21, 2011 10:39 am

PureBasic APP not running on other Macs

Post by coder14 »

I am able to run my PureBasic Mac code on my 2 Macs 10.7.5 (PureBasic 5.40 & Xcode 4.6.2) and 10.9.5 (PureBasic 5.40 & Xcode 6.1.1) interchangeably.

But when I compile on the 10.9.5 I can run the APP on the 10.7.5, but the APP compiled on the 10.7.5 cannot run on the 10.9.5. The security settings on both Macs is "Allow applications downloaded from ANYWHERE".

Why?
Wolfram
Enthusiast
Enthusiast
Posts: 610
Joined: Thu May 30, 2013 4:39 pm

Re: PureBasic APP not running on other Macs

Post by Wolfram »

Whats happent when you run the 10.9.5 compled App on 10.7?
macOS Catalina 10.15.7
coder14
Enthusiast
Enthusiast
Posts: 327
Joined: Tue Jun 21, 2011 10:39 am

Re: PureBasic APP not running on other Macs

Post by coder14 »

Wolfram wrote:Whats happent when you run the 10.9.5 compled App on 10.7?
It does not launch. The icon animates but nothing happens. If I try to run the app inside the show folder contents it opens an empty terminal window.
Wolfram
Enthusiast
Enthusiast
Posts: 610
Joined: Thu May 30, 2013 4:39 pm

Re: PureBasic APP not running on other Macs

Post by Wolfram »

Can you show the main part of you code?
macOS Catalina 10.15.7
coder14
Enthusiast
Enthusiast
Posts: 327
Joined: Tue Jun 21, 2011 10:39 am

Re: PureBasic APP not running on other Macs

Post by coder14 »

Wolfram wrote:Can you show the main part of you code?
It is the same for any code even simple open window does not work. If compiled on the Lion it will run on the Lion but not the Mavericks. But if compiled on the Mavericks it will run on both.

Code: Select all

OpenWindow(0, 100, 100, 100, 100, "")
Repeat : Until WaitWindowEvent() = #PB_Event_CloseWindow
Wolfram
Enthusiast
Enthusiast
Posts: 610
Joined: Thu May 30, 2013 4:39 pm

Re: PureBasic APP not running on other Macs

Post by Wolfram »

These two lines must work.

Try to do right click on your app and choose open.
macOS Catalina 10.15.7
coder14
Enthusiast
Enthusiast
Posts: 327
Joined: Tue Jun 21, 2011 10:39 am

Re: PureBasic APP not running on other Macs

Post by coder14 »

Wolfram wrote:These two lines must work.

Try to do right click on your app and choose open.
@Wolfram Thank you for your help but right click open is the same as double click.
User avatar
Kukulkan
Addict
Addict
Posts: 1415
Joined: Mon Jun 06, 2005 2:35 pm
Location: germany
Contact:

Re: PureBasic APP not running on other Macs

Post by Kukulkan »

Better you run it from the command line. Maybe the output tells you something?
coder14
Enthusiast
Enthusiast
Posts: 327
Joined: Tue Jun 21, 2011 10:39 am

Re: PureBasic APP not running on other Macs

Post by coder14 »

Kukulkan wrote:Better you run it from the command line. Maybe the output tells you something?
I tried to run it from Terminal but it says "command not found". I cd to Contents and MacOS but still "command not found".
User avatar
Kukulkan
Addict
Addict
Posts: 1415
Joined: Mon Jun 06, 2005 2:35 pm
Location: germany
Contact:

Re: PureBasic APP not running on other Macs

Post by Kukulkan »

coder14,

go to the folder:

Code: Select all

cd /Applications/your.app/Contents/MacOS/
run it using ./ (dot slash):

Code: Select all

./yourAppName
Post the result here.
coder14
Enthusiast
Enthusiast
Posts: 327
Joined: Tue Jun 21, 2011 10:39 am

Re: PureBasic APP not running on other Macs

Post by coder14 »

Kukulkan wrote:coder14,

go to the folder:

Code: Select all

cd /Applications/your.app/Contents/MacOS/
run it using ./ (dot slash):

Code: Select all

./yourAppName
Post the result here.
Got something!!

With the dot slash I get "Permission denied". The security is set to "Allow apps downloaded from Anywhere".
User avatar
mk-soft
Always Here
Always Here
Posts: 6554
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: PureBasic APP not running on other Macs

Post by mk-soft »

My security is set to default and no problems with downloaded APP´s

Check with DMG-Creater. http://dmgcreator.sourceforge.net
Perhaps the security settings are copied.
My Projects EventDesigner V3 / ThreadToGUI / OOP-BaseClass / Windows: Module ActiveScript
PB v3.30 / v5.75 - OS Mac Mini - VM Window Pro / Linux Ubuntu
Downloads on my OneDrive
Wolfram
Enthusiast
Enthusiast
Posts: 610
Joined: Thu May 30, 2013 4:39 pm

Re: PureBasic APP not running on other Macs

Post by Wolfram »

coder14 wrote:
Wolfram wrote:These two lines must work.

Try to do right click on your app and choose open.
@Wolfram Thank you for your help but right click open is the same as double click.
No, if some thing is wrong with the security settings a window will pop up and ask "these program runs the first time on your mac. do you want to allow that?"

If this doesn't help, check the permission of your app. You can do this easily with Batchmod.
http://www.lagentesoft.com/batchmod/index.html
macOS Catalina 10.15.7
User avatar
deseven
Enthusiast
Enthusiast
Posts: 367
Joined: Wed Jan 12, 2011 3:48 pm
Location: Serbia
Contact:

Re: PureBasic APP not running on other Macs

Post by deseven »

try setting the executable bit

Code: Select all

chmod +x /Applications/your.app/Contents/MacOS/YourApp
Post Reply