-
-
Notifications
You must be signed in to change notification settings - Fork 195
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Web pack issues when build in release mode #2716
Comments
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. |
@dtopuzov Any hints as to what is wrong? |
Fixed in web pack plugin with this PR: NativeScript/nativescript-dev-webpack#116 We will release new version later today or tomorrow. |
Amazing!!! |
Ups sorry, it looks I was wrong and my previous post was for another issue. |
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 :-) |
This PR is supposed to address this issue: #2705 There is some more work to be done though. |
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? |
Hi @patrickpereira, As a workaround you can do the following: We'll add a way to perform the first two steps with |
If you don't pass `--start-app` or `--build-app` to ns-bundle, the project will be only prepared and bundled now. This can be used with the following command: `npm run ns-bundle --android/ios` Related to NativeScript/nativescript-cli#2716
If you don't pass `--start-app` or `--build-app` to ns-bundle, the project will be only prepared and bundled now. This can be used with the following command: `npm run ns-bundle --android/ios` Related to NativeScript/nativescript-cli#2716
@patrickpereira #2705 is merged in master and available in Can you please try:
|
@sis0k0 I followed the instruction you gave in the previous comments now to upload it i have to juss use the project workspace thats it.? |
Yes, you can publish it through xcode now. Also now you can use the following command to just prepare and bundle the project (without building/starting it):
|
@sis0k0 Earlier i tried
i got my release ipa ready but i'm having issues with uploading it through Application loader |
Hey @dlucidone @patrickpereira @spike1292 I've managed to start my app by setting CODE_SIGN_IDENTITY and PROVISIONING_PROFILE using the latest @next of the CLI. Could you try and see if it will work for you as well? Thanks! |
@pkoleva I dont want to update my CLI moreover the itunes is not taking my webpacked release ipa. I have to use the platform workspace folder for the release result in app is slow at start time. Can you tell me way i can fix my webpack release issue cause its annoying and the docs are outdated with the release. Each time new release come with new bugs and later need to update CLI.(Tired of trying everything) |
I'm having a similar issues trying to publish to iTunes connect. When either using the Application Loader or running
Here's my processes: First off I did this to make sure I'm up to date
my build.xcconfig looks like so
I can build the ipa file using:
When I look in Keychain Access, I can see what looks to be the matching certificate and it has a private key attached. I had downloaded this cert from https://developer.apple.com/account/ios/certificate/?teamId=**hiding** and stuck it under login in Keychain Access. When I open the project inXcode and go to preferences I can see the team and cert listed with no complaints. In Xcode I currently have "Automatically manage signing" unchecked and have manually selected the iPhone Distribution provisioning profile under both Signing (debug) and Signing (release). Any ideas as to why I'm getting the error? |
Hi, @jeffswitzer, Could you try to set PROVISIONING_PROFILE to the profile id. Also have a look at the "Submission automation" part of this article -> http://docs.nativescript.org/publishing/publishing-ios-apps#submission-automation. |
@pkoleva I am having the same issue (I think) as @jeffswitzer: I am trying to upload a webpack release bundle the app store. I am able to successfully build the bundle through: My build.xcconfig contains (same as with Xcode signing settings):
(from what I am reading is that with Xcode 8, PROVISIONING_PROFILE is deprecated) The build process the informs me:
However, when uploading through application loader I get a similar error as above:
When I inspect the IPA I can see that the If I use Xcode to create an archive and upload that one it works just fine (but then it won’t be webpacked). Seems like there is some kind of bug here. |
@jeffswitzer as far as I can tell From what I understand if you run |
Actually even if I just target the built ipa like
So when I target the ipa built from |
@jeffswitzer I can confirm that by running |
@abhayastudios manually resigning is futile. There are a lot of extra details, first you will have to remove the development mobileprovision, add the distribution mobileprovision. Then code sign the app executable as well as binaries of cocoa touch frameworks you may have used in the Frameworks folder. Zip back the ipa. tns publish ios won't work with web pack indeed, you have to use the npm scripts. After this commit: For now use |
@PanayotCankov if i'll use this command |
@dlucidone After you run |
@PanayotCankov i have a doubt if i'll use this command If you can do steps below i suggest you can measure difference - 1- Create a webpacked release ipa and then test it through iTunes on device the performance is much better. |
I have the same or a similar issue as @abhayastudios and @jeffswitzer Signing with ad-hoc distribution profiles does not work properly. It seems that the ipa is signed with a developer identity. This blocks us from upgrading to NS3 and xcode 8.3. We have to stick with NS 2.5.3 and xcode 8.2 for now... |
@dbenninger I followed instructions by @PanayotCankov and seems like i'm able to deliver my app to test flight with webpacking. |
@dlucidone thanks, thats good to know, but it must also work on our ci server. |
Okay, I have found a workaround. I had to add |
@dbenninger Thanks for posting the workaround. |
@dbenninger thank you! I was going absolutely mad. In my case I needed to use Note that even when not using webpack it seems I need to have this in my Info.plist. The steps I take are:
Without |
@dbenninger THANK YOU! 🌮 @PanayotCankov @sis0k0 @pkoleva Why is it necessary to add 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 |
Because this is broken:
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. |
I have tried to elaborate on the problem here: #3020 |
I have the same problem, even after trying to publish with 'ad-hoc' or 'app-store' suggestions from above.. |
@alereisan Did you manage to solve this issue? I tried 'ad-hoc- and 'app-store' like you but I still have it. |
@cerireyhan I solved it by making a new provisioning profile and certificate. |
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
The text was updated successfully, but these errors were encountered: