iOS Tutorial Publishing your app to the App Store

Discussion in 'iOS Tutorials' started by Erel, Aug 23, 2015.

Thread Status:
Not open for further replies.
  1. kreativa

    kreativa Member Licensed User

    only with the developer certificates. With store certificate i can't install the app on my device
     
  2. kreativa

    kreativa Member Licensed User

    No with store certificate!
     
  3. Erel

    Erel Administrator Staff Member Licensed User

    I wanted to make sure that you are using the correct certificate.

    Try to publish the ipa file again. Do you still get this error?
     
  4. kreativa

    kreativa Member Licensed User

    yes i've tried and tried.
     
  5. Erel

    Erel Administrator Staff Member Licensed User

    You have did something wrong with the keys. I recommend you to start from scratch, delete all keys, revoke the certificates and start again.

    I
     
  6. kreativa

    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.
     
  7. Erel

    Erel Administrator Staff Member Licensed User

    Based on the error message it is a problem with the certificates.
     
  8. kreativa

    kreativa Member Licensed User

    SOLVED!!!!

    It was a problem with special files folder.
    There were some hidden png ico files. I deleted them and now it works!!
     
    David Meier and Erel like this.
  9. JackKirk

    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: Feb 16, 2016
  10. Erel

    Erel Administrator Staff Member Licensed User

  11. Daniel Uribe

    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:
    Code:
    '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..!
     
  12. Erel

    Erel Administrator Staff Member Licensed User

    Are you using a local builder or the hosted builders? I recommend you to upgrade to the latest version of B4i.
    Older versions might not support Xcode 8 properly.
     
    Daniel Uribe likes this.
  13. Daniel Uribe

    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!
     
  14. biometrics

    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:

    If I try to upload tmp.zip I get this error:

    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: Aug 20, 2017
  15. b4auser1

    b4auser1 Well-Known Member Licensed User

  16. biometrics

    biometrics Active Member Licensed User

  17. serkanpolat

    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..
     
  18. Erel

    Erel Administrator Staff Member Licensed User

    1. Please don't limit your questions to a single member.

    2. Please start a new thread in the questions forum.
     
  19. HuZz

    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:

    Code:
    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
     
  20. HuZz

    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

    Code:
    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.}"
    )
     
Thread Status:
Not open for further replies.
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice