NSTask or equivalent for iPhone [closed] - ios

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I've an open source project (gdal) that I want to compile and run as part of an iOS app. I had been expecting to use NSTask but I see now that it was removed in iOS 3.0. I've also seen elsewhere that running external applications, though this would be a resource in my app's bundle, is not allowed.
Has anyone else found a way to run commandline tools within their iOS applications?

It wasn't removed in 3.0, it was never there. There is no way to run separate processes on the iPhone. GDAL appears to be under an MIT style license and has a library interface, so directly linking it into an iPhone app shouldn't have any legal or technical issues.

NSTask is available in ios 4, ios 3 and possibly all of them. To use NStask I had to copy the NStask header file from my mac to my project folder. Also Apple will most likely not allow an app that uses NStask in the appstore. Cydia would probably be the best place to distribute your app

Just reminder:
NSTask will not work under sandbox environment (you will get "deny process-fork"). So put your application into /Applications

Related

Selenium Equivalent in Swift/iOS [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 3 years ago.
Improve this question
I have used Selenium for making python projects and now I want to try similar projects in Swift with Xcode using Selenium. Unfortunately, I quickly found out Selenium is not for Swift or iOS apps.
I have been spending the last two days researching on a Selenium alternatives for mobile but have not been able to find anything. Everything I have found so far seems to be outdated. Is there any alternative that is for the current version of Swift and Xcode?
The ONLY option available for automating iOS devices is with Appium and the XCUITest driver.
(Unless there are other drivers recently made that utilize XCUITest, which is an apple tool set).
XCUITest-driver can be found here
Luckily, many of the driver commands will be the same as, say, the UIAutomator2 driver for android. They inherit the same base classes/interfaces after all.
You will need to run these tests on your Mac laptop or desktop, as it is not possible to interact with an iOS device as a developer on non apple products.
Here is a set of server bash and python scripts that I used to launch a video game on to iOS (and android devices). This is not identical to what you need, but it should provide a lot of help that you might need.
Github server files (python and bash)
Wiki explaining how to implement and get this working

Is there any SDK for the new Nokia 3310? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
As confirmed by Nokia, the old phone is returning with new hardware.
Will we be able to easily develop anything for the beloved phone?
I can’t speak for the 2G version, but the new Nokia 3310 3G does appear to support some J2ME apps. I was able to install the last release of the Google Maps app, a weather app, and an email app that actually appears on the Opera Mini store. Some jads do say they’re not supported (Note Plus 4) and one had the character sets all messed up (Anyview EBook reader).
EDIT: I confirmed that I was able to side load an (untrusted) app I developed (a very long time ago) using Java 2 Micro Edition SDK.
It was also my first question that came to mind after the unveiling of the new 3310. I was hoping for a nostalgic throwback to mobile java apps.
However, it seems like the OS (s30+) doesn't support J2ME, so definitely no third-party java apps. I guess there might be a slim chance they'd add some kind of app store by the time they release the new 3310, in which case you could develop apps in MRE SDK (maui runtime environment). If I'm not mistaken MRE is in C.

NSTask missing in iOS? [duplicate]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I've an open source project (gdal) that I want to compile and run as part of an iOS app. I had been expecting to use NSTask but I see now that it was removed in iOS 3.0. I've also seen elsewhere that running external applications, though this would be a resource in my app's bundle, is not allowed.
Has anyone else found a way to run commandline tools within their iOS applications?
It wasn't removed in 3.0, it was never there. There is no way to run separate processes on the iPhone. GDAL appears to be under an MIT style license and has a library interface, so directly linking it into an iPhone app shouldn't have any legal or technical issues.
NSTask is available in ios 4, ios 3 and possibly all of them. To use NStask I had to copy the NStask header file from my mac to my project folder. Also Apple will most likely not allow an app that uses NStask in the appstore. Cydia would probably be the best place to distribute your app
Just reminder:
NSTask will not work under sandbox environment (you will get "deny process-fork"). So put your application into /Applications

Windows/Linux iOS App Development (Compilation not needed) [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 8 years ago.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Improve this question
I was wondering if there is a way to develop iOS applications on Windows or Linux. While this may seem like a duplicate question, there is one more thing which I was unable to find in the already-existing questions: I do have access to a Mac. "Why don't you just develop it there," you may ask; there's a hitch: it's my girlfriend's Mac, so I can't monopolize it for the amount of time an app would take to develop.
So, basically, here is what I want to do: I would like to do the coding (and preferably some amount of pre-device testing) on Windows (or Linux) for the app, after which I can move it over to the Mac for compilation. Is there some free way of doing this (I've looked at Xamarin and Marmalade, but I cannot afford the licenses for those)? Thank you.
P.S. While I realize that nothing is stopping me from simply cracking open Notepad++ and going at it, I was hoping for something with slightly better testing capabilities.
Xamarin, KendoUI, PhoneGap, Cordova are all frameworks that utilize HTML5, CSS, and JavaScript to create apps that are portable to Android, Web, Windows Phone, BlackBerry and iOS. You need to find a framework like that. In order to compile for iOS/iPhone you need a Mac, but to develop you'll need one of those frameworks above. There is no native way of modifying in Windows, and compiling. Of course you could edit .m and .h files in a standard text editor, but you can't debug or compile unless you are in XCode on a Mac.
Unity3D/Unreal Engine 4 you can work in Windows, and it'll output the iOS XCode Project files, and source code. But you'll still need a Mac to compile it. One of the strict requirements by our friends at Apple.
Once the app is compiled you can submit to the App Store via Application Loader or directly in XCode. I've also heard people submit to the app store via Windows once it is compiled, but haven't done this myself.
The above frameworks work but are not native code. If you want native, Xamarin compiles to Objective-C but has steep license. What it comes down to needing a Mac and Xcode to create native iOS applications. You can attempt a hackintosh but that may not be the easiest solution.

How to run newer app version on unsupported iOS versions? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
I like the redesigned version of Evernote and want to install it on my iPod touch 4th gen. with iOS 6.1.3. I opened up its plist file, looked for any parameter that would relate to iOS version restriction but I couldn't find any.
Does anyone know where/how I can edit the source code so I can use it on my iPod touch?
You can't just edit the minimum OS version and expect it to work. There are several problems with that.
The app bundle is read-only, and code-signed. Any changes to it and it won't run. You could probably solve #1 on a jailbroken phone.
App developers tend to use OS features and APIs from the minimum OS version without any runtime testing that those features are available, because the system is supposed to prevent the app from running on earlier OS versions. If you defeat the minimum OS check and the developer uses a class or method that is not in the older OS, the app will crash.

Resources