Can I build and compile an app built for jail broken iOS and run as a development app on my device? - objective-c

Just a quick q about iOS development..
I'd love to be able to run a certain game emulator on my iPad..
If it's released under open source is there any thing stopping me from compiling it and running it in an emulator or getting a provisioning profile and running it on my device?
Do jailbroken apps tend to use libraries that wont run on a vanilla copy of iOS?
I.e. Do they patch the kernel to get full control of the video controller etc..
Thanks
Daniel

I think the jailbroken apps can utilize eglibc or glibc, as when I jailbroke me iPod Touch, I remember looking over the installed packages, and remember seeing something along the lines of glibc.
In short, I think if the app is self-sufficient, you probably could package it with XCode, but if it requires some low-level APIs and libraries, you're out of luck.

Related

React Native, build for iOS

I have an app made with React Native that is already working on for Android.
I'm working on Debian 10.
For Android I build my app-release.aab file with this command:
bash android/gradlew --project-dir android --project-prop MYAPP_UPLOAD_STORE_FILE=my-key.keystore --project-prop MYAPP_UPLOAD_KEY_ALIAS=my-key --project-prop MYAPP_UPLOAD_STORE_PASSWORD=mypassword --project-prop MYAPP_UPLOAD_KEY_PASSWORD=mypassword clean bundleRelease
I've been creating this bundle for like a year with no problems, but now I have a task that is "now we want the iOS version"
What do I need to create this iOS version? I'm pretty lost, I have never created nothing for iOS, I just have this React Native app that works ok on Android.
I've been reading some mediums, youtube videos, and some questions here in Stackoverflow but they talk about that it's possible to create the app for both Android and iOS but I can't find a source of clear information about what I need for.
Do I need a Mac?
How should I create the bundle for iOS?
First, if you want to publish to the iOS app store, you need to buy a paid Apple Developer Program, regardless if you have a Mac or not.
Okay, if you have a Mac there is a good amount of documentation: https://reactnative.dev/docs/next/publishing-to-app-store and more. The below is if you do not have a Mac, or do not want to develop on it.
No Mac
You cannot build macOS apps locally without a Mac.
That being said, you could look at CI/CD, for example, Github Actions or Travis CI, as running macOS on them is possible. If you are already pushing your code to Github, I recommend Github Actions. If you do not want to use CI/CD, you can use Expo. With Expo, you can build your app on their servers, and all you need is a paid Apple Developer Program (no Mac).
With vanilla react-native for local development/builds you will need a Mac as Xcode (free) is required for iOS builds. It's propriety software to macOS. You will also need an Apple Developer account to setup development/distribution certificates for deployments.
You can then use Xcode and the iOS certificates/provisions to generate a bundle for iOS.

Can i develop react native IOS apps on windows pc

