Why is it every time I submit for App Store it says Invalid Binary?

It’s happened for like 5th or 7th time in a row I know that I haven’t uploaded a app in a couple months now for the store just due to working on a new game for development but I’m not running a beta version of Xcode only the 1 downloaded directly from the Mac App Store. It is so frustrating and annoying at the time because I would really like to get my game out there and also see if Apple will accept it but it’s their system that seems to keep rejecting the app for whatever reason and I’ve spent months of development into it. At first I thought that maybe it was an issue with the project but after updating it all to the latest settings and everything it seems to still do it. I’ve tried it with the regular Xcode uploading in the archives and with the uploader that comes bundled in Xcode. I have submitted apps in the past and I’ve never had this much issues ever. Is like Xcode still really buggy or something? I wouldn’t really think Apple would’ve made that many changes from my last project from earlier in 2019 years when I successfully submitted back then.

Answered by ellj69 in 369611022

It would have been cool and maybe you should explain it for anyone else who has an issue like a simlar problem but for me this is what solved my issue was that I installed and downloaded a new verison of Xcode on a differnet Mac and everything works after that with the project and everything. No more errors now. I don't really say that it is a very good solution and I think that Apple should do more about this beacuse of others out there that do have similar issues. It is a very long way of fixing the problem and not would I think most people would want to do.


Which exact version of XCode are you using ?

Is it a Mac or iOS App ,

How do you ty to submit to AppStore (please be as precise as possible) ?

Could you report the full erraor message you get from AppStore ?

I'm using the latest verison of Xcode 10.2.1 downloaded from Mac App Store and latest verison of MacOS available for my computer

it's an iOS app that I'm developing

Yeah I'm wanting to submit to AppStore for anyone to be able to download the game


This is the message I keep getting and yes I have saw other people talking about this same issue but nothing has worked for me out of those topics online. Like I said I'm not running any betas all of the most recent software downloaded from Apple. Is it possible maybe there's some old software stored on my Mac from a previous verison of Xcode that I had installed? I have had this computer for a while running Xcode on it no idea if Xcode stores old files or not but a lot of Mac programs seem to do that and it does take up space depending on where those old files are hidden for Xcode.


Dear Developer,

We identified one or more issues with a recent submission for App Store review for your app, "Egg Game 2" 1.0.1 (9). Please correct the following issues, then upload again.

ITMS-90111: Invalid Toolchain - Your app was built with a beta version of Xcode or SDK. Apps submitted to the App Store must be built with the GM version of Xcode 9 and the SDK for iOS 11, tvOS 11, watchOS 4, or macOS 10.13 or later.

Best regards,

The App Store Team

Tap the Apple icon top left, then choose 'About This Mac', then tap the Overview tab, then tap 'System Report...', then on the left expand 'Software', and finally, under it, choose 'Developer'


Locate the Xcode you're using on your boot drive on the top right and select it.


Copy the 'Developer Tools' text for versions/SDKs from the window below, and paste it into a message here so we can take a look at that information, please. It should look something like this:

-=-

Developer Tools:


Version: 10.2.1 (10E1001)

Location: /Applications/Xcode.app

Applications:

Xcode: 10.2.1 (14490.122)

Instruments: 10.2.1 (64490.66)

SDKs:

iOS:

12.2: (16E226)

iOS Simulator:

12.2: (16E226)

macOS:

10.14: (18E219)

tvOS:

12.2: (16L225)

tvOS Simulator:

12.2: (16L225)

watchOS:

5.2: (16T224)

watchOS Simulator:

5.2: (16T224)


-=-


Also, please answer these questions:

- Are you using any 3rd party app creator tools or SDKs?

- Have you modified your Xcode application with any other manually added SDKs?

- Are you using Application Loader? What version?

- Is your macOS installed in a VM?

- Can you confirm you are using macOS Mojave v10.14.5?

What do the build versions inside your app say?

Well because I'm only developing for iOS platfrom at the time it is just the 1 verison I believe for the app but I have definitely had that problem before with working with different apps like with iOS and Watch OS it will cause it to error out. Like everything in Xcode seems to work fine with building it that's the thing I don't get and the app works when compiled in simulator and with Testflight the app works fine. I almost think what I might have to do is basically go out and buy another Mac and see if it does the same with Xcode I have been thinking about getting another with more storage and considering that the Mac that I have is getting older that I might only get about a year or 2 support more out of it for software updates and that. I will maybe try submiiting again and see if it was just a thing on their backend temporarily if you don't hear from me then it's still a problem for me.

Yeah it's still an issue but i was thinking about maybe including the Testflight in here for anyone who is interested in testing the app like I said is that I probably will have to install Xcode on another Mac or something like that I'm assuming that maybe the Xcode install is just so messed up on the Mac and I'm not really going to bother with deleting it and reinstalling it since Xcode is a very large Application like over 10GB in size I'll probably wait and install it on a new Mac if I am going to reinstall it again just to advoid anymore issues and I won't be reformatting this Mac for awhile either. I have had some crashes in the past with this Mac while using alot of different applications at once so I might have had Xcode opened when those crashes happened partly because I use my Mac so much that I don't always power it down for a few days or so leaving it in sleep alot and then it tends to slow down some causing crashes but maybe that is what has caused something with Xcode to act weird. I would like to thank anyone who has helped out on here so that's why I thought that I'd include my apps as a treat and i will have more coming in the new month once I get issues fixed for now I guess I will just take a break until then. I will leave this opened to see if anyone has anything else to add to it or any simlar issues or problems alike since this seems to be a very common issue lately. I highly think that it's really just Apple that has the bug anyway because so many people are affected by it or just Apple being really picky with apps more with their backend. Anyway Cheers https://testflight.apple.com/join/DtjkBIeo

