Forcing Xcode 4 to Compile XIB to NIB

I updated the Xcode 3 project, which has three goals for Xcode 4. My goal sets no longer have NIB files - only XIB files. The new Xcode 4 project has both (at least in the simulator). I do not see any difference between the old and new settings of Xcode projects to take this difference into account.

How do I get Xcode 4 to compile XIB files and put NIB in my package?

+6
source share
2 answers

Decision. Select all the XIB files, change the file type to something unusual ("Objective-C Preprocessed Source"), and then set the BACK file type to the default type (IB CocoaTouch XIB). Deselect all files (for example, Xcode may freeze for a while), clear the project, remove the previous version from the simulator (s), and now the assembly should contain only NIB, without XIB.

Man always wins at the end. (Using BaldEagle.)

+21
source

I found another solution:

Go to β€œBuild Settings” or the project goal, find β€œ Other flags of the Builder interface compiler flags and add the '- all' flag.

What is it.

0
source

Source: https://habr.com/ru/post/886036/


All Articles