Skip to content

Web pack issues when build in release mode #2716

Closed

Description

@sis0k0

From @patrickpereira on April 12, 2017 4:56

Hi Nativescript,

I keep getting errors trying to upload the .ipa to itunes connect, what are the build.xcconfig settings and the command that should be used, currently I'm having this in build.xcconfig:

CODE_SIGN_IDENTITY = iPhone Distribution

DEVELOPMENT_TEAM = XXXXXXXX
OR
PROVISIONING_PROFILE = XXXXXXXX

I've tried both DEVELOPMENT_TEAM & PROVISIONING_PROFILE

If I'm using DEVELOPMENT_TEAM I get the following error from application loader:

ERROR ITMS-90161: "Invalid Provisioning Profile. The provisioning profile included in the bundle app.nurt.kcal [Payload/Kcal.app] is invalid. [Missing code-signing certificate]. A Distribution Provisioning profile should be used when submitting apps to the App Store. For more information, visit the iOS Developer Portal."

If I'm using PROVISIONING_PROFILE, I'm unable to build it and get the following error from the CLI:

Check dependencies
Kcal has conflicting provisioning settings. Kcal is automatically signed, but provisioning profile XC iOS: app.nurt.kcal has been manually specified. Set the provisioning profile value to "Automatic" in the build settings editor, or switch to manual signing in the project editor.
Code signing is required for product type 'Application' in SDK 'iOS 10.2'
Code signing is required for product type 'Application' in SDK 'iOS 10.2'
Code signing is required for product type 'Application' in SDK 'iOS 10.2'
Code signing is required for product type 'Application' in SDK 'iOS 10.2'

I know the provisioning profile is valid, since I'm able to do the release through xcode if I compile the ipa there. But for some reason that ipa file is almost twice the size of the one created by the CLI.

The command I'm using in the CLI is: npm run build-ios-bundle -- --release --for-device

Furthermore I'm using tns-ios 2.5.

Hope you can help me ( @sis0k0 ) :-)

Copied from original issue: NativeScript/nativescript-dev-webpack#115

Activity

  1. spike1292 commented on Apr 19, 2017

    @spike1292

    We are experiencing the same issue. Now we need to use xcode to release. This means we need a manual step in our build process. This is very inconvenient for us.

  2. patrickpereira commented on Apr 20, 2017

    @patrickpereira

    @dtopuzov Any hints as to what is wrong?

  3. dtopuzov commented on Apr 20, 2017

    @dtopuzov
    Contributor

    Fixed in web pack plugin with this PR: NativeScript/nativescript-dev-webpack#116

    We will release new version later today or tomorrow.

  4. patrickpereira commented on Apr 20, 2017

    @patrickpereira

    Amazing!!!

  5. added this to the 3.0.0 milestone on Apr 20, 2017
  6. changed the title [-]Release mode errors[/-] [+]Web pack issues when build in release mode[/+] on Apr 20, 2017
  7. dtopuzov commented on Apr 20, 2017

    @dtopuzov
    Contributor

    Ups sorry, it looks I was wrong and my previous post was for another issue.

  8. patrickpereira commented on Apr 20, 2017

    @patrickpereira

    Yeah - I can see as I'm still getting the same error... But thanks for letting me know, a moment right there I thought my computer was just being weird :-)

  9. PanayotCankov commented on Apr 20, 2017

    @PanayotCankov
    Contributor

    This PR is supposed to address this issue: #2705 There is some more work to be done though.

  10. patrickpereira commented on Apr 20, 2017

    @patrickpereira

    Thanks for letting me know @PanayotCankov! Is there a temporary fix that I can apply to get it working, as I'm just about to submit to itunes connect?

  11. sis0k0 commented on Apr 20, 2017

    @sis0k0
    ContributorAuthor

    Hi @patrickpereira,

    As a workaround you can do the following:
    First, prepare the project for iOS using tns prepare ios.
    Then, bundle the project with webpack with webpack --config=webpack.ios.js --progress (note: if you don't have webpack installed globally, you should add this to your package.json scripts or run webpack from node_modules/.bin/webpack).
    When the project is bundled and prepared in the platforms/ios folder, you can open it and release it through xcode.

    We'll add a way to perform the first two steps with ns-bundle and then release the app through xcode later.

  12. 33 remaining items

  13. tjvantoll commented on Jul 24, 2017

    @tjvantoll
    Contributor

    @dbenninger THANK YOU! 🌮

    @PanayotCankov @sis0k0 @pkoleva Why is it necessary to add <key>method</key><string>app-store</string> to your Info.plist to perform release builds that iTunes Connect accepts?

    We either need to workaround this on the CLI, or we need to get this on the documentation asap. I can help with the docs, but I need to know what we want to recommend here, and why this works the way it does.

    Could the CLI handle this for us when with the --release flag maybe?

  14. PanayotCankov commented on Jul 31, 2017

    @PanayotCankov
    Contributor

    Because this is broken:

    "-exportOptionsPlist", platformData.configurationFilePath

    We add the info.plist as plist for the export when building,
    while the export accepts completely different format.
    It is like a tool needs some data such as method = app-store in XML and we sticked the AndroidManifest.xml in it just in case.

  15. modified the milestones: 3.2.0, 3.1.0 on Jul 31, 2017
  16. PanayotCankov commented on Jul 31, 2017

    @PanayotCankov
    Contributor

    I have tried to elaborate on the problem here: #3020

  17. removed their assignment
    on Aug 1, 2017
  18. alereisan commented on Apr 5, 2018

    @alereisan

    I have the same problem, even after trying to publish with 'ad-hoc' or 'app-store' suggestions from above..

  19. cerireyhan commented on Jun 26, 2018

    @cerireyhan

    @alereisan Did you manage to solve this issue? I tried 'ad-hoc- and 'app-store' like you but I still have it.

  20. alereisan commented on Jun 26, 2018

    @alereisan

    @cerireyhan I solved it by making a new provisioning profile and certificate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions