Reputation: 38172
I am using XCODE 4.2 & when I build my project I do not see libMyProject.a file under "Products" folder turning black even though my build is successful.
Where do these .a files gets stored. With 3.2.6, build folder used to be inside my project workspace.
Upvotes: 0
Views: 3073
Reputation: 784
You have to build it for device and not simulator. If you build it for device then its color would be red and you does not get project.app file. To get project.app file you have to build in device(iPhone/iPad/iPod Touch). After build in device the color of project.app file will change to black. Another procedure you can follow if you want to get only .app file not under Products folder.For that goto Products->Archive->Share then save. It will generate .ipa file. By changing app to zip and unzip the file you get the .app file.
Upvotes: 1
Reputation: 27536
You have to build it for device and not simulator for it to become black. But if you have only build it for the simulator, it will remain red.
As for the location of the binary, it is located in the Derived Data folder in the subfolder specified in Pre-Configuration Build Products Path which by default has the values build/Debug-iphoneos and build/Release-iphoneos
EDIT
You can change the product name in the Build settings of your target by modifying the value of Product Name in the Packaging group.
Upvotes: 2
Reputation: 22711
They normally get put into /Library/Developer/Xcode/DerivedData/{PROJECT_NAME_AND_RANDOM_CRAP}/Build/Products/{BUILD_TYPE}/{PROJECT_NAME}.app
Upvotes: 2
Reputation: 5245
When you build, check out the Log navigator (cmd-7). Read the log for your build: it will contain the full path to the build product.
Still, it should show up as a Product in Xcode...
Upvotes: 3