I have a code written in C++ that I want to incorporate into my Xcode project. From that code, I have also created an executable (.exe) file. How would I link the executable file with my Xcode project, in such a way that I am able to send parameters from the Xcode project to the funcitons in my .exe file? I have been able to wrap my C++ code in Objective-C and incorporate it that way, however it would be simplest for me if I could find a way to get an executable file to run. So far I have tried to edit the product scheme (product -> scheme->edit scheme->info) and add my .exe file to the Executable field, but that has done nothing except give me the error "Found an unexpected Mach-O header code: 0x905a4d". I have also tried to add the .exe file to the Linking section of the project Build Settings, and have not had any success there either. I would really appreciate step-bystep instructions as to how I could accomplish this.
My Xcode project is written in Swift and for iOS.
Thank you.