fastlane-old / deliver

Upload screenshots, metadata and your app to the App Store using a single command
https://fastlane.tools
2.24k stars 162 forks source link

iTunes Transporter was 1: ERROR ITMS-90035 #359

Closed todorovhristo closed 8 years ago

todorovhristo commented 9 years ago

Hello,

First I wan't to say that deliver looks like an awesome tool! I'm unable to make it submit to appstore though.

I'm keep getting following error: naxexs-iMac:2015-09-30 naxex$ deliver --ipa bforex.ipa --skip_metadata [12:13:37]: To not be asked about this value, you can specify it using 'username' Your Apple ID Username: bforex@naxex-tech.com [12:13:47]: Login to iTunes Connect (bforex@naxex-tech.com) [12:13:49]: Login successful [12:13:50]: Making sure the latest version on iTunes Connect matches '3.0.5' from the ipa file... [12:13:52]: '3.0.5' is the latest version on iTunes Connect [12:13:52]: Uploading binary to iTunes Connect [12:13:52]: Going to upload updated app to iTunesConnect [12:13:52]: This might take a few minutes, please don't interrupt the script [12:14:01]: [Transporter]: INFO: Transporter is skipping bundle update check: Already checked recently. [12:14:01]: [Transporter]: INFO: Logging configured successfully. [12:14:01]: [Transporter]: DEBUG: Attempting refresh of configuration data from https://contentdelivery.itunes.apple.com/transporter/Defaults.properties [12:14:02]: [Transporter]: DEBUG: Configuration refresh successful. [12:14:02]: [Transporter]: DEBUG: Saving configuration to local path: /Users/naxex/.itmstransporter/Defaults.properties [12:14:02]: [Transporter]: INFO: iTMSTransporter : iTunes Store Transporter [1.8.5] [12:14:02]: [Transporter]: INFO: OS identifier: Mac OS X 10.10.4 (x86_64); jvm=24.80-b07; jre=1.7.0-internal-root_2015_01_13_21_57-b00 [12:14:02]: [Transporter]: INFO: Memory: [JVM] 23M free, 51M total, 910M max System 226M free, 16384M total (Swap) 857M free, 1024M total [12:14:02]: [Transporter]: INFO: Upload mode selected. [12:14:02]: [Transporter]: INFO: Examining the package at: /tmp/682738544.itmsp [12:14:02]: [Transporter]: INFO: Ensuring that package has well formed metadata file... [12:14:02]: [Transporter]: DEBUG: Getting case-sensitive metadata xml filename... [12:14:02]: [Transporter]: INFO: Gathering the list of valid files from the package ... [12:14:02]: [Transporter]: DEBUG: 6d6adca257811a94396c7fabf6931637.ipa will be verified by Apple's web service to determine if it is a valid file. [12:14:02]: [Transporter]: DEBUG: metadata.xml will be verified by Apple's web service to determine if it is a valid file. [12:14:02]: [Transporter]: INFO: Finished gathering the list of valid files from the package. [12:14:02]: [Transporter]: DEBUG: Case-sensitive metadata filename is: metadata.xml [12:14:02]: [Transporter]: INFO: Performing authentication of package 682738544.itmsp ... [12:14:02]: [Transporter]: DBG-X: Memory: [JVM] 33M free, 69M total, 910M max System 164M free, 16384M total (Swap) 857M free, 1024M total [12:14:02]: [Transporter]: DBG-X: Memory: [JVM] 33M free, 69M total, 910M max System 164M free, 16384M total (Swap) 857M free, 1024M total [12:14:02]: [Transporter]: DBG-X: Using operation named: authenticateForSession [12:14:02]: [Transporter]: DBG-X: Apple's web service operation input parameters: [12:14:02]: [Transporter]: DBG-X: parameter Application = iTMSTransporter [12:14:02]: [Transporter]: DBG-X: parameter BaseVersion = 1.8.3 [12:14:02]: [Transporter]: DBG-X: parameter OSIdentifier = Mac OS X 10.10.4 (x86_64); jvm=24.80-b07; jre=1.7.0-internal-root_2015_01_13_21_57-b00 [12:14:02]: [Transporter]: DBG-X: parameter Password = hidden value [12:14:02]: [Transporter]: DBG-X: parameter TransporterArguments = -m upload -u bforex@naxex-tech.com -p hidden value -f /tmp/682738544.itmsp -t Signiant -k 100000 [12:14:02]: [Transporter]: DBG-X: parameter Username = bforex@naxex-tech.com [12:14:02]: [Transporter]: DBG-X: parameter Version = 1.8.5 [12:14:02]: [Transporter]: INFO: id = 20150930121402-301 [12:14:03]: [Transporter]: DBG-X: Apple's web service operation return value: [12:14:03]: [Transporter]: DBG-X: parameter SessionId = CKWmDBIQlzamiBDASlqqDfvIiCiC2w== [12:14:03]: [Transporter]: DBG-X: parameter SharedSecret = 5c9bfcf1-a9ca-4c27-a826-8f4ad6202821 [12:14:03]: [Transporter]: DBG-X: Deflated 432 bytes to 380 [12:14:03]: [Transporter]: DBG-X: Using operation named: validateMetadata [12:14:03]: [Transporter]: DBG-X: Apple's web service operation input parameters: [12:14:03]: [Transporter]: DBG-X: parameter Application = iTMSTransporter [12:14:03]: [Transporter]: DBG-X: parameter BaseVersion = 1.8.3 [12:14:03]: [Transporter]: DBG-X: parameter Files = [6d6adca257811a94396c7fabf6931637.ipa, metadata.xml] [12:14:03]: [Transporter]: DBG-X: parameter Metadata = <?xml version="1.0" encoding="UTF-8"?> [12:14:03]: [Transporter]: DBG-X: parameter MetadataChecksum = 779d30195a7a72a232ee29307b6957ed [12:14:03]: [Transporter]: DBG-X: parameter MetadataCompressed = (suppressed) [12:14:03]: [Transporter]: DBG-X: parameter OSIdentifier = Mac OS X 10.10.4 (x86_64); jvm=24.80-b07; jre=1.7.0-internal-root_2015_01_13_21_57-b00 [12:14:03]: [Transporter]: DBG-X: parameter PackageName = 682738544.itmsp [12:14:03]: [Transporter]: DBG-X: parameter PackageSize = 12646521 [12:14:03]: [Transporter]: DBG-X: parameter Throttle = 100000 [12:14:03]: [Transporter]: DBG-X: parameter TransporterArguments = -m upload -u bforex@naxex-tech.com -p hidden value -f /tmp/682738544.itmsp -t Signiant -k 100000 [12:14:03]: [Transporter]: DBG-X: parameter Username = bforex@naxex-tech.com [12:14:03]: [Transporter]: DBG-X: parameter Version = 1.8.5 [12:14:03]: [Transporter]: INFO: id = 20150930121403-370 [12:14:04]: [Transporter]: DBG-X: Apple's web service operation return value: [12:14:04]: [Transporter]: DBG-X: parameter CPUToken = b1cc096d-0ab8-4265-9799-daa764fba80e/1443604443976 [12:14:04]: [Transporter]: DBG-X: parameter AssetsToDescribe = [{UTI=com.apple.ipa, Role=source, ShouldDescribeAsset=true, Filename=6d6adca257811a94396c7fabf6931637.ipa}] [12:14:04]: [Transporter]: DBG-X: parameter FileSizes = {6d6adca257811a94396c7fabf6931637.ipa=12646089} [12:14:04]: [Transporter]: DBG-X: parameter Checksums = {6d6adca257811a94396c7fabf6931637.ipa=478422ed1cc37bfa58ff3ccea4117918} [12:14:04]: [Transporter]: DBG-X: parameter Success = true [12:14:04]: [Transporter]: DBG-X: parameter FilesToUpload = [metadata.xml, 6d6adca257811a94396c7fabf6931637.ipa] [12:14:04]: [Transporter]: DBG-X: parameter MinimumFileSizeThresholdForCheckum = 104857600 [12:14:04]: [Transporter]: DBG-X: parameter ProviderNameForToken = NYD847RFKK [12:14:04]: [Transporter]: INFO: The list of files requested for upload by Apple is: [metadata.xml, 6d6adca257811a94396c7fabf6931637.ipa]. These are the files that will be uploaded. [12:14:04]: [Transporter]: INFO: Starting media analysis of assets [12:14:04]: [Transporter]: DEBUG: Handling asset: filename=6d6adca257811a94396c7fabf6931637.ipa,uti=com.apple.ipa,role=source,describe=true [12:14:04]: [Transporter]: DEBUG: Using container type tool name and version: iOS App Describer:1.24 [12:14:04]: [Transporter]: DEBUG: Using path: /tmp/682738544.itmsp/6d6adca257811a94396c7fabf6931637.ipa [12:14:08]: [Transporter]: DEBUG: Asset successfully described: com.apple.jingle.leghorn.software.AbstractSoftwareDescriber$1@78638454 [12:14:08]: [Transporter]: INFO: Asset media analysis has completed [12:14:08]: [Transporter]: DBG-X: Memory: [JVM] 13M free, 70M total, 910M max System 140M free, 16384M total (Swap) 857M free, 1024M total [12:14:08]: [Transporter]: DBG-X: Using operation named: lookupTransportDiagnostic [12:14:08]: [Transporter]: DBG-X: Apple's web service operation input parameters: [12:14:08]: [Transporter]: DBG-X: parameter Application = iTMSTransporter [12:14:08]: [Transporter]: DBG-X: parameter BaseVersion = 1.8.3 [12:14:08]: [Transporter]: DBG-X: parameter OSIdentifier = Mac OS X 10.10.4 (x86_64); jvm=24.80-b07; jre=1.7.0-internal-root_2015_01_13_21_57-b00 [12:14:08]: [Transporter]: DBG-X: parameter TransporterArguments = -m upload -u bforex@naxex-tech.com -p hidden value -f /tmp/682738544.itmsp -t Signiant -k 100000 [12:14:08]: [Transporter]: DBG-X: parameter Username = bforex@naxex-tech.com [12:14:08]: [Transporter]: DBG-X: parameter Version = 1.8.5 [12:14:08]: [Transporter]: INFO: id = 20150930121408-397 [12:14:09]: [Transporter]: DBG-X: Apple's web service operation return value: [12:14:09]: [Transporter]: DBG-X: parameter SigniantLoggingLevel = OFF [12:14:09]: [Transporter]: DBG-X: parameter AsperaLoggingLevel = OFF [12:14:09]: [Transporter]: INFO: Signiant TransferEngine build 10.6.0.59156 [12:14:09]: [Transporter]: INFO: Using Signiant UDP transport [12:14:09]: [Transporter]: DBG-X: Setting the target rate to 15000001 bytes per second. [12:14:09]: [Transporter]: DBG-X: Setting the throttle to 12500000 bytes per second. [12:14:09]: [Transporter]: INFO: Transfer engine: 10.6.0.59156 [12:14:09]: [Transporter]: INFO: The Signiant transfer engine's status is DISCONNECTED [12:14:10]: [Transporter]: INFO: The Signiant transfer engine's status is CONNECTING [12:14:10]: [Transporter]: INFO: Processing URL list: mxwan://sgr203.apple.com:44001/ [12:14:10]: [Transporter]: INFO: Trying UDP sgr203.apple.com/17.152.249.103:44001... [12:14:11]: [Transporter]: INFO: Connected to UDP sgr203.apple.com/17.152.249.103:44001 [12:14:11]: [Transporter]: INFO: Authenticating [12:14:13]: [Transporter]: INFO: The Signiant transfer engine's status is AWAITING_DATA_STREAMS [12:14:13]: [Transporter]: INFO: Setting up data streams [12:14:15]: [Transporter]: INFO: The Signiant transfer engine's status is CONNECTED [12:14:15]: [Transporter]: INFO: Connected using WAN accelerator [12:14:15]: [Transporter]: INFO: File: b6311386-a8ab-465e-bc4c-fd082afba3a1793049714215571977.txt 11/11, 100% completed [12:14:15]: [Transporter]: DBG-X: The status for the file, b6311386-a8ab-465e-bc4c-fd082afba3a1793049714215571977.txt, is TRANSFERRED. [12:14:16]: [Transporter]: INFO: The Signiant transfer engine's status is DISCONNECTED [12:14:16]: [Transporter]: INFO: The Signiant transfer engine's status is DISCONNECTED [12:14:16]: [Transporter]: DEBUG: Using token file path /Users/naxex/.itmstransporter/UploadTokens/naxexs-iMac.local_NYD847RFKK_682738544.itmsp.token [12:14:16]: [Transporter]: DEBUG: Attempting exclusive file lock on token file [12:14:16]: [Transporter]: DEBUG: Set token: b1cc096d-0ab8-4265-9799-daa764fba80e/1443604443976 [12:14:16]: [Transporter]: DBG-X: Memory: [JVM] 65M free, 108M total, 910M max System 96M free, 16384M total (Swap) 857M free, 1024M total [12:14:16]: [Transporter]: DBG-X: Deflated 432 bytes to 380 [12:14:16]: [Transporter]: DBG-X: Deflated 1154179 bytes to 227108 [12:14:16]: [Transporter]: DBG-X: Using operation named: validateAssets [12:14:16]: [Transporter]: DBG-X: Apple's web service operation input parameters: [12:14:16]: [Transporter]: DBG-X: parameter Application = iTMSTransporter [12:14:16]: [Transporter]: DBG-X: parameter BaseVersion = 1.8.3 [12:14:16]: [Transporter]: DBG-X: parameter CPUToken = b1cc096d-0ab8-4265-9799-daa764fba80e/1443604443976 [12:14:16]: [Transporter]: DBG-X: parameter Files = [6d6adca257811a94396c7fabf6931637.ipa, metadata.xml] [12:14:16]: [Transporter]: DBG-X: parameter MetadataChecksum = 779d30195a7a72a232ee29307b6957ed [12:14:16]: [Transporter]: DBG-X: parameter MetadataCompressed = (suppressed) [12:14:16]: [Transporter]: DBG-X: parameter OSIdentifier = Mac OS X 10.10.4 (x86_64); jvm=24.80-b07; jre=1.7.0-internal-root_2015_01_13_21_57-b00 [12:14:16]: [Transporter]: DBG-X: parameter PackageName = 682738544.itmsp [12:14:16]: [Transporter]: DBG-X: parameter PackageSize = 12646521 [12:14:16]: [Transporter]: DBG-X: parameter Throttle = 100000 [12:14:16]: [Transporter]: DBG-X: parameter Transport = Signiant [12:14:16]: [Transporter]: DBG-X: parameter TransporterArguments = -m upload -u bforex@naxex-tech.com -p hidden value -f /tmp/682738544.itmsp -t Signiant -k 100000 [12:14:16]: [Transporter]: DBG-X: parameter Username = bforex@naxex-tech.com [12:14:16]: [Transporter]: DBG-X: parameter Version = 1.8.5 [12:14:16]: [Transporter]: INFO: id = 20150930121416-816 [12:14:22]: [Transporter]: DBG-X: Apple's web service operation return value: [12:14:22]: [Transporter]: DBG-X: parameter ErrorMessage = ERROR ITMS-90035: "Invalid Signature. A sealed resource is missing or invalid. Make sure you have signed your application with a distribution certificate, not an ad hoc certificate or a development certificate. Verify that the code signing settings in Xcode are correct at the target level (which override any values at the project level). Additionally, make sure the bundle you are uploading was built using a Release target in Xcode, not a Simulator target. If you are certain your code signing settings are correct, choose "Clean All" in Xcode, delete the "build" directory in the Finder, and rebuild your release target. For more information, please consult https://developer.apple.com/library/ios/documentation/Security/Conceptual/CodeSigningGuide/Introduction/Introduction.html [12:14:22]: [Transporter]: DBG-X: parameter CPUToken = b1cc096d-0ab8-4265-9799-daa764fba80e/1443604443976 [12:14:22]: [Transporter]: DBG-X: parameter AssetsToDescribe = [{UTI=com.apple.ipa, Role=source, ShouldDescribeAsset=true, Filename=6d6adca257811a94396c7fabf6931637.ipa}] [12:14:22]: [Transporter]: DBG-X: parameter FileSizes = {6d6adca257811a94396c7fabf6931637.ipa=12646089} [12:14:22]: [Transporter]: DBG-X: parameter Checksums = {6d6adca257811a94396c7fabf6931637.ipa=478422ed1cc37bfa58ff3ccea4117918} [12:14:22]: [Transporter]: DBG-X: parameter Errors = [ERROR ITMS-90035: "Invalid Signature. A sealed resource is missing or invalid. Make sure you have signed your application with a distribution certificate, not an ad hoc certificate or a development certificate. Verify that the code signing settings in Xcode are correct at the target level (which override any values at the project level). Additionally, make sure the bundle you are uploading was built using a Release target in Xcode, not a Simulator target. If you are certain your code signing settings are correct, choose "Clean All" in Xcode, delete the "build" directory in the Finder, and rebuild your release target. For more information, please consult https://developer.apple.com/library/ios/documentation/Security/Conceptual/CodeSigningGuide/Introduction/Introduction.html"] [12:14:22]: [Transporter]: DBG-X: parameter ErrorCode = 1102 [12:14:22]: [Transporter]: DBG-X: parameter Success = false [12:14:22]: [Transporter]: DBG-X: parameter FilesToUpload = [metadata.xml, 6d6adca257811a94396c7fabf6931637.ipa] [12:14:22]: [Transporter]: DBG-X: parameter MinimumFileSizeThresholdForCheckum = 104857600 [12:14:22]: [Transporter Error Output]: ERROR ITMS-90035: "Invalid Signature. A sealed resource is missing or invalid. Make sure you have signed your application with a distribution certificate, not an ad hoc certificate or a development certificate. Verify that the code signing settings in Xcode are correct at the target level (which override any values at the project level). Additionally, make sure the bundle you are uploading was built using a Release target in Xcode, not a Simulator target. If you are certain your code signing settings are correct, choose "Clean All" in Xcode, delete the "build" directory in the Finder, and rebuild your release target. For more information, please consult https://developer.apple.com/library/ios/documentation/Security/Conceptual/CodeSigningGuide/Introduction/Introduction.html" [12:14:22]: [Transporter]: DBG-X: The error code is: 1102 [12:14:22]: [Transporter]: INFO: Done performing authentication. [12:14:22]: Transporter transfer failed. [12:14:22]: [12:14:22]: ERROR ITMS-90035: "Invalid Signature. A sealed resource is missing or invalid. Make sure you have signed your application with a distribution certificate, not an ad hoc certificate or a development certificate. Verify that the code signing settings in Xcode are correct at the target level (which override any values at the project level). Additionally, make sure the bundle you are uploading was built using a Release target in Xcode, not a Simulator target. If you are certain your code signing settings are correct, choose "Clean All" in Xcode, delete the "build" directory in the Finder, and rebuild your release target. For more information, please consult https://developer.apple.com/library/ios/documentation/Security/Conceptual/CodeSigningGuide/Introduction/Introduction.html" [12:14:22]: Return status of iTunes Transporter was 1: ERROR ITMS-90035: "Invalid Signature. A sealed resource is missing or invalid. Make sure you have signed your application with a distribution certificate, not an ad hoc certificate or a development certificate. Verify that the code signing settings in Xcode are correct at the target level (which override any values at the project level). Additionally, make sure the bundle you are uploading was built using a Release target in Xcode, not a Simulator target. If you are certain your code signing settings are correct, choose "Clean All" in Xcode, delete the "build" directory in the Finder, and rebuild your release target. For more information, please consult https://developer.apple.com/library/ios/documentation/Security/Conceptual/CodeSigningGuide/Introduction/Introduction.html" [12:14:22]: ERROR ITMS-90035: "Invalid Signature. A sealed resource is missing or invalid. Make sure you have signed your application with a distribution certificate, not an ad hoc certificate or a development certificate. Verify that the code signing settings in Xcode are correct at the target level (which override any values at the project level). Additionally, make sure the bundle you are uploading was built using a Release target in Xcode, not a Simulator target. If you are certain your code signing settings are correct, choose "Clean All" in Xcode, delete the "build" directory in the Finder, and rebuild your release target. For more information, please consult https://developer.apple.com/library/ios/documentation/Security/Conceptual/CodeSigningGuide/Introduction/Introduction.html" Return status of iTunes Transporter was 1: ERROR ITMS-90035: "Invalid Signature. A sealed resource is missing or invalid. Make sure you have signed your application with a distribution certificate, not an ad hoc certificate or a development certificate. Verify that the code signing settings in Xcode are correct at the target level (which override any values at the project level). Additionally, make sure the bundle you are uploading was built using a Release target in Xcode, not a Simulator target. If you are certain your code signing settings are correct, choose "Clean All" in Xcode, delete the "build" directory in the Finder, and rebuild your release target. For more information, please consult https://developer.apple.com/library/ios/documentation/Security/Conceptual/CodeSigningGuide/Introduction/Introduction.html"

