Reputation: 13284
I tried to build my app both for adhoc distribution and release, and either way, the archives don't show up in Organizer. The build succeeds and the app and dsym file show up as expected, but no archives - Organizer says "No Archives."
Other notes:
1) I don't think it's related to the SKIP_INSTALL property in Settings. I had that issue months ago, and corrected it. I also went through my Build Settings and verified SKIP_INSTALL was set to No for the static libraries again, just to be sure - Archive does not appear in xcode4 organizer
2) I can build debug and run the app just fine.
3) I build apps from several user accounts on this iMac, and the other user accounts generate archives OK, for other apps.
I have tried searching, but I am stuck. I was wondering if I should try reinstalling Xcode.
Upvotes: 3
Views: 8205
Reputation: 297
This problem happened to me in Xcode 7.1. while archiving an iOS Ionic Cordova app.
My problem was caused by not having the correct Scheme selected. There were two schemes available under Product > Scheme, one was my-app-name and the other was 'CordovaLib' which was selected and caused empty archives to be created with sweet FA appearing in the Organizer (and no error messages or anything).
To actually change the scheme to my-app-name I had to do it from the weirdly designed dropdown on the top left of Xcode main interface. It's not possible to change it from the Product > Scheme menu even though it looks like you can.
Once I changed the scheme my archives started working and appearing in the Organizer.
This link has further info: https://developer.apple.com/library/ios/technotes/tn2215/_index.html#//apple_ref/doc/uid/DTS40011221-CH1-XCODE_SUCCESSFULLY_ARCHIVED_MY_APPLICATION__BUT_THE_ARCHIVES_ORGANIZER_DOES_NOT_LIST_MY_ARCHIVE
Upvotes: 1
Reputation: 1254
This was happening to me and my solution was to completely exit xcode reopen and try the archive again, totally fixed. Must be a bug of some sort.
Upvotes: 0
Reputation: 69027
You did not mention that you checked the default location where Xcode stores the archives. You could double-check it under Xcode > Preferences ... > Locations.
If that does not help, I would try renaming the directories related to Xcode under the account where Xcode is not archiving correctly. I.e.:
~/Library/Application Support/Developer ~/Library/Application Support/Xcode ~/Library/Developer
I would also suggest to copy the project that Xcode is not archiving over to a different account and trying to archive it from there. That would help pinning down if the problem is project-related or account-related.
Hope this helps.
Upvotes: 3
Reputation: 5707
I had this same issue and none of the solutions you've already tried helped me either. I found this answer Archives not showing up in Organizer for XCode 4 which had the fix for me.
In short, my Installation Directory under the Deployment section in my Build Settings was blank. I set it to "/Applications" and was able to see my archives again.
That being said, I am working on another project where this field is blank and I am having no issues. It could be that XCode just barfed and needed this field changed to SOMETHING and that I could have just as easily changed it back from /Applications to a blank value. Or, alternatively, setting the blank value in my current project to "/Applications" could keep things working fine. But, if it ain't broke...And in the former case, it was broke, and changing this field worked for me.
Upvotes: 5
Reputation: 2908
But, to build on an iOS Device you must have the proper certificates installed and appropriate changes made under the Target heading.
Upvotes: 0
Reputation: 12832
Why not use command line as an alternative? Try this script, even if command line alone doesn't suit your needs, maybe it will shed some light on what's wrong? See if you can create a valid ipa file with this script (you'll need to populate the variables with paths specific to your system):
cd "${PROJDIR}"
xcodebuild -target "${PROJECT_NAME}" -sdk "${TARGET_SDK}" -configuration Release
if [ $? != 0 ]
then
exit 1
fi
/usr/bin/xcrun -sdk iphoneos PackageApplication -v "${PROJECT_BUILDDIR}/${APPLICATION_NAME}.app" -o "${BUILD_HISTORY_DIR}/${APPLICATION_NAME}.ipa"
Upvotes: 1
Reputation: 150615
Make sure that you are building a scheme that uses a Build Configuration that uses a Distribution certificate, and also that you aren't building for the Simulator but for the device (you don't have to have one plugged in, but you need to choose that as the destination).
Then, go to the Product menu and choose Archive.
Upvotes: 0
Reputation: 1229
The problem you describe has ever happened to me but, in my opinion the solution should be found in the Edit Scheme option of the Product menu, there you can find the Archive section and its configuration.
Check the option Reveal Archive in Organizer, the Build configuration, etc...
I hope that this may help you...
Upvotes: 0