Process class not working in swift 3 [duplicate] - swift

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

Looking for "portability oriented mobile application development" learning resource? [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 1 year ago.
Improve this question
G'Day Developers,
I am about to hook my self into developing application for iOS platform, However my clients have no idea how to develop on iOS but they are familiar with Android and Windows mobile platform. So they insist me to develop their application in iOS in such a way that they can follow some of the fundamental ideas and start their project for Android and Windows later on.
Long story short : Is there any set of guidelines which can help me to produce design models and codes which later can be used in other platforms(...not syntactically but semantically...)?
Thank you for any input,
Well the easiest way to do portable applications is to web applications (e.g. html5).
Then there are a number of packages on the market that allow you to access the hardware on the phone which you can use in your web application. These packages would then contain the device specific code allowing your application to stay portable.
Example of such a package is sencha but there are many more.

Where to get previous versions of iOS disk image? [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 5 years ago.
Improve this question
I just became a member of iOS Developer Program and I'm reading the document iOS Developer Program User Guide. It says:
Download the iOS Disk Image (.dmg) from the iOS Dev Center for the Apple device you are using.
Well, in my Xcode Organizer, I can see two versions: 4.2.1(8C148) and 4.3.2(8H7). Suppose I want to test my application on previous version of iOS, say 4.0 or 3.x. Where can I find/download the iOS Disk Image(firmware) as the document says?
Thanks.
Apple has made it difficult to downgrade firmwares on iOS devices. Once you upgrade past 4.2.x (I think), you may not be able to go back. Nonetheless, you might go here for older firmwares.
you mean the firmware's IPSW ? Google has some good results:
http://www.iphoneheat.com/2009/03/download-iphone-firmware-files-all-at-one-place/

Testing an iphone web app on windows [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
When developing web apps for the iphone on a mac you can test your app in either Iphoney or the apple supplied simulator; bot of them are excellent for the task but are only available for macs. So I have to ask, are windows alternative for these iphone simulators?
So far I could only find this one.
For a roundup of mobile sims see here. https://stackoverflow.com/questions/464089/simulators-emulators-for-mobile-browser-testing
Specifically http://www.testiphone.com/ (but I'm not sure of the quality of the results from this).
I've also got a Firefox plugin, but its only really good for size.
Your other option, all-be-it naughty and long winded is to run OSX - either on a hackintosh or there are blogs showing how to run it in VMWare player.
You can also try iBBDemo. I relatively new at it, but so far it's the robustest free windows iPhone emulator I had tried yet.
There is also MobiOne which looks like the most promising of all.This is a windows only emulator with lots of features (setup file is 130mb). However even if its not clear right now, I believe at some point you would require to buy a license for it (considering its made by the same company that makes myEclipse, but I might be wrong).Any way its worth the download time
Hope this helps

Where to download old iphone SDKs? [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 5 years ago.
Improve this question
Not immediately seeing where to download legacy versions of the iphone SDKs. I can get the latest 3.1.3 release and 3.2 betas off the Apple developer site, but a lot of example code I'm finding online was written for 2.0-2.2 and it is still relevant code, but I can't build them because I don't have the 2.0-2.2 SDK. Thanks!
Well what I'm doing is using the 3.1.3 SDK, then setting the target to 2.x or 3.x depending on my needs. I don't have XCode open but look under Project or Build menu items.
You can also set build it using the following instructions: iPhone Development Guide - "Specifying the Buildtime Environment"
They're tough to find on the iPhone Developer section of ADC, here's a good listing of all the old SDKs download URLs.
You need to be an official iPhone developer, and login first to download these:
http://iphonesdkdev.blogspot.com/2010/04/old-versions-of-iphone-sdk.html

iOS Private API Documentation [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 7 years ago.
Improve this question
Is there a web site or project documenting private APIs for the iPhone SDK?
here are searchable archives from iPhone OS 2.2.1 to iOS 9.2
https://github.com/nst/iOS-Runtime-Headers
Most likely. Just use the command line application class-dump to view the private headers. Note that your app will be rejected from the App Store for linking to private frameworks if you link at compile. It is easy enough to see that you are linking the private frameworks by running otool on your binary if linked at compile.
These are the compilable headers generated by class-dump-z, a iOS class dumper:
http://github.com/kennytm/iphone-private-frameworks
You might also find my "private-dumper" ruby gem useful: http://rubygems.org/gems/private-dumper