I tried to create a static library for my iOS device using Xcode 6.1.
I select on Xcode a new project with the Cocoa Touch Static Library template and name it MyLib. For the purpose of MyLib, I choose iPhone 6 in the simulator.
After the project was opened, I created MyLib with success.
But if I look at the Products folder, libMyLib.a will turn red and nothing will happen if I want to show it with finder.
In previous versions of Xcode, it works as I find in some tutorials.
I found a solution: the library was created under
../Xcode/Products/Debug-iphonesimulator/libMyLib.a
If I switch the target to my real iPhone 6, it also works, and in the Product Folder libMyLib will be black, and the library will be created under
../Xcode/Products/Debug-iphoneos/libMyLib.a
source share