Is it possible to add content into ipa file? - ios

In Android we can extract apk files and add content of these files into a single file. we can also entry the newly added activity in android.manifest file.
Is it possible to add content in ipa and rebuilt it for device?
Please help me.

Is it possible to add content in ipa and rebuilt it for device?
No. From your comment above, you're looking to modify the application itself by adding view controllers. That would require rebuilding the application, and you'd need the source code for the app for that, not the .ipa file.
It is possible to modify resource files in the archive and then re-sign the .ipa file, so you could change an icon, replace images, etc. But adding view controllers is different because they need to be compiled and linked with the rest of the application code.

No you cannot modify any ipa file once it is built. However, you can view the content of particular app file by converting ipa to app . After you have converted an ipa file to app file you can check the content by right click on it and the choose show package content.
How to convert ipa to app file:
Right click ipa file -> open with archive utility (or winrar), it will create an app file, right click app file - > show package content.

If you are trying to get source code of the app and edit according to your requirements then it may not be possible with the app available to app store but i can't say for enterprise app.

iPA stands for iPhone Achieve and any changes in iPA can produce problem to build so if it needs to add few Xib or Viewcontroller then its better to add these in xcode and run and build new iPA . Hope this helps.

Related

how do i choose which program to archive from xcode IOS as i have two main files in my flutter app?

I have a flutter app with two main.dart files. One is main_prod.dart and the other is main_dev.dart. I can run the application through both of these files which have different configuartions. I am planning on uploading both to testflight, but cant find a way to choose the one i want to upload.
Any suggestions?
I found answer:
You go on the "Generated" file and switch FLUTTER_TARGET=path to main.prod or main.dev here

What "source code files" are needed to turnover (continue develop of) an iOS application?

I am working with a developer on an iOS app and upon completion, all source code, files, etc. should be turned over to me so that I can continue development in the future with another developer if necessary. I need help understanding exactly which files I should receive.
Should I be ok with .ipa file? Or maybe .app file? Or the Xcode project file? What will ensure that I have all I need to continue development in the future?
You will receive the project folder, which contains a .xcodeproj file and other files such as images assets. You can download a demo project from here.
You won't receive an .ipa file because the .ipa files are the ones you download from the App Store (they have been archived), hence no one can see their code so people can't steal it.

How to link a custom framework or library against an iOS executable/binary file?

First of all, this is for enterprise ad-hoc apps, not for submitting to the app store.
I have created a framework(could also be a static library) that contains some categories. I would like to use some command line tool to link this against an executable file in an ipa file. Create a combined/modified executable file. Then re-sign and package the app to modify some of its behavior. Is this possible? The bottom line is, sometimes I don't have the source code and can't build this in xcode. All I have is an ipa file.
My thought is to tell the dynamic linker to load it(DYLD_INSERT_LIBRARIES) but I don't know the exact command. Can someone provide me some details?

Is it possible to disassemble & reassemble an iOS IPA file from the command line?

I've got an issue with how PhoneGap:Build is currently building iOS applications: splash screens are duplicated, greatly increasing the compiled file size of my applications.
Previously they had an issue wherein they were copying the wrong icon into the Android XHDPI icon folder for Android builds, and I was able to write a script that automated fixing this bug post-build since they seemed to show no interest in fixing the bug (almost a year now since the original bug report & while it seems it might be fixed presently, they haven't commented lately).
I know that I can rename an IPA to a ZIP, unzip it, and browse its contents. I could automate the following steps easily:
Rename
Unzip
Find & remove originals for splash screen images via config.xml file
Re-zip (& rename?)
...But I'm not sure where I'd have to go from there. I've found a few threads that discuss using Xcode to run different utilities, perform signing, etc; but they all seem to assume you've got an xcode project locally, which I don't. (I use PhoneGap & PhoneGap:Build specifically to avoid those headaches.)
I'll have access to all of the same key files that are uploaded to PhoneGap:Build for the original signing process, and I know all of the necessary passwords. I have Xcode installed (just not a local xcode project)...
Is it possible to re-assemble a "fixed" zip into a signed IPA for dev/release distribution using command line utilities & without creating a local Xcode project? If so, how?
Yes, this is possible.
You can export an IPA, unzip it, delete the duplicate file (assuming your code doesn't reference it), then re-sign the app and zip the IPA back up.
You'll find examples on how to use the commandline tool "codesign" to resign a .app directory on stackoverflow!

iPhone device: A valid provisioning profile for this executable was not found

I am having an issue when trying to load my application using the application loader.
Getting error message when trying to load the .zip file using the application loader...
"The application wrapper must end in .app /var/folders//5g/...."
I did the Product/Archive, but Archive is gray out .... I am not able to load my application neither from Xcode nor application loader. I am new to iOS... I have looked my application files and I don't see any .app file. is that it? I have created an application by using storyboard... any tips?
Thanks.
When using the Application Loader you need to upload an .app file. The ipa (or .zip) file that you have is an archive that contains an directory (Payload) with the .app file that has the name for your application. That's the file you need to upload from Application Loader
For uploading it from XCode you need to archive it, or go to Organize->Archives and select submit to AppStore from there.
If you have the Archive option disabled from the Product menu you need to select iOS Device as target in the run target drop down. You probably have iPad/iPhone Simulator X.X selected now.
Hope this helps.

Resources