And here is how my ipa file look(for me it looks pretty good): naxexs-iMac:2015-09-30 naxex$ ipa info bforex.ipa Using .app: Bforex.app +-----------------------------+------------------------------------------------------+ | AppIDName | Bforex App | | ApplicationIdentifierPrefix | N32147RFKK | | CreationDate | 2015-09-09T06:16:13+00:00 | | Platform | iOS | | Entitlements | keychain-access-groups: ["NYD847RFKK.*"] | | | get-task-allow: false | | | application-identifier: N32147RFKK.com.bforex.mobile | | | com.apple.developer.team-identifier: N32147RFKK | | | aps-environment: production | | | beta-reports-active: true | | ExpirationDate | 2016-08-30T13:08:22+00:00 | | Name | BforexProd | | TeamIdentifier | NYD847RFKK | | TeamName | BForex Limited | | TimeToLive | 356 | | UUID | 5321c23-1c2d-4c60-bc0c-0f6517ae86ac | | Version | 1 | | Codesigned | True | +-----------------------------+------------------------------------------------------+

Do you know what could be the problem?

dral3x commented 9 years ago

It seams the problem is clear: signing issue

ERROR ITMS-90035: "Invalid Signature. A sealed resource is missing or invalid. Make sure you have signed your application with a distribution certificate, not an ad hoc certificate or a development certificate. Verify that the code signing settings in Xcode are correct at the target level (which override any values at the project level). Additionally, make sure the bundle you are uploading was built using a Release target in Xcode, not a Simulator target. If you are certain your code signing settings are correct, choose "Clean All" in Xcode, delete the "build" directory in the Finder, and rebuild your release target. For more information, please consult https://developer.apple.com/library/ios/documentation/Security/Conceptual/CodeSigningGuide/Introduction/Introduction.html

todorovhristo commented 9 years ago

Yep but I do not understand what is the problem with the signing. I provided profile and certificate?

dral3x commented 9 years ago

How did you build and sign the ipa file?

todorovhristo commented 9 years ago

I made xcarchive(signed) with XCode. And then used xcodebuild -exportArchive to create .ipa file from it.

dral3x commented 9 years ago

Can you export the ipa from xcode itself? I think you have to "sign" during the export, the xcarchive does not sign anything really.

If you want to export the ipa via shell, your command should also include the provisioning profile. This is how I do via shell: xcodebuild -exportArchive -exportFormat ipa -archivePath "${OUTPUT_XCARCHIVE_FULLPATH}" -exportPath "${OUTPUT_IPA_FULLPATH}" -exportProvisioningProfile "${PROVISONING_PROFILE}"

todorovhristo commented 9 years ago

Using that commang I get the exact same error. Moreover when I run ipa info it looks the sam as before.

fastlane-bot commented 8 years ago

This issue was migrated to https://github.com/fastlane/fastlane/issues/1593. Please post all further comments there.

fastlane is now a mono repo, you can read more about the change in our blog post. All tools are now available in the fastlane main repo :rocket: