"There was an error importing this build" tvOS

Hello everyone,

I'm struggling with this error: "There was an error importing this build."
I was actually able to upload the binary through the Application Loader but It goes from "Processing" to "There was an error importing this build.".
There are no informations about what went wrong.

Does anyone have simillar problem ?
It's tvOS app linked against tvOS 9.1, built and archived using xCode 7.2, written in Swift, I'm using 2 external frameworks (written and added to the project by me, no cocoapods/carthage) with bitcode enabled.

TL;DR: Still no luck, itc fails to import my builds.

Okay so I've spent last 2 days trying to figure out whats wrong with my code.

  • I've moved code from my frameworks directly to the app and removed frameworks to exclude bitcode as a root a problem
  • Regenerated distribution ceritificates
  • Removed Crashlytics/Fabric
  • Verified and tested development build ( to make sure that xcode is able to compile from bitcode )
  • Changed deployment target to 9.1


I've got only 2 ideas left:

  • Go back to old icon we used to have
  • Create new project from scratch, copy assets and code, try to archive


Did anyone of you got more luck?

I already recreate a new project with copy all my code with no success

Accepted Answer

I started seeing the error message "There was an error importing this build." when submitting first tvOS app update right after the Xcode 7.2 and tvOS 9.1 updates. I have since then submitted tens of builds and they all result in the same error.


I actually went ahead and started removing code from my project piece by piece and found out that the cause of the iTunes Connect error is this usage of UISearchContainerViewController class. I'm using the container to have a UISearchController in a tabbar item. Removing the few lines where the UISearchContainerViewController is initialized and added to tabbar removes the iTunes Connect error and the builds get processed successfully.


let containerVC = UISearchContainerViewController(searchController: searchController)
let nav = UINavigationController(rootViewController: containerVC)


Already submitted a bug report about it and informed Developer Support. I hope it gets fixed soon.

Thank you for the information.

The problem appear like you since XCode 7.2 and I have too a UISearchContainerViewController.

Thank you so much! I would have never guessed that it might cause a problem.

I will also file a rdar so maybe it gets noticed.

For now I've disabled a search page inside my app and it made the build pass through the import process. ( You need to actually remove all references to this class, even if you are only subclassing it).

Thank you very much, it works.


For my knowledge, can you tell me what is a rdar ?


Thanks.

It's a bug report

bugreport.apple.com - you can submit bug reports here

Awesome man! Thank you so much. By the way, can you please inform us whenever you'll get news from apple regarding the bug report ?

It would be fantastic 🙂

Ok thanks for clarification.

Thanks for sharing your results. Hope Apple will fix that soon, since we can't remove our search controller from our release.

Thanks pasi, for your effort.


My problem was that I only had UISearchControllerDelegate on my tabbar controller. I was planning to implement search.. but never did. Also it worked just fine with previous version of Xcode.


Thanks again. Solved

"I tried uploading using xcode 7.1.1 but it keeps failing as with xcode 7.2. When you say "Also it worked just fine with previous version of Xcode" do you mean with the UISearchControllerDelegate still being declared on you tabbar controller ?


Thanks

Removing UISearchContainerViewController also worked for my app. Let's hope they fix this issue soon.

Yes of course, I'll post an update here once I get more information!


I had a long phone call today with developer support about this. They now know all the details and are trying to resolve the issue. Let's hope this gets fixed soon.

How can I track bug resolution status?

"There was an error importing this build" tvOS
 
 
Q