Hello,
I work with XCode 12.5 and Swift 5. I am a member of a development Team. I finished my first App and I want to start with Beta Testing using Testflight. I already tested the app on my mobile device and everything works fine. Furthermore I followed every step of this article: https://developer.apple.com/documentation/xcode/preparing-your-app-for-distribution
This article describes the steps to distribute my App for Beta Testing: https://developer.apple.com/documentation/xcode/distributing-your-app-for-beta-testing-and-releases
On of the first steps is creating an archive of my app. When I do this I don't get the option "Distribute App". I only get the option "Distribute Content".
The following distribution methods doesn't contain the options i need.
I already tried the solutions mentioned here: https://stackoverflow.com/questions/55467829/xcode-10-1-doesnt-show-distribute-app-option-when-archiving-cant-archive
In this article it seems like the solution is to change the "skip install" value. I have the "Skip Install" once in the "Projects" and "Targets" section. I already tried each combination of ticking yes and no, but the result stays the same.
I also tried it with different provisioning profiles. Once with the Type "Development" and once with the type "Distribution".
This is the first app that i wrote and published through the App Store. It could be that i am missing out something obvious? I am glad for everyone who can help me!
Thanks in advance Jakob
So there must be something wrong with the settings I guess?
Indeed.
Can you archive the project from this post
No I can’t. Well, I can do a Product > Archive but the Organizer says Distribute Content not Distribute App. Fascinating!
Checking the .xcarchive
reveals that the Products
directory is empty, just like in your case. The build settings reveals the problem. Check out this screen shot:
So Skip Install:
-
Starts out as No in the iOS defaults column.
-
Is not explicitly set in any of the columns.
-
Ends up as Yes in the Resolved column.
The only obvious source of the Yes value is the SampleCode.xcconfig
file, but it does not set this build setting.
Weird.
Anyway, after a bunch of spelunking I finally figured out what’s going on here. It seems that the app target has the Installation Directory (INSTALL_PATH
) build setting set to the empty string. So when you build an archive Xcode doesn’t put the app in the archive because it doesn’t know where to put it.
I’d appreciate you filing two bugs about this:
-
A bug against the TrueDepthStreamer sample code asking that it not set the Installation Directory this way.
-
A bug against Xcode asking for better diagnostics in this case.
Please post your bug numbers, just for the record.
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"