I have a mobile Flex project which I am deploying to iPhone/iPod and Android. I'm having an issue getting my app under the 20 MB 3g size limit. I am including some images and a video which amount to 1.5 MB. The swf for the build is 2.8 MB and the resulting ipa is 9.7 MB with the app file being 22.4MB. The app store shows the final size as 21.1 MB, though I understand Apple needs to add additional things to the package is it really supposed to grow that significantly? What started as 3.3 MB has now grown to over 20 MB.
I've seen people say that all that matters is the ipa size, which is obviously not what is happening here. Any thoughts?
ipa is a compressed format and the download size is uncompressed. In other words, users don't download the ipa file in it's compressed state to their iPhone/iPod/iPad. If you rename ipa to zip and unzip it this is what you want to try and get below 20 mb. I'm having the exact same problem as you since the AIR overhead eats up a significant part of that 20 mb. Hope this explanation helps - good luck!
-Tom
Related
On my Macbook Air currently running Mac OS 10.13, I noticed that the size of individual disks don't add up to the total size, it's not even close.
Couple of months back I had installed 3 MacOS in different container, once I was done I erased them. Now I need to keep only one OS and extend it's size.
Why can't I see all disks here?
How do I extend the size of 'macOS-highSierra' to maxim possible?
After much research and trial, I figured that extending a container wasn't possible.
I had to backup the macOS-highSierra installation, then format the entire hard drive and restore the backup.
I used Carbon Copy Cloner to create backup and restore.
So I just updated my Mac with the latest macOS version 10.14.4 (18E226) but had to delete Xcode to make some space for updating the OS.
Currently I have 37 GB of free space, still while downloading Xcode from the App Store it shows
There is not enough disk space available to install the product.
How much space is required?
I have already tried clearing all cache files.
I was having the same problem. Even though macOS shows enough free space it does not have it as it accounts purgeable space as usable but I guess the installation of Xcode for some reason is not able to claim it.
A lot of space if probably held by TimeMachine local backups. You can claim space back by freeing that space with the terminal command
tmutil thinlocalsnapshots / 10000000000 4
This frees 10GB (took a little over a minute on my 2014 MBPro)
It worked for me. I had 40GB free, even after deleting my previous xCode version but was unable to install. After running that tmutil command it worked
For Xcode 12 - 30 Gb free, 40 Gb free - show an error "There is not enough disk space available to install the product."
So in my case - I clean my ~/Library/Developer/Xcode/iOS DeviceSupport/ folder, 50 Gb free - and now I can download Xcode 12...
Launchpod shows it needs to download 11,16 Gb, but you need ~50Gb of free space
XCode 12 requires you to have 40GB or more disk space or you will get the error "There is not enough disk space available to install the product.".
One can try to make space by clearing old iOS simulators from
"~/Library/Developer/Xcode/iOS\ DeviceSupport/" and "~/Library/Developer/Xcode/DerivedData/"
or
removing old xCode.
I used to download the Xcode xip file and copied it to an external drive. Then I open the Archive Utility app -> Preference -> Save expanded files to the Application directory. Now open the Xcode xip file from an external drive it'll extract the file to the application directory of mac. No need to have more space, I had only 18GB of free space.
Update: Xcode 12.5.1
Now it's working only if you've around 37GB of free space.
i had 42 GB Space and i was successfully able to install xcode 12.4 via app store.
Just found another solution which worked for me:
download Xcode from Apple Developer, and after the download completes open it with "Archive Utility".
Though you already got the answer. But I have solved this in other simple way by following steps
Run this command in terminal to install/expand the Xcode
xip -x ~/Downloads/Xcode_12.4.xip
For Application directory installation
cd ~/Applications #otherwise, will unpack into home dir
Note : You can use ur desired Xcode version like Xcode_10.2 or something else
Download Xcode manually from
https://developer.apple.com/download/more/
In my case, using also Android Studio to develop, I have to delete old simulators in folder:
/Users/UserName/.android/avd
➼ All you have to free 30+ gb space and then restart laptop.
Note: Restarting your laptop is must in order to get rid of this warning (There is not enough disk space available to install the product)
I guess you should check how much does your system file take up in your mac. I cleaned up a lot of redundant files categorized in system and left with 30GB free space, the Xcode.xip works!
in the android studio 2.3.3 the apk size 8.9M,but in the android studio 3.0 the apk size is 10.1M.Why this is?
It depends upon the language you used.
Base on this article Comparing APK sizes:
An app that is created in Java which is for example 539 KB will be 550 KB in Kotlin. Programming it using React Native will drastically increase the app size to 7 MB. With Flutter.io it will be 7.5 MB.
Also consider the library that you included, that is also one factor that increase the size.
I'm working on a big project and I have some serious problems with Xcode RAM management. In the informative app I'm working on I have over 90 UIVIewControllers on my storyboard. Once I open my project and go to my storyboard file (just changing labels, zooming in and out etc') it takes less than 2 minutes for Xcode to go from 400MB usage to 8 gigs.
This will only happen while I'm using the storyboard.
This never happened to me in other apps I've managed so I believe it got something to do with the size of this app.
The above was on a new MacBook Pro. To test things out I tested it on a Mac Pro with 16 gigs of RAM. First run, same issue. 16 Gigs of ram is used after less than 2 minutes.
Things I've tried:
Deleting DerivedData (the issue is on 2 different machines so it can't be it but tried it anyway)
Deleting project.xcworkspace
Read about stoping indexing BUT without autocomplete and quick help I'll have nothing to compile anyway
I'm using Xcode 4.6.3
sounds like it is a problem with that version of Xcode. I am using 4.6.3, and have never experienced this, (although the apps I work on are never that big). You should definitely try Xcode 5, even if you cant submit to the appstore, at least you'll be able to work on your app. Then you MIGHT be able to open it in version 4.6.3, and submit it from there, not quite sure it will work, but its worth a shot. Make sure you keep a copy of what you have so far incase your Xcode 5 version wont work in 4.6.3, so you dont loose your work. hope this helps.
Not a long time ago I updated Xcode to version 4. This new version spent a lot of time on indexing the project (it's quite large). That's why I would like to disable indexing. Searching through Xcode help and internet gave no results.
Open a terminal window and paste this command:
defaults write com.apple.dt.XCode IDEIndexDisable 1
You'll lose some features (autocomplete, jump to definition, some of the assistants won't work right). But you'll gain back ram and cpu.
For my project Xcode went from using 2 Gigs to a few hundred MB. (which I sorely needed to compile with ;))
Reducing the priority of the XCode process helps:
renice 10 -p PID
You can get the PID from the Activity Monitor or top/ps commands.
This problem has been noticed on this newsgroup:
The crux of it seems to be that XCode4 uses crazy amounts of ram during indexing - like, 5gb or so(!), and thus if you're on a machine with something like 12gb, there's no problem, but if you're on a laptop with only 2gb or so, you'll have some pretty severe paging going on.
I'm guessing apple's internal engineers were all rocking maxed-out mac pros or something.
I ran into either the same problem or something similar. My project includes heavily templated C++. Including those headers in the PCH file solved the problem for me.
My new retina Macbook pro running XCode 4 was extremely slow doing indexing (and everything else). My Mac mini at home was very fast working on the same project!? Turns out it was my anti-virus software - doing a scan of every file read or written on the MacBook. Turning that off sped everything up by a ton.
Slow indexing is not a given. And more memory isn't necessarily better.
I have a medium sized project for work ~ 500 source files. After deleting the derived data, it takes 18 minutes to finish reindexing this project. That's with no other apps open and not doing anything else with the computer. This is on a fairly recent Macbook Pro with 8G of memory and an i7. Horrible, right?
My home machine is a recent Mac Mini with 4G of memory and an i5. On that machine the exact same project takes 40 seconds to completely index.
I don't yet know what the difference is, but I'm working on it.
It's not possible to disable indexing in Xcode 4. Many of the IDE's features are built on top of the index it maintains.