Much easier than I expected...
- Right click the project file in finder, and show package contents.
- Open the project.pbxproj file in some text editor.
- Replaced all occurrences of
-mac.a
with.a
. - Everything is now in order.
Question
In the products group in Xcode, I have the library "libMyLib-mac.a" in red, even after I build for device because I have changed the product name of the library in the targets of the project to "libMyLib.a".
Now, how can I update Xcode to show the new product name?
(Note: when I change the name back with the -mac suffix, the library is built and shown as available in the products folder.)
Solution
Much easier than I expected...
-mac.a
with .a
.