Page 1 of 1
PureBasic APP not running on other Macs
Posted: Sat Dec 26, 2015 5:59 pm
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?
Re: PureBasic APP not running on other Macs
Posted: Sun Dec 27, 2015 1:26 pm
by Wolfram
Whats happent when you run the 10.9.5 compled App on 10.7?
Re: PureBasic APP not running on other Macs
Posted: Sun Dec 27, 2015 2:51 pm
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.
Re: PureBasic APP not running on other Macs
Posted: Sun Dec 27, 2015 7:04 pm
by Wolfram
Can you show the main part of you code?
Re: PureBasic APP not running on other Macs
Posted: Sun Dec 27, 2015 7:11 pm
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
Re: PureBasic APP not running on other Macs
Posted: Sun Dec 27, 2015 8:40 pm
by Wolfram
These two lines must work.
Try to do right click on your app and choose open.
Re: PureBasic APP not running on other Macs
Posted: Mon Dec 28, 2015 5:28 am
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.
Re: PureBasic APP not running on other Macs
Posted: Mon Dec 28, 2015 8:45 am
by Kukulkan
Better you run it from the command line. Maybe the output tells you something?
Re: PureBasic APP not running on other Macs
Posted: Mon Dec 28, 2015 10:47 am
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".
Re: PureBasic APP not running on other Macs
Posted: Mon Dec 28, 2015 10:52 am
by Kukulkan
coder14,
go to the folder:
Code: Select all
cd /Applications/your.app/Contents/MacOS/
run it using
./ (dot slash):
Post the result here.
Re: PureBasic APP not running on other Macs
Posted: Mon Dec 28, 2015 11:38 am
by coder14
Kukulkan wrote:coder14,
go to the folder:
Code: Select all
cd /Applications/your.app/Contents/MacOS/
run it using
./ (dot slash):
Post the result here.
Got something!!
With the dot slash I get "Permission denied". The security is set to "Allow apps downloaded from Anywhere".
Re: PureBasic APP not running on other Macs
Posted: Mon Dec 28, 2015 1:58 pm
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.
Re: PureBasic APP not running on other Macs
Posted: Mon Dec 28, 2015 4:57 pm
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
Re: PureBasic APP not running on other Macs
Posted: Sat Jan 09, 2016 4:20 pm
by deseven
try setting the executable bit
Code: Select all
chmod +x /Applications/your.app/Contents/MacOS/YourApp