Running compiled native code inside an iOS App - iphone

I have a compiled program I wrote in native c, which i can run on the my Iphone using
terminal and the command "./myCApp"
Is there a way to launch it through Code?
I've tried System("./myCApp")
or popen("./myCApp","r+)
and both didn't work.

I don't think you can launch a code in device programmatically unless it has some url scheme.

Related

Flutter App can't launching in iPhone without connecting to the computer?

I can build & launching app well in my iPhone when my phone is connecting to the macbook , and launching by the command line flutter run.
But when i disconnect my iPhone from the macbook . and I want to launch the app from the iPhone's desktop. the app seems can't launch , and will exit very soon.
Is there any way to launch flutter app from the iPhone's desktop?
This is happen because you are building iOS app in debug mode, run app in profile or release mode and it will fix.
Thanks for the #eamirho3ein's answer: change the debug to release fix the problem.
In fact, there is one thing to be metioned: the default config in xcode for command-line build is release already, but if you change this mode won't help. the mode needed to be change is the flutter run mode.
there are many ways to do this.

How to have iPhone emulator on Windows using Flutter?

I am new to Flutter. I want to test my app on an iPhone emulator (or simulator) just to see how does it look in real time?
I am using these:
Windows 10
Visual Studio Code
It is not possible. You need macOS to install Xcode, without which iOS development & running is not possible.
With windows, you cannot even run it on an iPhone if you had one.

THEOS: Shell Terminal Commands using THEOS

I am making a jailbreak app using theos for iPhone. But, I need to know how to run terminal commands using theos to complete my app. Thanks,
Jacob
You can use system("yourcommand");

Launch an application on the iOS simulator with using command line

Good Morning,
I am trying to launch an application on the iOS Simulator with command line so i put this command in the terminal:
open `xcode-select --print-path`/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone\ Simulator.app
With this command, the simulator is launched. My question is how can I start an application from the terminal?
I have used WaxSim (referenced in rog's comment) and it works pretty well. You can find it at https://github.com/square/WaxSim. For what it's worth, there have been no commits for something like two years and there are a number of open pull requests.
Recently I have started using ios-sim which can be found at https://github.com/phonegap/ios-sim. It looks like (currently) it is active and seems to have more functionality. So far, I haven't had any problems with it (although I have not used it in anger yet).
I do not have enough reps to write it as comment.
ios-sim is used by Facebook and lot of other companies for running automated tests and launching stuff via commandline into iOS simulator.
You can download it from the git repo, just open it in XCode and build it.
The executable will be generated in the Build>products folder.
(For XCode 6 ~/Library/Developer/Xcode/DerivedData/ios-sim-xxxxxx.../Build/Products/)
https://github.com/phonegap/ios-sim
Here is a command to run the .app in iOS6 simulator:
ios-sim launch ./MyApp.app --devicetypeid "com.apple.CoreSimulator.SimDeviceType.iPhone-6"

Testing GWT application on Mobile Emulator

I want an android and iphone emulator to run on windows to test my gwt application on windows. can someone point me to a proper emulator because i've been trying some with no success
The official iPhone simulator does not run on Windows. Seems you have to get a Mac ;-)
However the Android emulator can be installed pretty much anywhere:
http://developer.android.com/guide/developing/tools/emulator.html
If you point the Andorid browser in the emulator to your GWT application you should be able to test it. You can find messages from the browser in LogCat, watch out for the logging tag WebCore. You can even log from within your code and get the output in LogCat, see:
http://developer.android.com/guide/webapps/debugging.html