Xcode doesn't copy XIBs - ios

For some reason Xcode 6.3 doesn't copy XIBs (in both mac and ios projects) until I update/save them. So if I do clean and build, no XIBs will be copied. There are no errors in build log.
But it works if I create a new simple project.
How can I fix this?

Related

Xcode 9 (beta 3) / iOS: Adding files to a project - how to make it copy the files into the project's directory

Lately I've been having to update my older 32-bit Enterprise projects to 64-bit. The easiest way for me to do it is to just start over, but copying many of the files (such as images and sound files) from the old project's folder. I'm finding that when I use the "Add files" feature, the files don't exactly copy from the older folder, they just reference from there. Because I am OCD, I'd like to keep the old and new folders separate.
So my question is, is there a way to set Xcode to copy the files to the new project's folder? I know I can just copy the files from one folder to another using Finder, but I would like to have Xcode do it for me on a case-by-case basis.
If I drag and drop from the finder, Xcode will ask if I want to copy the file "if necessary." I always select that option, but I don't know what "if necessary" means, and it never does that. It would be great to have the ability to force copy the file.
Thanks for any help you can give me.
I too faced the same issue with Xcode 9 Beta.
This is a bug in xcode 9 beta.
Just now i tried xcode 8.0. Drag and drop worked fine. You can user any other stable version of xcode to copy files.
FYI Stable version of xcode 9 has been launched this may be fixed in that. Just take a look at it Xcode 9.

Proper way to debug your own framework project from main app project in Xcode 8?

I have read about two possibilities for that:
To build the framework as debug, to add it to main app project, and run the main project also as debug. Breakpoints should allow you to inspect the frameworks code stepping into it.
To add somehow the framework project itself to the main app project
I tried first one and it is not working for me. I get an Couldn't Generate Swift Representation when trying to step into framework's code. If this option should still work in Xcode 8 and Xcode 8.1, what settings should I check?
If the best/only option now is the second one, how should I properly set that?

Using two Xcode projects with one target

I have one app I am trying to build called "App". I have an Xcode project called App.xcodeproj that lives in a Xcode workspace called App.xcworkspace. That is all working.
This is what I want:
A second Xcode project (AppCore.xcodeproj) that I can separately build on iOS or Mac. However there is no need to actually run the project (app). It will be the data layer of my app.
I then need to be able to access the files inside AppCore.xcodeproj from App.xcodeproj.
Update:
In this project, I will be using CloudKit. The Core project is the only thing interacting with CloudKit, however the actually target (app) using CloudKit is the "main" project.
How can I accomplish this?
Here is the tutorial GIF:
Remarks:
You can add existing project as well, just drag it into you xCode project.

Xcode Localization Building -

I am trying to build the project. The project has localization.
When I build the project, it does not create Base.lproj in the .app.
So, it crashes for Base localization.
This has happened only after the checked-in the code, then checked out a new code.

How can I modify the xCode project automatic which generate by Unity?

I create a Unity project and generate an xCode project . Aways I should and some frameworks or static libs to the xCode project to make it run . So I want make this progress automatic.
I found some tools to modify the xCode project . such as "Mod PBXProj":
https://bitbucket.org/darktable/mod-pbxproj/src
My question is that how can I call the tools(such as "Mod PBXProj") to modify the xCode project after the Unity project generate the xCode project . Or are there any other method to modify the project?
If you will open unity application as a folder, there will be a folder of xCode project, wich unity just copies while build. you can add there any files you whant (or replace), and on every new build, unity you use modified files.

Resources