Can i able to develop react-native IOS apps in my windows pc, if possible then please reply with what are the requirements and setup require to develop and run react-native ios apps in windows pc
No, you can't.
Check the official 'getting started guide' here:
https://facebook.github.io/react-native/docs/getting-started.html#requirements
Requirements OS X - This guide assumes OS X which is needed for iOS
development.
You need to run xCode in order to build app on Simulator or iPhone.
It is possible to build, package, and deploy IOS apps from a pc or linux machine using a couple different methods.
One would be using a service like BuddyBuild (https://www.buddybuild.com/). You can just point them at the git repo you want to package, give them your certificate, and go from there.
Your other option would be to rent a cloud machine running some version of OS X. They are typically pretty cheap and you wouldn't need to do it very often.
You can use a cloud build service like Mobile Center or Circle CI, or run a "hackintosh" virtual machine image in VirtualBox.
The latter breaks the Apple MacOS EULA, and the former has longer feedback cycles to learn if your code builds or not.

Installing iOS apps without Apple Developer Program on iOS 7

I'm trying to install my iOS app on to devices running iOS 7.0. I can install them on my iPhone 4 with iOS 5.1 jailbroken. But currently I'm not able to do so on a friend iPad 4 with iOS 7.0.
For installing them on JB devices I'm using JailCoder .
It works without any problem and I can code and compile my test apps, and put them on JB devices without any effort.
Recently trying to investigate possibilities I found an application named PP25 for Windows, it is a chinese application and it is said to be able to install cracked apps on NON-JB devices.
So i tried to see ig it works somehow, I was able to get my apps converted as ipas from my phone and download them to desktop with it, and i can then upload on other JB devices, thanks to a Cydia application named AppSync, pretty good indeed, but I tried and wasn't able to install them on iOS 7.
That was disappointing, I made additional tests and it appears that the PP Assistant application is able to install cracked apps on iOS 7.0 too, but not my unsigned apps (fails to verify the app rights).
Indeed there is a section in the chinese application where you can download and install commercial apps on iOS 7.0, so there must be a trick they use to re-sign the apps to make it appear as it's a legit app and thus be able to upload to the device even if not jailbroken.
If someone has any idea of what they actually do to make this happen, this would be very useful to know to test apps without JB on every device.
Non-jailbroken devices require valid code-signing to execute binaries. Either wait for a jailbreak to surface for iOS7.X, or find a code-signing service (they are available out there).
Using Xcode 7, you can install your app to your device using a freely available Apple ID.
Free On-Device Development
Now everyone can run and test their own app on a device—for free. You can run and debug your own creations on a Mac, iPhone, iPad, iPod touch, or Apple Watch without any fees, and no programs to join. All you need to do is enter your free Apple ID into Xcode. You can even use the same Apple ID you already use for the App Store or iTunes. Once you’ve perfected your app the Apple Developer Program can help you get it on the App Store.
See Launching Your App on Devices for detailed information about installing and running on devices.
Source

Testing on pre-IOS4

I have a problem with an app that works perfect on my iPhone 4, and on my 3Gs but both are on iOS 4. BUT, when a colleague installed it on his 3G with 3.1.2 on it... it crashes on startup.
Is there someway I can test to install the app in a 3.1.2 simulator of some kind?
He didn't send me his crash logs yet.
Best regards,
Paul Peelen
I haven't done this for the simulator, but you can find links for the old SDKs here:
http://chris-fletcher.com/2010/08/28/howto-install-iphone-sdk-2-0-3-1-for-xcode-3-2/
You should be able to install the old simulator SDKs and have them show up in the simulator menu.
Dealing with multiple SDKs has proved to be extremely painful in my experience. If you end up installing an old SDK, I'd recommend you install it in a separate "Developer" folder.
In my opinion, the best way to deal with 3.x debugging is to get your hand on an old iPod touch with 3.x installed. You can get one for pretty cheap from a local classified ads site and it really makes 3.x debugging a lot easier.

Programming for Ipad from Windows [duplicate]

This question already has answers here:
Closed 12 years ago.
Possible Duplicates:
iPhone development on PC
iPhone development on Windows
Do I really need a Mac to make small simple apps for iPad? Is there any kind of work around? Cool IDE?
Yes, you need an Intel-based Mac to develop for iPhone/iPad if you want to do so with their native SDK.
There are workarounds, a few of which are listed here but they may be rendered unusable with the latest version of iPhone OS since they will soon disallow just about anything that doesn't use the native SDK
I wasn't going to post it, but you did say any reply :)
Browser based (safari compatible) apps would be one "work around". I know it's a weak answer, but sometimes people miss the obvious answers so there you go.
Yes. And you can use Xcode IDE
You will likely need OS X.
Both Monotouch and XCODE run on OS X.
If you can get OS X to run on a non-Mac then no, you don't need a Mac.
However, realistically... yes you do.
The iPhone and iPad SDK relies on code that comes packaged with the Mac OS. If you want to build legitimate applications and have the possibility of listing those apps in the iTunes store, you must build them on a Mac.
There are ways around this to build apps that will never be distributed ... but those methods tend to be highly illegal.
You can still develop iPhone/iPad WebApps that look like native apps on pretty much any web development platform/toolset.
While I am not an attorney, based upon the new SDK agreement, I believe you can use HTML, CSS, and JavaScript to create native iPhone/iPad apps. There is actually a book already there that talks about how to do that. Here is the book, http://www.amazon.com/Building-iPhone-Apps-HTML-JavaScript/dp/0596805780/ref=sr_1_1?ie=UTF8&s=books&qid=1274474001&sr=8-1
If you want to create small simple apps for iPhone/iPad, you can create a Web app that runs in Safari using HTML. You can actually create fairly slick apps with this method and make them look like native apps. I've create some using jQTouch and they look like native apps. You can test them either in Safari on Windows or on your iPhone or iPad.
It wouldn't be easy to develop an iPhone/iPad application on Windows. You would have to install OSX86 on your PC, or run a virtualized OSX install through vmware if possible. Apple is incredibly restrictive on software provisioning and app store approval, so you may have a hard time testing and releasing your app later on. For these reasons and more, I'm switching to Android development.