Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid Swift Support - The SwiftSupport folder is empty. #2647

Closed
aldodfm opened this issue Sep 23, 2016 · 5 comments
Closed

Invalid Swift Support - The SwiftSupport folder is empty. #2647

aldodfm opened this issue Sep 23, 2016 · 5 comments
Assignees

Comments

@aldodfm
Copy link
Contributor

aldodfm commented Sep 23, 2016

Hello,

It seems that when you want to release your .IPA apps that use with Swift language, instead of compiling the IPA file with :
xcr.arg(['-sdk', sdk, 'PackageApplication', '-v', app, '-o', ipa]);

You need to use:
xcodebuild -exportArchive -exportFormat ipa -archivePath <path to archive> -exportPath <path to output>

Something that it's explained here: XCArchive to ipa

So, right now, with the current xcode task only works with objective-c projects, if you want to compile Swift project or projects with libraries in swift, you will receive an email from Apple saying:

Invalid Swift Support - We have discovered one or more issues with your recent delivery for XXXXX(my app name). To process your delivery, the following issues must be corrected:

Invalid Swift Support - The SwiftSupport folder is empty. Rebuild your app using the current public (GM) version of Xcode and resubmit it.

Once these issues have been corrected, you can then redeliver the corrected binary.

Right now i fixed this issue with following build definition steps:

  1. INSTALL cocoapods
  2. Xcode build (without xctool)
  3. execute shell script package_ipa.sh with arguments: $(agent.builddirectory)/output/$(SDK)/$(Configuration)/build.sym/$(Configuration)-$(SDK)/$(APPLICATION_NAME).app $(agent.builddirectory)/output/$(SDK)/$(Configuration)/build.sym/$(Configuration)-$(SDK)/$(APPLICATION_NAME).ipa

With this shell script, i can publish perfectly to testFlight with vsts-itunes task

@bryanmacfarlane
Copy link
Contributor

What version of XCode?

@madhurig
Copy link
Contributor

@aldodfm: Thanks for the details, I will update the task to use xcodebuild -exportArchive if it is Xcode 7 or higher

@aldodfm
Copy link
Contributor Author

aldodfm commented Sep 26, 2016

@madhurig , please take care about exportOptionsPlist file, where is defined what target will be exported. ;)

@madhurig
Copy link
Contributor

madhurig commented Sep 28, 2016

@aldodfm: Here is a PR with the design for export options if you wish to take a look: #2701. Feedback welcome :)

@madhurig
Copy link
Contributor

madhurig commented Oct 6, 2016

Fix has been merged and will be deployed to Team Services starting Oct 16th and should roll out to all accounts in about a week.

@madhurig madhurig closed this as completed Oct 6, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants