iOS Tutorial Publishing your app to the App Store

Status
Not open for further replies.

kreativa

Member
Licensed User
only with the developer certificates. With store certificate i can't install the app on my device
 

kreativa

Member
Licensed User
I deleted and recreated the keys many many times.
I just try to create a new empty project and upload it with the keys created and there was no problems!
I think it is a problem with my code but i don't know where.
 

JackKirk

Well-Known Member
Licensed User
Does anyone know precisely what Apple's rejection criteria are around testing in airplane mode?

The first thing my app does is attempt to download a status file from a website.

This contains various settings which may be updated from time to time.

If it can not do this download it just stops cleanly with a message.

Erel says in post #1 to "Make sure to also test it with airplane mode on."

I have read in other threads about Apple testing with airplane mode on - and various unsatisfactory reactions from Apple when it didn't work.

I am ready to publish and am wondering if I am about to waste a week waiting for Apple.

Thanks...
 
Last edited:

Daniel Uribe

Member
Licensed User
Hi!!
This error occurs when I compile in release mode:

B4i version: 3.01
Parsing code. (0.05s)
Compiling code. (0.21s)
Compiling layouts code. (0.01s)
Building Xcode project (0.22s)
Sending data to remote compiler. Error
Communication error: java.lang.RuntimeException: java.io.IOException: java.lang.IllegalArgumentException: MALFORMED

the ios_distribution.cer and store.mobileprovision files are in key folder, created with the same .csr of dvelopment's certificates

and this is my head code:
B4X:
'Code module
#Region  Project Attributes
    #ApplicationLabel: CrazyAPP
    #Version: 1.0.0
    #iPhoneOrientations: Portrait
    #iPadOrientations: Portrait
#If RELEASE
   #CertificateFile: ios_distribution.cer
   #ProvisionFile: store.mobileprovision
#END IF
    #PlistExtra:<key>NSLocationWhenInUseUsageDescription</key><string>Used to display the current navigation data.</string>
    #PlistExtra:<key>NSLocationUsageDescription</key><string>Used to display the current navigation data.</string>
    #PlistExtra:<key>UIViewControllerBasedStatusBarAppearance</key><false/>
    #PlistExtra:<key>NSCameraUsageDescription</key><string>Lector Qr</string>
    #PlistExtra:<key>NSPhotoLibraryUsageDescription</key><string>Selecciona foto</string>
#End Region
#UrlScheme: com.googleusercontent.apps.xxxxxxxx
#QueriesSchemes: fbapi
#QueriesSchemes: fb-messenger-api
#QueriesSchemes: fbauth2
#QueriesSchemes: fbshareextension
#UrlScheme: xxxxxxxxxx
Thanks a lot for all the help..!
 

Daniel Uribe

Member
Licensed User
thanks a lot Erel,

The problem was in one of my files, had a name with "ñ". i just change the name, of course I did what you told me to upgrade to the latest version of B4i and I put the two files (the ios_distribution.cer and store.mobileprovision) in another key folder.

Thanks!
 

biometrics

Active Member
Licensed User
I'm trying to publish the latest version of my iOS app, I've done this several times before. I'm using the hosted compiler.

I select Tools/Build Server/Build Release App, then Download Latest Build.

It downloads the .ipa and tmp.zip but not Archive.zip, to the Objects folder.

When I try to upload the .ipa using Upload App to iTunes Connect I get this error:

Package Summary:
1 package(s) were not uploaded because they had problems:
/var/folders/35/nx43fs8567l9z_wvvpc35snh0000gn/T/F77AF154-B1BA-42DB-B011-11FC5AF96198/1211673654.itmsp - Error Messages:
ERROR ITMS-90017: "This bundle is invalid. The IPA format requires a top-level directory named Payload, containing only a .app bundle and optional plugins in a Plugins directory."
If I try to upload tmp.zip I get this error:

Invalid archive file.
I've tried renaming tmp.zip to Archive.zip.

This used to work fine using this procedure so I'm a bit stumped as to what the problem is.

I'm using B4i 4.01.
 
Last edited:

serkanpolat

Member
Licensed User
hi erel,
i have macosx 10.12.6 with xcode 9
i am writing an application for ipad2

this is buildserver's information:
serkans-iMac:B4iBuildServer-2 serkan$ java -jar B4iBuildServer.jar
Build server version: 4.4
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2017-10-09 10:06:46.871:INFO::main: Logging initialized @353ms to org.eclipse.jetty.util.log.StdErrLog
Loading default configuration file.
AppPath=/Users/serkan/Downloads/B4iBuildServer-2
Mac version: 10.12.6
Xcode path: /Applications/Xcode.app/Contents/Developer
Xcode version: Xcode 9.0
Build version 9A235


i have 2 certificate , one ise development and the other is for production(appstore).
i defined them like this as you mentioned before:
#if RELEASE
#CertificateFile: ios_distribution.cer
#ProvisionFile: 20171009production.mobileprovision
else
#CertificateFile: ios_development.cer
#ProvisionFile: 20171009development.mobileprovision

#End If

i am using simulator to build the release app,
when i compile the app in release mode (tools--build server-build release app) i get this message:

B4i Version: 4.40 BETA #1
Parsing code. (0.03s)
Compiling code. (0.08s)
Compiling layouts code. (0.01s)
Building Xcode project (0.08s)
Sending data to remote compiler. (6.58s)
Application compiled with non-store provision profile.
Completed successfully.
App will run on the simulator.
This is a simulator build. Do not submit it to the App Store.


i downloaded the last build file, the name of the zip was tmp.zip and i renamed it to Archive.zip then
i used application uploader with my developer account, i choosed the file then i get this:
ERROR ITMS-90174: "Missing Provisioning Profile - Apps must contain a provisioning profile in a file named embedded.mobileprovision."


after times and times, i revoked all certificates from developer site, deleted all related keys from keychain..created new certificates and provision files.. still the same..

help needed..
 

HuZz

Member
Licensed User
Hi,
I'm trying to upload my app to iTunes Connect...
but when using the iTunes connect uploader, after few minutes i get this error:

B4X:
Error: 2017-10-16 15:02:05.179 altool[94384:127242686] *** Error: Unable to validate your application.
Please sign in with an app-specific password. You can create one at appleid.apple.com.
i used my apple developer credentials, and i logged into itunes connect from my browser without any problem... i followed Erel's tutorial to create distribution cert and provision file... all seems done without problems.
What i'm doing wrong?

thanks in advance
 

HuZz

Member
Licensed User
Solved that problem... i had to create from appleid.apple.com site an app-password... as the message said! :p
But (obviously) now i get another error...
here's the complete log

B4X:
Uploading ipa file.
Submitting app (this step can take several minutes to complete).
Error: 2017-10-16 15:33:02.149 altool[97331:127255221] *** Error: Errors uploading 'Shock Calc.ipa': (
    "Error Domain=ITunesConnectionOperationErrorDomain Code=1190 \"No suitable application records were found. Verify your bundle identifier 'xxx.xxxxxx.shockCalculator' is correct.\" UserInfo={NSLocalizedRecoverySuggestion=No suitable application records were found. Verify your bundle identifier 'xxx.xxxxxx.shockCalculator' is correct., NSLocalizedDescription=No suitable application records were found. Verify your bundle identifier 'xxx.xxxxxx.shockCalculator' is correct., NSLocalizedFailureReason=iTunes Store operation failed.}"
)
 
Status
Not open for further replies.
Top