This binary does not seem to have been built with Apples Linker - ios

I've built an app using phonegap build for ios and android. Both versions work great using their respective developer versions. The android app was sent off to google play smoothly and was quickly available on the android market. From there it is downloaded and installed without a hitch.
The fate of the ios version is not so great. When I upload the ipa (mmm, beer) phonegap build gives me using Application Loader I get the following error,
ERROR ITMS-9000: "The binary is invalid. The encryption info in the LC_ENCRYPTION_INFO load command is either missing or invalid, or the binary is already encrypted. This binary does not seem to have been built with Apple's linker."
I've reached out on phonegap build's community page but received no help.
I've reached out to the apple developer page and they told me to learn how to write native code.
I've checked, double checked, and recreated certificates and provisioning files. I'm sure they're for production. I am at a loss as to how to proceed. It seems I'm the only person to ever get this error from a phonegap build.
I saw this on stack overflow, Application Loader error, binary is invalid, I did what it said but my results more or less matched what he said was the working one. You can seem my comment on the answer.

I'm on an old mac. I'd downloaded the latest application loader (2.9.1) to upload the build.phonegap ipa. While attempting to build the ipa myself i downloaded xcode 4.6.3 and it included application loader 2.8. Since it was different I thought I'd give it a shot using the exact ipa that had failed me so many times before. And it went through... I don't know what it was that made apple finally like my app but they do now and I'm not going to complain.

I got his issue, when try to use Pods with minimum support version 8.0.
But my app's minimum support version was 7.0.
I changed min version to 8.0 and fix version in Podspec:
platform :ios, '8.0'
and run pod install
After this the problem is gone.

for me, the problem was I had added one framework with drag and drop and when I deleted the framework and installed it through cocoapods the problem was gone

Related

What is the maximum accepted version of Xcode for uploads?

I recently updated to the release version of Xcode 13 on my Mac. Now when I upload an iOS App build to Apple using the upload endpoint (via fastlane) I get an error saying "Invalid Toolchain. Your app was built with an unsupported SDK or version of Xcode. If you plan to submit this build to the App Store, make sure you are using the versions listed in https://help.apple.com/xcode/mac/current/#/devf16aefe3b or later."
% xcodebuild -version
Xcode 13.0
Build version 13A233
I also deleted the old beta Xcode and restarted my mac to be sure. Anyone else having this issue? Any recommendations?
Thanks!
Update: this eventually went away. And did so in a way that, suggested it was possibly something being stuck on Apple's side. After updating fastlane and deleting everything Xcode related and trying again it didn't work. However after doing an upload from Xcode after the above, it failed one last time with the same stated reason, BUT THEN it began working from there forward from all upload sources.
I also "developer rejected" a "pending release" that was built from before I was having this issue. Unclear if that was related.

"Unable to Download App", but can install through Xcode

I have a Xamarin.iOS app which is available to download from our company enterprise store. Upon trying to download and install this app on iOS versions 8.2 and 9.3, it gets about 2/3 of the way complete then gives the error message, "Unable to Download App, AppName could not be downloaded at this time.".
The app downloads and installs fine on iOS 11.4 fine. (These are the only devices I have available to test).
I'm able to download other apps which are hosted on this store, so it's not a connectivity or firewall issue.
Since it installs fine on 11.4, it doesn't seem like an issue with the provisioning profile.
I can download on Mac the IPA file which is hosted, and can install this on all the devices through Xcode and it works fine.
Rebooting devices, cleaning the solutions and re-publishing have not worked, and despite connecting devices to the Console there doesn't seem to be any error message thrown.
Any help would be very much appreciated!
I finally found the issue. Clicking on the link in the enterprise store would point to a plist file which would then point to the download package. In the plist file, there was also a reference to the app icon which had a different file name. This meant that on lower versions of iOS it would look for that icon but would not find it. But when directly installing the IPA through Xcode, it didn't use that plist file so would download and install fine.
I don't know why this only affected lower versions of iOS, but in searching for a solution I must have filtered some relevent results out by using those search terms. Thankfully, a whole 3 weeks later and it's finally sorted!

ERROR ITMS-90167: "No .app bundles found in the package" [duplicate]

