How can I configure my target to use a specific Info.plist in Xcode?
ios, macos, target, xcode
Solution
Have you set NSPrincipalClass in the info.plist for the OS X target? The NSPrincipalClass is the main class used to start the OS X app.
by rckoenes in the last comment
This was the solution.
Problem
I have an Xcode project with many, many targets (iPhone, iPad, OS X). I need to have different Info.plist files for each of my targets. For iOS, I don't run into any issue, everything builds fine. But for OS X, I get the following message: ``` No Info.plist file in application bundle or no NSPrincipalClass in the Info.plist file, exiting ``` In the OS X target build settings I've entered: ``` Info.plist File: /MyApp/Resources/Info-osx.plist ``` How can I get around this issue? Is there something I did forgot to specify? Thanks.