XCodeProj, .App files on DropBox - ios

When I drop a .XCodeProj or .App file in DropBox (and there I am assuming, other packages)the files in the package seems to be randomly not copied--sometimes none of them are copied, sometimes some of them, never all of them.
This happens even when I zip the file, copy it to dropbox and unzip it there.
How could DropBox have this grave an error this far along in it's existence? Lost a whole day of work finding this out. Disastrous.
In particular the project.pbxproj file was NEVER successfully copied into dropbox, or at least never made it to any of my other drives that were synced with the first.
Does anyone know if there is a fix for this?

.app is essentially a directory, so Dropbox will see it as one and uploads each individual file in there.
You need to zip your project directory then sync to dropbox; same would go for the .app.

Maybe you need to delete previous version of the file you want to upload to Dropbox (.XCodeProj, .app or .zip) with the web interface and then try upload it again. You can do this in 3 easy steps:
Log in to Dropbox
Click the "Show Deleted Files" button
Find and delete the old version of the file you want to upload (The grey one)
Also: Dropbox doesn't upload the whole file everytime you upload a newer version of it, infact it only uploads the newer parts (But I'm not 100% sure about this).
I hope my answer can help you :-)

Related

Xcode files in Red - but file still there

I've been working on an Xcode project on my desktop, and I was trying to save it to GitHub, so I could access it on the road. I've saved it to GitHub before, without issues, and the local Desktop version was working fine. After saving it to GitHub, I tried downloading it on the laptop, to make sure everything was fine, and one file was in red. It doesn't look like it was saved or even exists. I get a "Build Input File can't be found" error.
I went back to the Desktop version - that file is there and everything works. I thought, maybe I messed up with GitHub, so I tried to save it to iCloud, and then emailed myself a zip copy - same thing. Every other version, but the desktop version, had that one missing file in red.
I've looked at other posts for those with similar problems, and all the answers seem to say the same thing - the file was moved or deleted; however, it is still there on my original desktop working version. Any thoughts as to what is going on or what I should do are welcome.
I'm working on XCode 13.1, on a Mac running iOS 12.1
Follow up - locked files:
As some of you suggested, the file could be locked. It didn't appear so, and I thought it unlikely, as I don't know how to lock them. I copied the one file over, added it, and it is running, however, I got this warning when I tried to save and close it:
Locked file warning
I went through the steps to unlock it, and curiously, finder says it is not unlocked. Not locked but I'm getting the warning
Everyone has permission too
Any ideas as to why this might be? I'm stumped. I did try locking and then unlocking it, but no dice. I still get the error I don't have permission because it is a locked file.
Probably the file is not inside the project folder. This can easily happen with resources such as images and sound files that you copy to the project navigator. The project works fine but it has an external reference to the file. If the project folder is copied, eg zipped, the file is missing because it was not part of what was copied.
This generally occurs when you moved or deleted that file within Finder.
So try to delete that file from your project in Xcode and then re-add that file to your project folder in Xcode. Then your file would be working fine.
first: get your file from the current full path and cony it to any location on your mac enter image description here
Second: delete the red file from Xcode
third: drag file from the new location to Xcode don't forget to check on copy if you needed :)

'Export to zip file' in Android Studio leads to 1.2gb + archive size

First of all, I am a complete beginner. I am always using 'export to zip file' to save my flutter code (I am not familiarized with Github right now ;-) ). The overall filesize of the zip is now around 1.2 gigabyte - Android folder: 60mb, iOS folder: 1.1gb.
It is a simple chat app without much graphics etc.
Is it normal? Don't want that the final app size is that large. Any idea how to save my code without that much overload?
Best,
Alex
Yes, that's normal - you have a whole bunch of intermediate build artifacts under your source folder.
The purpose of those .gitignore files that you find in your source tree is to tell git which files are the temporary build files or other configuration files specific to your machine. Git uses then to decide which files should be saved for posterity in source control, and which ones it should ignore.
If you are not going to use git, use the gitignore files to see which folders you can manually exclude from your zip file. (The build folder will probably be the main culprit.)
I highly suggest you use git. You can use dropbox or google drive folders for your project, this way they can auto sync your files. Try to compress your project folder from your operating system's file manager and compare the sizes. I don't think 1.1gb ios folder is normal.
Usually this must not happen (until u have used large media files).
One reason of file size increase is,
"apk / aab" files in "app\release" folder are not deleted while project is build,
like they are deleted in "app\build\outputs\apk\debug" folder.
You can delete previous signed apk from "app\release",
(if you have published them).
As these "apk / aab" are safely stored on google developer account.
Also don't forget to export your ".zip"
out of the project folder other wise it be like "zip in zip and zip in zip and so on ..."

How to open Xcode Projects on a Different Mac/Hard drive

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 accidentally deleted hundreds of files involved with the iOS SDK - I hit "Move to Trash" instead. How can I reinstall these OS X api files?

I deleted files from all sorts of frameworks - UIKit, Foundation, SystemConfiguration. I can see the files in my trash ban but there's no option to put them back in their original location.
Some of these file names include: uiselection.cpp, uiupdatehandler.cpp, usediids.cpp, etc...
Any help is greatly appreciateed
Open your Trash Can (if the files are still in there) and then select the files you want to restore and in the Finder, go to to the "File" menu and choose "Put Back".
If Put Back isn't enabled, that usually means the parent folder has also been deleted and Fogmeister's suggestion of re-installing Xcode is the way to go.
If the files are actually deleted and not in your Trash Can, then let this be a lesson to you to make use of Time Machine (which is built into MacOS). All you need is a separate hard drive to serve as a backup device.

Xcode 4, how to send entire project/workspace?

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 :) .

Resources