What are the different ways available so that We avoid code tempring in ios. Please suggest any good way that we can check at server level to avoid code tempring not in source code. And how we can check that server call from app is from authorize app.
iOS apps are most secured itself. It can not be tempered easily. While building your app no code file and XIB's kept as it is.
You can check it in these steps:
Right click on .ipa file and select Open With and then Archive Utility
Then it will create folder named Payload with .app file in it.
Now Right Click on .app file and select Show Package Contents
This will show you one folder with multiple files in it. Now try to open each file and read it. It will be in encrypted way.
For reference read this link
Related
I have an iOS project that includes a framework and a .dat file which is used by framework. I add the framework file and the .dat file to a folder in my project and things are working in this way.
However, the .dat file is so big and this makes my project size bigger. I want to download this file after installation to make my app size smaller.
Is it possible? If yes, how can I do that?
First you need to store .dat file on server and get link of that file and download it in app at very first launch.
When app is launched you need to check that .dat file is already exists in your device's doc. folder or not.
If not then you need to download it from url and store it in doc. dir.
When you successfully downloaded file you need to add a bool in user default to true to identify that file is dowloaded correctly, and you can check that too to identify whether file is downloaded or not.
if .dat file download is not successful than file will not be available in app. and you can perform some operations based on that.
Alternatively, you can just check the bool flag in user defaults to check for the successful download of file.
you can place that code in AppDelegate as there are several methods available for different app states.
Hope it will help you:)
Check this [On-Demand Resources]
https://developer.apple.com/library/archive/documentation/FileManagement/Conceptual/On_Demand_Resources_Guide/index.html#//apple_ref/doc/uid/TP40015083-CH2-SW1
I want to have a custom project file that a user selects in a UIDocumentBrowserViewController. That project file would then reference files in the same directory which would be opened and written to programmatically. I can't seem to get access to the project's sibling files programmatically (presumably due to sandbox restrictions). What's the best way to get this to work?
I ended up making the enclosing folder a document package, i.e. a folder that shows up in the file browser as a single file. I then had access to read all the files in it.
https://developer.apple.com/library/content/documentation/CoreFoundation/Conceptual/CFBundles/DocumentPackages/DocumentPackages.html
I recently got a new hard drive and reinstalled Mac OS X on it. I copied my entire folder with all my Xcode projects over. However when I tried booting up one by clicking the project file, Xcode opens up with only the project file present. All of the files with actual code on them are not appearing.
I tried to add files but even that would leave most of the files with code on them greyed out in the finder.
Question, what is the proper way of transferring these projects specifically in Xcode 7? I have not been able to find anything concrete.
So, the only way I know of to do this efficiently is to load up the project file XML in your favorite editor and go manually fixup the paths. I don't recommend this.
Unfortunately, the way to do it through the UI is for each file, you need to open the Utilities Bar on the right, select the file, then update the path via the little folder icon in the Identity and Type section. Here's an illustration:
Then repeat for every file in your project. Sorry.
i had this same issue i mean you could always manually transfer code through word documents or notes, but for me i had copied the entire project folder and the document transferred just fine just make sure you transfer all of the files with it and not just the one file for the project itself
delete the xcode application and reinstall it from the Mac App Store.
I am trying to submit my app to the app store. I have looked at a half a dozen questions similar to this one yet none have helped.
Here is the error:
Things I know. The file exist and had the correct path in the Build Settings.
It also exist in Finder.
Here is what is inside of the info.plist
Any idea what I am doing wrong? I cleaned and build cleaned the project. Even restarted my computer.
EDIT
Here is what the build log looks like when I search for .plist
The file is found in the project file
EDIT 2
Here is what the build file looks like.
EDIT 3
here is a photo from inside the app
Have you tried making sure the project has added the info.plist file on the backend? Sometimes, when you create a project, some of the files decide not to be added to the project on their own.
In this image example, I haven't opened by main.storyboard file yet, so it's red (indicating it "doesn't exist"). To fix this, you press the + button and add the file from your project:
This may not show up the info.plist file, however. As you can see in the second picture, it allows me to add in the info.plist file, but my main.storyboard file is currently unavailable.
If this is so, you'll have to select the 'Add Other' button. It'll bring up a finder window and you can select the file directly.
If this doesn't work, comment the results, please.
EDIT: IT WON'T ALLOW ME TO ADD THE IMAGES BECAUSE OF MY LOW REPUTATION ON THIS ACCOUNT
I have a project/workspace that I want to zip up and send to someone so they can compile it on their machine. It's an iOS app.
One thing I am noticing is when I zip the project directory it turns out to be over 1gb. I deleted the Derived Data folder in the project directory.
However, for some reason it's picking up derived data from ~/Librar/Developer/Xcode/DerivedData and putting it into the zip file.
There isn't, as far as I can tell, multiple projects.
What is the best approach to send someone the project with out it being huge?
Is there a way to turn off derived data?
Right click on "*.xcodeproj" and click on "Show package contents". Try to send the ".xcworkspace" included in it. Hope This is what you are expecting :) .