Before I start writing about the error, I'm running on macOS Sierra and using Xcode 7.3.1.
So I'm creating an Archive from my App, I validate the App and it passes validation, but when uploading to App Store, I get the error "ERROR ITMS - 90167 No. app bundles found in the package".
I've checked all my documentation and I have everything.
I have all my provisioning profiles.
I have Release as "iOS Distribution".
This error just started appearing after I installed macOS Sierra.
Anyone has an idea of why I'm getting this error?
After chatting with folks at WWDC in both the Xcode lab and the App Store lab, they were able to dig up information that this is a known issue in the current Sierra seed that is fixed in the next release. You can either revert, or wait. Not the most satisfying answer, I admit.
Problem:
Issue with the current macOS Sierra build.
Workaround
Build with Xcode 7.3.1 then upload using Xcode 8 [Beta]. (Thanks to #JollyRoger)
Currently, this workaround ONLY works for TestFlight and NOT for App Store submissions.
No need for fix [UPDATE]
So it seems that this bug has lasted for the whole beta period and it might not be worth for Apple to fix it anymore as the final version of iOS 10.0 is releasing in a few days and the final macOS Sierra is releasing a few days after that.
If you are still getting this issue with the final build of macOS Sierra, make sure you are using Xcode 8.x and not anything earlier than that.
Possible errors:
ERROR ITMS-90635
ERROR ITMS-90635: "Invalid Mach-O Format. The Mach-O in bundle
"....framework" isn’t consistent with the Mach-O in the main bundle.
The main bundle Mach-O contains armv7(machine code) and arm64(machine
code), while the nested bundle Mach-O contains armv7(bitcode) and
arm64(bitcode). Verify that all of the targets for a platform have a
consistent value for the ENABLE_BITCODE build setting."
Fix: Uncheck the Include Bitcode option before uploading.
INFO ITMS-90111
INFO ITMS-90111: "Beta Toolchain. This app has been built using beta toolchains. Apps built with beta toolchains are acceptable for TestFlight submission. Note that you will not be able to submit these builds for sale on the App Store."
Note: This will allow you to upload the build and use it for TestFlight but when trying to submit to the store you will be faced with this error message:
New apps and app updates must be built with the public (GM) versions of Xcode 6 or later, OS X, and tvOS SDK. Don't submit apps built with beta software including beta OS X builds.
If you are uploading from Xcode7(less than Xcode8) and macOS Sierra(V10.12), So this issue "ERROR ITMS-90167: "No .app bundles found in the package"" will come and will not allow to upload build to AppStore.
So use "Application Loader V3.6" or "Xcode8" to upload the build.
Try This, it worked like a charm for me,
We also facing same issues at time of updated macOS Sierra.
At time of upload build by using Xcode7.3.1 we get an error message
"ERROR ITMS-90167:"No.app bundles found in the package"
To Solve Error And Upload IPA file On App Store Follow Below Steps
We export build by using Xcode7.3.1.
-For upload build we use Application Loader V3.6 of Xcode8.
Xcode -> Open Developer Tools -> Application Loader
Follow Below Steps
1) Open Application Loader
2) Choose Build(IPA)
3)Uploading IPA file To app store
4)Successfully Submit Build(IPA)To App store
Your App will uploaded on Appstore,
Hope this is help for some one.
I would first like to thank #xemacobra for his solution, it worked for me until I needed to submit an application for Review.
If you need to submit an application for the App Store, and the build says You may not submit builds using beta software... here is the solution:
The problem is Xcode is sending the build information along with the version of you Mac OS. To fix that, you just need to change your Mac OS build to an older, acceptable, version.
Restart your Mac and hold Command + R on boot up
Open Terminal
Run csrutil disable
Restart your Mac.
In Finder, go to /System/Library/CoreServices/SystemVersion.plist
Open the file so that you may edit the SystemVersion.plist
Find <key>ProductBuildVersion</key> and locate the string attached to this key. For example, mine was 16A254g.
Change this string to a version of Mac OS that is currently supported for public release. At the time of this solution this one will fine: 15G31
Restart Xcode. Re-Archive your application. Re-Submit the application.
I did not try submitting the application through Xcode 7.3.1, but I do know this still works if you submit the .ipa through Xcode 8 beta 3.
Once you have submitted your build, revert the SystemVersion.plist to the original string, and repeat steps 1-4 replacing csrutil disable with csrutil enable.
I have also experienced the same. This is the simple way to solve your problem. Archive your app using Xcode 7.3.1 and export the ipa file of your app into a directory by selecting the option Save for iOS App Store deployment.
After that open Xcode 8.0 and open Application Loader from Xcode -> Developer Tools. Sign in to your team, and upload the ipa file using Xcode 8.0.
I have uploaded two apps to iTunesConnect, it will work for sure.
I was having this issue with Xcode 8 GM and trying to submit an app for release though Application Loader.
You have to use the version of Application Loader that comes with Xcode 8, which should be 3.6
I still have Xcode 7 installed, and was using Application Loader 3.5
Update
My apps submit okay now and go into processing, then soon after disappear completely. I think this might be a separate issue though.
Update 2
You still can't use Sierra to submit your apps. At least not until they release the GM.
Update 3
This issue is still occurring with this particular project. All other new ones (sticker apps) that I have created since public launch have been submitted to iTunes Connect with no issues.
I worked on this project during the betas, so it's possible something has been corrupted along the way and is causing issues. Might require starting a new project in Xcode 8.
There's a thread on the developer forums addressing this issue. https://forums.developer.apple.com/thread/62703
Solution
Turns out the fix for us was to add the "NSCameraUsageDescription" key
to the info.plist with a description of what the camera does in the
app.
Not sure if that solution will help in all cases though.
I submit an app built using LibGDX and had the same issue after upgrading to Sierra. I solved it by:
Upgrading Xcode (8.x), as explained above
Use the latest version of appLoader (3.6). To do that, use the AppLoader available within Xcode. I was using a standalone version of the appLoader: that's incorrect. Open Xcode and go to Xcode->Open Developer Tool->Application Loader
Unable to process application at this time due to the following error: No .app bundles found in the package. This issues appear when your pc's space is less. So clear you trash or some useless document from you pc. Then let's try again! It's work for me!
I recently upgraded to macOS Sierra and also received this error message. After uploading through the application loader failed.I downloaded Xcode 8 (kept my 7.3.1 copy). Closed Xcode 7.3.1. Opened Xcode 8-> Organizer-> proceeded to validate and upload my build. It worked. Hope this helps someone in a similar situation.
Maybe it's about your disk space check your disk space.
Try open App Loader from Xcode8.
Xcode > Open Developer Tools > Application Loader
Then you can upload app to TestFlight without the error.
These are all fabulous answers above... follow Nicholas's 9 step process above and also Tobeiosdev if you don't have write access to the SystemVersion.plist file.
However be very careful about how you read the step by step guide. DO NOT do as I did and restart your device after editing that plist file, as you will render most applications on your mac useless, including Terminal & TextEdit (which are required to edit it back). Reopen terminal inside Sierra (or the beta OS you are running) not inside the command line.
I unfortunately found out the hard way and then could not edit the plist file again in the command line. So I then had to reboot several times before finding the solution which was to go into single user mode (Command-S on restart), all of which scared me senseless that I had ruined the build of my mac. Eventually got everything running again but was somewhat delayed too by having to reinstall Xcode 8... leading to a sleepless night as my first ever submission to the AppStore.
All in all, the above is a perfect solution that works all around, IF you follow the directions correctly. Lesson learnt!
I accidentally opened an old version of the Application Loader Version 3.5 (921) and got the error ITMS-90167 no app bundles found. Be sure you open the Application Loader over the menu of Xcode (Xcode->Open Developer Tool). Version 3.6 (1020) works like a charm! :)
I solved this problem as follows, find your archive in the Organizer, and then:
Show in finder
Show package contents
In the „Wasabi.xcarchive“ file, find the
„Products“-„Applications“-„Wasabi.app“(Wasabi is your app’s name),
„Show package contents“ again
Finally, you can see there has a file named“Info.plist“, open it
Edit the value with a key named „BuildMachineOSBuild“, I just change
it to „15F34″(it’s „El Capitan 10.11.5“ ’s version)
According to #Fan Zhang answer follow these steps and you can upload this archive use Xcode or Application Loader, whatever you want!
When you archived your app, find your archive in the Organizer, and then:
-->"Show in finder";
-->"Show package contents";
-->In the "xx.xcarchive" file, find the "Products"->"Applications"->"xx.app"(xx is your app's name), "Show package contents" again;
-->Finally, you can see there has a file named"Info.plist", open it;
Edit the value with a key named "BuildMachineOSBuild", I just change it to "15F34"(it's "EI Capitan 10.11.5" 's version);
With me, my application writing by Swift 2.2. And must use Xcode 7.3.1 to archive and upload to Apple testflight but got the same error(I run on macOS Sierra-10.12). The follow solution fix it for me, hope another who face the same problem can find somethings helpful:
1> Use Xcode 7.3.1 to archive
2> Export to file .ipa
3> Quit Xcode 7.3.1 then open Xcode 8, and then open Application Loader, use Application Loader to upload file .ipa to itunes connect.
In case this helps, I had the same error code "ERROR ITMS - 90167 No. app bundles found in the package" using mac OS 10.14.4 with Xcode 10.2.
(As a note, I was able to successfully submit builds some weeks ago with the same configuration, but this seems to be something in the iTunes Connect side)
Had to update to mac os 10.14.6 and Xcode 10.3 to successfully submit my build.
I faced the same problem .
what worked for me was ->
go to target-> signing & capabilities -> signing certificate -> I had to revoke one certificate. Always revoke the Certificate by the name of admin's iMac .
It is created by default while making your certification and profiles.
**Picture is attached for the reference.
PS:- always make sure the bundle id is same on App store connect and Xcode before archiving.
The privacy settings are changed for iOS 10, more on this could be read here
I had previous described issues, which had to be solved as described, but after successful upload application wasn't visible on iTunes connect.
I had to add Privacy - Bluetooth Peripheral Usage Description key in a plist in order to solve the last one.
Other missing keys will make the same problem.
I was getting this error with Xcode 7.2.1 and Application Loader 3.4 on macOS 10.12.1.
But for some reason, it worked if I used the command-line "altool" to do the upload instead:
'/Applications/Xcode-7.2.1.app/Contents/Applications/Application Loader.app/Contents/Frameworks/ITunesSoftwareService.framework/Versions/A/Support/altool' \
--upload-app -f your-app.ipa \
-u your-apple-id -p your-apple-id-password \
--output-format xml
I had to provide missing application name in order to fix this problem.
Go inside your Appstore and download the new version of Transporter.
this worked for me

ERROR ITMS-9000: "This bundle is invalid. Apple is not currently accepting applications built

I am trying to submit my first ruby motion application via apple application loader and I get the error:
ERROR ITMS-9000: "This bundle is invalid. Apple is not currently
accepting applications built with this version of the SDK." at
SoftwareAssets/SoftwareAsset (MZItmspSoftwareAssetPackage)
I have set my deployment target to '7.0' and my SDK_version to '7.0' in my rake file. I have tried updating Xcode, removing and reinstalling it.
I believe the latest versions of Xcode comes with SDK 7.0.3. My iOS SDK version is 7.0, I can confirm from inspecting the Xcode package contents. I can also see from my compiled app that the iphoneos SDK is being set to '7.0' - any ideas why the app should still fail using this SDK?
I've spend 5 hours online and there is no relevant solution to these versions. Could it be some other issue with my rake file? Is anyone else experiencing this? Thanks
Using:
mac air 10.8.5
xcode Version 5.0.2 (5A3005)
Application loader Version 2.9 (439)
Rubymotion 2.20
I am about the throw away 250 hours of development time. I have started a support ticket with apple and Rubymotion also.
UPDATE
*I have just received a reply from Rubymotion*, Laurent and Joffrey were very quick in responding and they fixed my problem. I had to add the following line to my rake file:
app.info_plist['DTSDKBuild'] = app.info_plist['DTPlatformBuild'] = '11B508'.
This is what they said the problem was " The problem is likely in the RubyMotion build system where we generate the Info.plist key. It looks like we emit the wrong value when targeting the 7.0 SDK (we emit the value for 6.0) which could totally explain why the application loader refuses the app, since Apple only accepts apps built for 7.0 now."
This is the first time they know of this to happen. will be fixed in ruby motion soon. Thanks to them
For anyone else running into this, upgrade to RubyMotion 2.21, which fixed this:
Fixed a bug where incorrect SDK version values were being used in the
Info.plist file resulting in iOS App Store submissions being rejected.

Testflight SDK version not updating in project

I recently downloaded Testflight SDK version 3.0 and added header files in the project as shown in https://www.testflightapp.com/sdk/ios/doc/3.0.0/. Previously I was using SDK 2.1.4
But when I archive the app and try to upload it to Testflight it still shows me my previous SDK version 2.1.4. I dont know whats the issue, i tried so many times but the sdk is still not updating to 3.0 in my project.
Just ran into and fixed this problem. In my case, the library search paths were pointing to the wrong place (with an older version of the library). Search for "Tetflight" in your Build Settings and delete or change any incorrect paths.
Only adding the header files is not enough. You also need to update libTestFlight.a to the latest version. Replace the older static library with the new one. Also make sure it is properly linked (Project, Build Phases, Link Binary With Libraries). Then clean the project, rebuild, and you should be fine.
If you already did that, you should say so in your question. Now you only mention header files. But based on your description it could be that you are still linking an older version of the TestFlight static library.
I ran into this issue first from the question, but then immediately couldn't upload my ipa into TF because it contained the SDK. TestFlight appears to be purchased by Apple and also TF has since removed support for Android.
TestFlight does not accept builds with TestFlight SDK

Resources