Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

ali.m.habib

macrumors newbie
Original poster
Jan 12, 2011
14
0
Hi ,

I added compiled.mach-o executable file to the main bundle of my ipad application , how to call it and pass parameters to it


Best regards
 
excuse me

I am newbie , and misunderstood you could u give me more details and example


Best regards

No as doing what you are trying to do is banned on the app store. You can only have one executable. Your one executable may not use plugins or launch any other executable code. So if you want to get your app on the app store you will have to think of a different approach.
 
No as doing what you are trying to do is banned on the app store. You can only have one executable. Your one executable may not use plugins or launch any other executable code. So if you want to get your app on the app store you will have to think of a different approach.

it's empeded in the code actually it's only one could u give me the manner
 
I am confused: if you have a single executable within the bundle then you never need to be able to call that executable or pass parameters to it: iOS will automatically run that executable when the user touches the icon for your app in the Springboard. I suggest you describe, in detail and clarity, preferably using full words not "u" and other text-speak shortenings that make you exceptionally difficult to understand, the structure of what you have and what you are trying to accomplish.
 
I am confused: if you have a single executable within the bundle then you never need to be able to call that executable or pass parameters to it: iOS will automatically run that executable when the user touches the icon for your app in the Springboard. I suggest you describe, in detail and clarity, preferably using full words not "u" and other text-speak shortenings that make you exceptionally difficult to understand, the structure of what you have and what you are trying to accomplish.


I added existing file (compiled.mach-o executable) I want to call it from my application , it'll be embeded , calling this file reuired parameters
 
I added existing file (compiled.mach-o executable) I want to call it from my application , it'll be embeded , calling this file reuired parameters

This is exactly what I have already told you is banned: you may not call any executable from your own code. All executable code must be compiled into a single executable which is what the iOS Springboard calls.
 
This is exactly what I have already told you is banned: you may not call any executable from your own code. All executable code must be compiled into a single executable which is what the iOS Springboard calls.


and I again say how to do that
 
What part of "you can't" don't you understand?

it's abcjgraound (like batch in widows) it's doesn't have any user interfacce

so it will not as a new program or application

is this available , am I give more explanations

Best regards
 
it's abcjgraound (like batch in widows) it's doesn't have any user interfacce
This makes no difference to the rules: whether the executable has a UI or not your executable may not start any other executable
so it will not as a new program or application
If it's a different file on the file system then yes, it is a new program at an OS level so will get your application rejected.

The only way to re-use the code is to compile it into your main application executable. If it's GPL code that will, of course, mean you have to GPL all the code to your application.

Whatever you choose to do I'm not going to help any more.
 
This makes no difference to the rules: whether the executable has a UI or not your executable may not start any other executable

If it's a different file on the file system then yes, it is a new program at an OS level so will get your application rejected.

The only way to re-use the code is to compile it into your main application executable. If it's GPL code that will, of course, mean you have to GPL all the code to your application.

Whatever you choose to do I'm not going to help any more.

this file wil be embeded in the main application, the outbut will be only one application , I want to use it like batch in windows
 
You need to statically link any code you want to execute during your main application's build so that it is included inside the main app's one binary file. Everything else, all other binaries or files, are rendered non-executable by the OS sandbox. So adding a mach-o binary to a bundle is pretty much worthless.
 
You need to statically link any code you want to execute during your main application's build so that it is included inside the main app's one binary file. Everything else, all other binaries or files, are rendered non-executable by the OS sandbox. So adding a mach-o binary to a bundle is pretty much worthless.

execuse me foor my naive uestions, but I am totally newbie , so could u give me more details
 
Stop spamming, it's not possible. u asked same in iphonedevsdk. and they also said it doesn't work..

first of all, I am not spamming , I send to you the file to make my question clear no more no less ,

secondly it's not your business if I am spamming or not
 
first of all, I am not spamming , I send to you the file to make my question clear no more no less ,

secondly it's not your business if I am spamming or not

Code:
storescu: Mach-O universal binary with 2 architectures
storescu (for architecture i386):	Mach-O executable [B]i386[/B]
storescu (for architecture x86_64):	Mach-O 64-bit executable [B]x86_64[/B]

Something tells me it isn't going to work on any current iOS device. :p

EDIT: Read the top part of this: http://www.na-mic.org/svn/NAMICSandBox/trunk/vtkPacs/Doc/PatchingDcmtk.txt for some hints.

B
 
Code:
storescu: Mach-O universal binary with 2 architectures
storescu (for architecture i386):	Mach-O executable [B]i386[/B]
storescu (for architecture x86_64):	Mach-O 64-bit executable [B]x86_64[/B]

Something tells me it isn't going to work on any current iOS device. :p

EDIT: Read the top part of this: http://www.na-mic.org/svn/NAMICSandBox/trunk/vtkPacs/Doc/PatchingDcmtk.txt for some hints.

B
I rebuild it and it's now of kind Unix executable file (intel)

is it ablicable to be used ,
note , I rebuild using i386 only
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.