and Original on the App Store https://apps.apple.com/ca/app/egg-game/id1435034980

Your apps should have metadata inside them that identifies the operating system version and toolchain version used to build it. That information is saved in a file. It could have been saved into the file by some beta version of one of the above. Then, even if you submit using an acceptable version, it could still have the beta versions listed internally.

How would I find that Information to make changes to it?

That's a different question. You can just expand the ipa file with Archive Utility and look at the Info.plist. It will have a number of different build versions for the OS, SDK, etc. Inspect those and see if you can find the one that is giving the app store fits.


Changing it is different. I don't know why it would even be wrong in the first place. Generally Xcode just sets all of those things for you. People who have strange problems like this seem to invariably have some kind of crazy build process. You don't seem to have that, but you did mention a game. So perhaps you have some incompatible framework included. You may need to dive deep into the bundle.

Well I did actually find that to be really intresting because I know that I did look at that file before and it seems to be missing information there is none of the operating system version and toolchain version in there for whatever reason I would like to know if there should be or not I'm really looking forward to a message back about this 1. This could be what is causing the issue and making the problem for me each time. I'm not really saying that it's off topic or anything yet because it might be what solves the issue but I wouldn't be suprised if sometimes information can get missing I could try and find and older archive that I have backed up somewhere but idk if I really wanna go looking for that though. To be honest I think Xcode is a crazy build process to begin with Apple really needs to give developers a whole new application sometime it's basically the same program each year with more bugs and problems because all they do is only update the information inside of it and it could lead to many issues or problems just like any company you have to get rid of something sometimes and start over because it becomes a mess and I don't use anything else with Xcode either and I've had issues from day 1 as a developer. I wouldn't be suprised with Xcode there isn't older stuff from like iOS 5 or something confusing the application especially with the size of Xcode as an application is a little overkill as well probably lots of things that aren't needed in the Xcode app anymore because of how long it's been around. I'm assuming this is why Apple does get rid of old stuff eventually because it just gets impossible to keep up with no matter how big of a team you have. It is possible that maybe I made a mistake when setting up the project overall I am tired sometimes and find myself making mistakes sometimes although I do keep a lot of things as is a lot of the time to avoid issues but I was aiming for with this game is really working with the newer devices. Basically I'll take any answer to fix this issue getting.

I'm sorry, but Xcode is what there is. Maybe create a new project from scratch, using the same names as the old ones. Then, you can just copy over any source files or resource files.

>I'll take any answer to fix this issue getting.


If you're up for another assignment, I have a check that you can try, but it requires a good text editor. Do you have TextWrangler or BBEdit?


BBEdit is avaliable via the Mac App Store. You can download as a 30 day trial (worth buying IMO). If you can install it on your Mac, I have a process that will let you look at the part of a project that shows the information the store uses as part of it's checks when you submit an app to review.


This is an example of that information.

CreatedOnToolsVersion = 10.2;


Here is another:

IPHONEOS_DEPLOYMENT_TARGET = 12.2;


Once BBEdit is installed, locate your project folder in the Finder and make a copy of it you can work with so your original project is safe. When you get that far, let me know here and I will tell you next steps.


Ken

Yeah I understand Xcode is the only thing for now but I might start to use some other things in the future for more advanced games like Unreal etc. It's just kinda my wish from Apple since Xcode 10 like a whole new application more for developers with new features like maybe a code selection more while typing your code more for faster coding, etc like more built from ground up for the future and future of new developers etc. I'm sure that probably all developers have many request that they have like a more easy application less buggy just works type of app. I know that it is kinda another topic to kinda get into but it is something Apple should be considering or maybe they are already thinking about it but I have used other programs in the past like Visual Basics and others and they do have some nice features for developers as well that I think Apple could get into a little more if they wanted to like I said is like giving people a better experience more functions. I will say that some of the stuff at WWDC this year was really nice like automaticlly updating the app as you work on it is really nice so I'm glad for to see features like that are coming to developers but it's a start. I understand that it does take time to do those things as a company but maybe 1 day it'll be a reality. I do look forward to a lot of things later this fall from Apple looks really good from WWDC. Yeah I'll try and play around with some projects etc and try and go by the knowledge of both KMT and you have provided here and see how things go and let you know if these solve the issue and fix things for me.

I have the same issue. I compile the app with a fastlane script on CircleCI. But these things seems to be unrelated.

I was not submitting app for some time, but I have not experienced before this Invalid binary message. This message actually does not help me. There is not text or report.
Once I submit the app this "Invalid binary" message comes as the second message, but does not conntain any helpful information.

XCode 10.2.1

Why is it every time I submit for App Store it says Invalid Binary?
 
 
Q